Cannot Insert Row in Excel (Quick 7 Fixes)

To demonstrate how to solve the most common problems in inserting new rows in Excel, we are using the following data table containing the prices of different products of a company.

cannot insert row in Excel


Fix 1 – Using the Clear All Option

Context:

We want to insert a new row before the row containing the records for Watermelon.

cannot insert row in Excel

To do this, after selecting Row 8 (where we want to insert a row) we have gone through the Home tab and selected the Insert Sheet Rows option.

clearing last row

Instead of a new row, we are getting an error message here which says

Microsoft Excel can’t insert new cells because it would push non-empty cells off the end of the worksheet.  Those non-empty cells might appear empty but have blank values, some formatting or a formula.  Delete enough rows or columns to make room for what you want to insert and then try again.

clearing last row

The root cause of this error is that we have some unwanted values, borders, or background color in the cells of the very last row.

clearing last row

Solution:

  • Select the row at the end of your dataset.

cannot insert row in Excel

  • Press Ctrl + Shift + ↓ (Down arrow) to select the remaining rows.

clearing last row

  • Go to Home tab and the Editing group, and select Clear then Clear All.

clearing last row

  • The entries in the last row have been removed.

clearing last row

  • Insert a new row without any error message.

clearing last row

  • You can enter the new records of the product in this row.

cannot insert row in Excel

Read More: Shortcuts to Insert New Row in Excel


Fix 2 – Copying the Data Range

Solution:

  • Select the data range from the sheet where you are facing the problem and press Ctrl + C to copy this range.

cannot insert row in Excel

  • Go to a new sheet (here, it is Copy) and select a cell where you want to paste the range.

copying data range

  • Press Ctrl + V.

copying data range

  • In the new sheet, we have entered a new row successfully.

cannot insert row in Excel

  • Insert data as needed.

copying data range

  • Copy the data range of this sheet by pressing Ctrl + C again.

copying data range

  • Return to the main sheet and paste the copied data by pressing Ctrl + V in place of the previous data range.

cannot insert row in Excel


Fix 3 – Using VBA Code

Context:

We will try to insert a new row before the row for the records of Watermelon.

cannot insert row in Excel

Unfortunately, we are getting the error message after trying to insert a new row.

VBA Code

The cause of this error is the same as the previous sections as you can see.

VBA Code

Solution:

  • Go to the Developer tab and select Visual Basic.

cannot insert row in Excel

  • The Visual Basic Editor will open up.
  • Go to the Insert tab and select Module.

VBA Code

  • A Module will be created.

VBA Code

  • Insert the following code
Sub Rmvall()

Rows(ActiveCell.Row & ":" & Rows.Count).Delete

End Sub
  • This code will delete all of the unwanted contents from the rows excluding the used range.

VBA Code

  • Press F5.
  • This deletes all of the contents from the last row.

VBA Code

  • Insert a new row.

VBA Code

  • Input your data.

cannot insert row in Excel


Fix 4 – Remove Sheet Protection

Context:

We will try to insert a new row before the row for the product Watermelon.

cannot insert row in Excel

But after selecting Row 8 (the place of the new row), when we try to select the Insert Sheet Rows option of the Insert dropdown under the Home tab, we can’t select it because it is disabled for this sheet.

protect sheet

Since the Protect Sheet option is enabled, we can’t insert rows.

Solution:

  • Go to the Review tab and the Protect group.
  • Choose the Unprotect Sheet option.

cannot insert row in Excel

  • The Unprotect Sheet dialog box will open.
  • Enter the Password (which you used for protecting your sheet) and press OK.

protect sheet

  • Try to insert a new row.

protect sheet

  • We have managed to insert a new row.

protect sheet

  • Enter your data.

cannot insert row in Excel

Read More: Excel Fix: Insert Row Option Greyed Out in Excel


Fix 5 – Unmerge Columns

Context:

We’re trying to add a new row under Watermelon.

cannot insert row in Excel

But we are getting the error message again.

merged column

The reason for this problem is that we have a fully merged column next to the data range.

cannot insert row in Excel

Solution:

  • Select the merged column (Column E in this case).
  • Go to the Home tab and the Alignment group.
  • Click on Merge & Center and select Unmerge Cells.

cannot insert row in Excel

  • Try to insert a new row again, and you shouldn’t get an error.

merged column

  • Input your data in the new row.

merged column

Read More: Excel Formula to Insert Rows Between Data


Fix 6 – Unfreeze Panes

Context:

Freezing Panes becomes helpful for a large set of data which you want to scroll down but want to see a fixed part of your data set all over the time of scrolling. But this feature may cause problems when you try to insert a new row.

Solution:

  • To insert a row, we have to unfreeze the pane.

cannot insert row in Excel

  • Go to the View tab.
  • Click Freeze Panes and then Unfreeze Panes.

unfreeze panes

  • This removes the row freeze.

unfreeze panes

  • You can insert a new row.

unfreeze panes

  • Input your data.

cannot insert row in Excel

Read More: How to Insert Row Below in Excel


Fix 7 – Converting the Table to a Range

Context:

Converting a data range into a table can make your calculations faster and easier, but sometimes it may cause problems with inserting a new row.

Solution:

We will convert the following table into a range prior to the addition of a new row.

cannot insert row in Excel

  • Select the Table and go to Table Design tab.
  • In the Tools group, select Convert to Range.

converting table to range

  • Then, a message box will appear which says Do you want to convert the table to a normal range?” Select Yes.

converting table to range

  • We have converted our table into a data range in this way.

converting table to range

  • Insert a new row.

converting table to range

  • Input your data.

cannot insert row in Excel

Read More: How to Insert a Total Row in Excel


Download the Workbook


Related Articles


<< Go Back to Insert Rows | Rows in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Tanjima Hossain
Tanjima Hossain

TANJIMA HOSSAIN is a marine engineer who enjoys working with Excel and VBA programming. For her, programming is a handy, time-saving tool for managing data, files, and online tasks. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. She holds a B.Sc. in Naval Architecture & Marine Engineering from BUET and is now a content developer. In this role, she creates tech-focused content centred around Excel and VBA. Apart from... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo