In short
- The usual causes are a protected sheet, data or objects in the last row or column, a table or merged cells in the way, or Excel being in the middle of editing a cell.
- Read the error message first. It almost always names the cause. Then check Review, Unprotect Sheet, and press Ctrl+End to see how far the sheet really goes.
- Add a row to an Excel file free in your browser
You right-click a row number, and Insert is grey. Or you click it, and Excel answers with a message saying it cannot shift something off the worksheet. Nothing about the sheet looks unusual.
The cause is nearly always one of a short list, and the error text, when there is one, points at it. This guide goes through the causes in the order they are most likely, with the exact wording of the messages. It ends with what EditFlip can do when you only need an extra row in a file that you have to hand in today.
On EditFlip, step by step
- Step 1
Choose the Excel file
Go to editflip.com and press Choose files, or drop the .xlsx, .xls or .csv on the page. The Options panel opens with a Preview button, and Edit is the big button next to it.
- Step 2
Open Edit and press Add row
Press Edit. The sheet appears as a grid, with Add row, Delete row, Add column and Delete column. Press Add row, and a bar says Tap a row. The new row goes under the row you tap.
- Step 3
Tap the row to insert under
Tap the row above where you want the gap. To insert above row 5, tap row 4. The tool switches itself off after one row, so press Add row again for each further one. Add column works the same way, and the new column goes after the one you tap.
- Step 4
Type, then Done and Download
Tap the new cells to type in them. Formulas keep working. Press Done, then Download. This does not remove protection or fix a damaged file, and it does not work on a sheet over 2,000 rows or 60 columns, where it says the file is too big to edit.
Insert is greyed out: start with the simple causes
A greyed-out Insert often has nothing to do with the sheet. If you are typing in a cell, or the cursor is blinking inside one, Excel treats you as busy and greys out most of the ribbon. Press Enter or Esc, and try again.
The same happens while a dialog box is open, and when the file opened in Protected View, the yellow bar at the top that says Enable Editing. Click Enable Editing. A file that came as an email attachment or a download often starts this way.
Also look at the title bar. If it says [Group] next to the file name, several sheets are selected together and some commands are limited. Right-click a sheet tab and choose Ungroup Sheets.
The sheet is protected
This is the cause people suspect, and often it is the right one. Open the Review tab. If you see Unprotect Sheet instead of Protect Sheet, protection is on. Click it. If there is a password, you need it. EditFlip cannot get around a password, and neither should you try to guess one for a file you do not own.
Protection is not all or nothing. The person who protected the sheet chose what is allowed, and Insert Rows and Insert Columns are two separate ticks in that list. A sheet can allow typing and block inserting.
If the file belongs to someone else, ask them for an unprotected copy, or ask them to insert the row. If it is yours and you forgot the password, there is no quick legitimate way in, so think about whether you have an older copy.
Excel cannot shift nonblank cells or objects off the sheet
A sheet has a fixed size: 1,048,576 rows and 16,384 columns, which ends at column XFD. Inserting a row pushes everything below it down by one. If something occupies the very last row, Excel has nowhere to put it, and it refuses. The message says Excel cannot shift nonblank cells off the worksheet, or, in a related case, that it cannot shift objects off the sheet.
Objects are pictures, charts, shapes and comments. A comment or a drop-down arrow parked in the last row counts. So can a stray value typed at the very bottom by accident, for example after pressing Ctrl+Down arrow and then typing.
To find it, press Ctrl+End to go to the last cell Excel thinks you use. Then look at the last rows and last columns of the sheet. Delete the stray value or move the object. Select the rows between your data and the end of the sheet, right-click, and choose Delete, and the problem usually goes away.
Everything above applies to columns. The extra check is the far right. If anything sits in column XFD, a column cannot be inserted. Press Ctrl+End, then Ctrl+Right arrow from a row you know is used, and see where you land.
A table is in the way
Excel Tables, the ones with a banded design and filter arrows, are strict about their shape. If two tables sit side by side on the same rows, inserting a whole row through one of them would cut the other in half. Excel answers: This operation is not allowed. The operation is attempting to shift cells in a table on your worksheet.
You have three ways out. Insert the row inside the table instead, with a right-click on a table cell, then Insert, then Table Rows Above. Move one of the tables further away from the other. Or select the table, and in the Table Design tab choose Convert to Range.
A table also cannot have its rows added when something sits right under it and blocks it from growing. Clear the space below the table.
Merged cells and array formulas
Merged cells that run across a whole row or column, such as a title merged over 30 columns, can stop an insert in the cells under them. Select the merged cell, press Merge and Centre on the Home tab to unmerge it, then insert. You can merge again afterwards.
A multi-cell array formula, one where a single formula fills a block of cells, cannot be cut through. Excel says you cannot change part of an array. Insert above or below the whole block, or edit the formula to cover the new size.
If you selected several separate areas with Ctrl, Excel answers that the command cannot be used on multiple selections. Select one contiguous block.
When nothing above fits: a damaged or very old file
Sometimes a file has been saved so many times that hidden formatting has piled up to the end of the sheet, or it was made by a program that writes spreadsheets in an odd way. The test is easy. Make a new workbook, copy your data into it, and try the insert there.
Copy the data only, not the whole sheet by its corner. Then your formatting is rebuilt, and objects stay behind. If the insert now works, keep the new workbook.
Old .xls files have a smaller limit, 65,536 rows and 256 columns, so they run into the end of the sheet much sooner. Save such a file as .xlsx and try again.
On a phone, and a quick workaround with EditFlip
The Excel apps for phones have the same limits, and protection works the same way. They also show fewer error messages, so a plain refusal can be hard to read. A computer is better for tracking the cause.
If the cause does not matter and you just need one more row today, EditFlip works in the browser on a phone or a computer, adds rows and columns in the editor, and your file stays on your device. It does not remove protection, and sheets over 2,000 rows or 60 columns are too big for it.
Choose your Excel or CSV file, press Edit, use Add row or Add column, then press Done and Download. Free, no account, and the file stays on your device.
Add a row or column on EditFlip →Questions
Why is Insert greyed out in Excel?
Most often the sheet is protected, you are in the middle of editing a cell, the file is in Protected View, or several sheets are grouped. Press Esc, click Enable Editing if you see it, and check Review for Unprotect Sheet.
What does Excel cannot shift nonblank cells off the worksheet mean?
Something sits in the very last row or column, so a row or column pushed down or across would fall off the edge. Find it with Ctrl+End, delete or move it, and try again.
Why can't I insert a row in an Excel table?
Another table beside it, or data under it, blocks the change. Insert through a table cell with Table Rows Above, move the other table, or convert to a range.
Do merged cells stop me inserting a row?
They can, especially a merge across the whole width of the sheet. Unmerge them, insert, and merge again if you need.
Can I insert a row in a protected sheet?
Only if the person who protected it allowed Insert Rows. Otherwise unprotect the sheet with its password, or ask the owner.
What is the maximum number of rows in Excel?
1,048,576 rows and 16,384 columns in .xlsx files. Old .xls files stop at 65,536 rows and 256 columns.
Can I add a row without Excel?
Yes, on EditFlip: open the file, press Edit, then Add row and tap the row to insert under. It will not work on a protected or very large sheet.
