Fix Excel When You Cannot Insert a Column Because Cells at the Worksheet End Are Not Empty
Question details
The user needs to insert a column in Excel without pushing cells beyond the worksheet boundary.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Inserting a column into a worksheet that may have an extended used range or a whole-column dynamic-array formula.
- Observed behavior
- Excel reports that it cannot insert new cells because non-empty cells would be pushed beyond the end of the worksheet.
Identify the last row and column containing data you need anywhere on the worksheet, including hidden cells. The Ctrl+End shortcut in the steps below applies to Excel on Windows.
Delete unused columns and rows beyond the actual data
Use this when formatting, formulas, or other content extends the worksheet's used range beyond your data.
Select a cell in the affected worksheet and press Ctrl+End in Excel on Windows. Note whether Excel moves far beyond the last cell containing data you need.
In the Name Box to the left of the formula bar, enter the range from the first unused column through XFD, such as H:XFD, and press Enter. Replace H with the first column that is unused across all rows.
Right-click a selected column header and choose Delete. This removes the selected columns and their formatting, so confirm they contain nothing you need first.
If the used range also extends below your data, enter a row range such as 101:1048576 in the Name Box. Replace 101 with the first row that is unused across all columns, then right-click a selected row header and choose Delete.
Select File > Save, then close and reopen the workbook. Check Ctrl+End again and try inserting the column from its column header.

Replace whole-column dynamic-array formulas with appropriate references
Use this when a formula references an entire column and produces an oversized dynamic array.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files to continue working with your data and migrate your everyday spreadsheet work easily.

Frequently Asked Questions
Why does Excel say cells at the end of the worksheet are not empty?
Cells near the worksheet boundary may contain data, formulas, or formatting even if they look blank. In Excel on Windows, press Ctrl+End to check how far the used range extends.
Will pressing Delete clear enough space to insert a column?
Clearing cell contents may leave formatting or other used-range information behind. Select the unused columns by their headers, right-click, and choose Delete to remove the entire columns, then save the workbook.
How do I find the last possible column in Excel?
The last worksheet column is XFD. You can select a range through it by entering a reference such as H:XFD in the Name Box next to the formula bar.
Why does =N5=A:A produce an oversized array?
In Excel versions with dynamic arrays, the formula compares N5 with every cell in column A and attempts to return over one million results. Use =N5=A5 for a single-row comparison or a bounded range such as =N5=A5:A100 for multiple results.




