If you can't insert a row in Excel, the usual cause is that something already sits in the last row of the sheet (row 1,048,576), so Excel has nowhere to push the cells. Press Ctrl+End to find the last used cell, delete the unused rows below your data, then save and reopen. Sheet protection and grouped sheets are the next things to check.
| Symptom | Most likely cause | Quick fix |
|---|---|---|
| "Microsoft Excel can't insert new cells because it would push non-empty cells off the end of the worksheet" | Content or formatting reaches the last row or column | Delete the unused rows or columns, then save |
| Insert and Delete are greyed out | Protected sheet or workbook | Review > Unprotect Sheet or Protect Workbook |
| Sheet tabs won't delete | Workbook structure protected, or every sheet grouped | Unprotect the workbook, ungroup the sheets |
| "This operation requires the merged cells to be identically sized" | Merged cells in the sort range | Unmerge before sorting |
| "Can't push objects off the sheet" | Objects hidden, or a note or shape at the edge | Show all objects, change object properties |
Why can't I insert a row in Excel?
Excel refuses to insert a row when doing so would push data past the last row of the grid. Every worksheet has exactly 1,048,576 rows and 16,384 columns, as explained in our guide to Excel's maximum rows and columns. Inserting a row doesn't add a new one. It shifts everything down by one, and the bottom row has to be empty for that to work.
Work through these causes in order:
- The used range is too big. Press Ctrl+End. If Excel jumps far below your data, something lives down there: a stray space, a formula copied to the bottom, or formatting applied to whole columns.
- The sheet is protected. If Insert is greyed out on the right-click menu, go to Review > Unprotect Sheet. Our guide to locking and protecting cells covers passwords and the "Insert rows" permission.
- A table is in the way. If you're inserting a whole row that would split or shift an Excel table, Excel may stop you. Insert table rows from inside the table instead: right-click a cell in it and choose Insert > Table Rows Above.
- The file is read-only or in Protected View. Select Enable Editing on the yellow bar. If Excel shows "Unlicensed Product" and editing is disabled, see our guide to fixing an unlicensed Office product.
How do I fix "Microsoft Excel can't insert new cells because it would push non-empty cells off the end of the worksheet"?
Clear everything below and to the right of your real data, then reset the used range by saving. Here is the method that works in most files:

- Click the row number just below your last row of real data, for example row 501.
- Press Ctrl+Shift+Down Arrow to select every row down to 1,048,576.
- Right-click any selected row number and choose Delete. Don't just press the Delete key, which clears content but leaves formatting.
- Repeat for columns: click the column letter right of your data, press Ctrl+Shift+Right Arrow, right-click and choose Delete.
- Save the workbook, close it and reopen it. Press Ctrl+End again. It should now land on your true last cell.
If the error says "columns" rather than rows, the same logic applies to column XFD. Formulas that reference whole columns, such as =SUM(A:A), are fine. A formula entered in every cell of a column is not.
What we commonly see: someone selects a whole column, applies a fill colour or a border and later pastes a single space into row 1,048,576 while scrolling. Nothing is visible, yet inserting rows fails months later. On very large files, also check for a fill or banded format applied to the entire sheet. Selecting all cells and applying Home > Cell Styles > Normal removes that formatting, but it also clears number formats you'll need to reapply.
Why won't my Excel workbook tabs delete?
When workbook tabs suddenly won't delete, the workbook structure is usually protected. Check Review > Protect Workbook. If the button is highlighted, select it and enter the password to switch protection off. Microsoft's guide to protecting a workbook confirms that structure protection blocks inserting, deleting, renaming, moving, copying, hiding and unhiding sheets, which is why those right-click options turn grey.

Two other causes are common:
- You're deleting the last visible sheet. Excel shows "A workbook must contain at least one visible worksheet." Unhide another sheet first, as described in our guide to unhiding sheets and tabs.
- Every sheet is grouped. If you've selected all the tabs, Delete would remove every visible sheet, so Excel refuses. Ungroup and select only the sheets you want to delete.
How do I ungroup worksheets in Excel?
To ungroup worksheets, right-click any selected sheet tab and choose Ungroup Sheets, or simply click a tab that isn't part of the group. You can tell sheets are grouped because the tabs turn white and the title bar shows [Group] after the file name. Microsoft's article on grouping worksheets also explains how to remove individual sheets from a group with Ctrl+click.
Grouping matters for troubleshooting because anything you type, insert or delete happens on every grouped sheet at once. If a row insert appears to "fail" or creates odd results on other sheets, check the title bar for [Group] first.
Why can't I sort in Excel?
The most common reason you can't sort in Excel is merged cells in the range. Excel shows "This operation requires the merged cells to be identically sized." Microsoft's merged cells sorting article gives the fix: select the range, open the Alignment dialog launcher on the Home tab and clear Merge cells. If you merged cells only to centre a heading, use Center Across Selection instead. It looks the same and never blocks sorting.

Other causes to check:
- The sheet is protected without the "Sort" permission ticked.
- Blank rows or columns split your data, so Excel only sorts part of it. Select the full range before sorting, or remove the gaps first.
- Numbers stored as text sort in the wrong order. Convert them to numbers before sorting.
- Filters are on a different range from the one you're sorting. Clear the filters and try again.
Our guide to alphabetising and sorting in Excel covers sorting by several columns once the blockers are gone.
How do I fix "Can't push objects off the sheet" in Excel?
This message appears when you hide or insert columns or rows and Excel can't move an object, such as a note, shape, chart or picture, any further. Most often, the objects are set to be hidden.
- Go to File > Options > Advanced. Under Display options for this workbook, set For objects, show to All. Select OK. The shortcut Ctrl+6 toggles this setting in many versions.
- Find the objects: Home > Find & Select > Selection Pane lists every shape and chart on the sheet.
- Select them, right-click and choose Format Shape (or Format Object). Under Size & Properties > Properties, choose Move and size with cells.
- Delete any objects you don't need, especially tiny invisible shapes copied in from the web.
Advanced nuance: notes (the old-style cell comments) count as objects too. Microsoft lists a comment in the affected column as one cause of this error. Each note has a hidden box that Excel has to move when columns shift. Go to Review > Notes > Show All Notes to see where they are, and delete old notes you no longer need, particularly any near the far edges of the sheet.
Does this differ between Excel versions?
The grid size, protection rules and error messages are the same in Excel 2016, 2019, 2021, 2024 and Microsoft 365. Newer versions word some errors more clearly and support far larger files without slowing down. On a Mac, use Cmd instead of Ctrl for the selection shortcuts such as Cmd+Shift+Down Arrow.
Frequently asked questions
Why is Insert greyed out when I right-click a row?
Insert is usually greyed out because the sheet is protected, the workbook is shared in the legacy shared-workbook mode, or you're still editing a cell. Press Esc first. Then check Review > Unprotect Sheet. If the file opened in Protected View or as read-only, select Enable Editing or save a copy before trying again.
How do I reset the last cell in Excel?
Delete, rather than clear, every unused row below your data and every unused column to the right, then save the workbook. Excel recalculates the used range when it saves, so Ctrl+End will then go to your real last cell. Simply pressing the Delete key isn't enough, because it removes content but keeps formatting.
Why can I not delete a sheet even after unprotecting it?
Check whether it's the only visible sheet in the workbook, whether all sheets are grouped, and whether the file is read-only. A file opened from an email attachment or a synced folder may also be locked by another user. Save a copy to your desktop and try deleting the sheet there.
Can a macro stop me inserting rows?
Yes. A workbook macro can protect sheets on open or cancel certain actions. If the file is a .xlsm and protection keeps returning, open it with macros disabled, or ask the person who built it. Our guide to file extensions explains the difference between .xlsx and macro-enabled .xlsm files.
Will hidden rows stop me inserting new rows?
Hidden rows don't block insertion by themselves, but hidden data in them can fill the used range down to the last row. Unhide all rows, press Ctrl+End to see where the data really ends, then delete anything you don't need before inserting again.
Related guides
- How to insert, delete and move rows, columns and sheets
- How to unhide columns and rows in Excel
- Center Across Selection instead of merging cells
- How to repair a corrupted Excel file
Links in this guide
| Link | Type | Why it helps |
|---|---|---|
| Microsoft Support: Protect a workbook | External | What structure protection blocks and how to turn it off |
| Microsoft Support: Group worksheets | External | Official grouping and ungrouping steps |
| Microsoft Learn: Sort error with merged cells | External | Cause and fix for the merged cells sort error |
| Excel maximum rows and columns | Internal | Why the grid has a hard limit |
| Lock and unlock cells in Excel | Internal | Unprotect sheets and set permissions |
| Fix Office Unlicensed Product | Internal | When editing is disabled by licensing |
| Unhide sheets in Excel | Internal | Unhide a sheet before deleting another |
| Alphabetise and sort in Excel | Internal | Sorting once blockers are removed |
| Insert, delete and move rows | Internal | Normal row and sheet operations |
| Unhide columns and rows | Internal | Reveal hidden data in the used range |
| Center Across Selection | Internal | A sort-friendly alternative to merging |
| Repair a corrupted Excel file | Internal | When a damaged file causes the errors |
