As we work with Excel, we may need to insert a row in a dataset for several reasons.
For example, we can insert a row to accommodate new data, improve readability, add formatting, or create space for formulas. Therefore it can be frustrating if we are unable to insert a row.
This tutorial shows nine possible reasons you cannot insert a row in Excel and gives probable solutions.
Reason #1: The Worksheet is Protected, Disallowing the Insertion of Rows
A protected Excel worksheet is a worksheet that is locked to prevent users from making changes to particular aspects of the worksheet’s structure, formatting, or contents.
Therefore if a worksheet is protected, disallowing the insertion of rows, you cannot insert a row in Excel.
Suppose we have the following dataset on a protected worksheet, disallowing the insertion of rows.
Let’s try to insert a row just above row 10 by right-clicking the numeric header of row 10 and choosing Insert on the shortcut menu.
The Insert row option is greyed out, meaning it is disabled, and we cannot insert a row in Excel.
How to Fix
We need to unprotect the worksheet to allow the insertion of a row. We use the following steps:
- On the Review tab, click Unprotect Sheet on the Protect group.
- If the worksheet you are working on is protected with a password, enter the password on the Unprotect Sheet dialog box and click OK.
The worksheet is unprotected, and we can now insert a row:
Also read: How to Select Every Other Row (Alternate Row) in Excel?
Reason #2: The Workbook is Corrupted
A corrupted workbook can prevent the insertion of rows.
Corruption in a workbook can occur due to various reasons, such as virus infection and unexpected shutdown of the application.
How to Fix
Repair the workbook using Excel’s built-in Open and Repair feature using the steps below:
- Open Excel in safe mode by pressing and holding down the Ctrl key while opening the application.
- Click File to open the Backstage window.
- Click Open on the left sidebar and Browse on the right.
- Locate the corrupted workbook, select it, click the down arrow on the Open button at the bottom of the Open feature, and choose Open and Repair.
- Click the Repair button on the message box that appears.
- Click Close on the information message box that appears.
- Try inserting a row and see if the problem is solved.
Also read: Insert Row in Excel (Shortcut)
Reason #3: The Worksheet’s Last Row Has Data or Formatting
If the last row of the worksheet contains data or formatting, we cannot insert a row.
Let’s consider the below dataset on a worksheet whose last row contains data.
The last row of the worksheet contains data as depicted below:
Let’s try to insert a row above row 6 by right-clicking the numeric header of row 6 and choosing Insert on the shortcut menu that appears:
Instead of inserting a row above row 6, Excel returns a warning message indicating that it can’t insert new cells because it would push non-empty cells off the bottom of the worksheet.
How to Fix
There can be three things you can do to fix this.
Fix #1: Copy and Paste the Data into Another Worksheet and Paste it Back
In this workaround:
- Select the dataset and press Ctrl + C to copy it.
- Open a new worksheet and press Ctrl + V to paste the dataset.
- Insert a row in the pasted dataset.
- Select the dataset with the inserted row and press Ctrl + C to copy it.
- Open the worksheet containing the original dataset, select cell A1 and press Ctrl + V to paste it. Excel accepts the dataset with the inserted row without complaining.
Fix #2: Delete a Row
We can delete one empty row below the dataset to make room for the row we want to insert.
Deleting the row makes Excel push the data in the last row up one row, leaving the last row empty, as shown below:
We can now insert a row above row 6 of the dataset, as shown below:
Fix #3: Clear All
If we do not want to keep the data or formatting in the last row, we can clear everything below the dataset using the following steps:
- Select the empty row beneath the dataset.
- Press Ctrl + Shift + Down Arrow to select all rows below the dataset.
- On the Home tab, open the Clear drop-down on the Editing group and choose Clear All.
Once everything beneath the dataset is cleared, we can insert a row.
Also read: How to Count Filtered Rows in Excel?
Reason #4: A Merged Column In the Worksheet
A merged column in the worksheet prevents the insertion of a row in a dataset.
For example, the following dataset is on a worksheet with a merged column F.
Let’s try to insert a row above row 7 of the dataset by right-clicking the numeric header of row 7 and choosing Insert on the shortcut menu:
Excel does not insert a row but returns a warning message indicating that it cannot insert new cells because it would push non-empty cells off the end of the worksheet.
How to Fix
Unmerge column F using the following steps
- Click the letter column header of column F to select it.
- On the Home tab, click the Merge & Center button on the Alignment group.
Once the column is unmerged, you can insert a row in the dataset as depicted below:
Also read: How to Unmerge All Cells in Excel?
Reason #5: A Cell Range With an Array Formula
An array formula in a column in a worksheet can stop any insertion of rows in a dataset because when you set up an array formula over a range of cells, they must stay together.
Therefore, Excel will not allow inserting a row within the array.
Consider the following dataset:
We want to show how an array formula in cell range F2:F10 can stop the insertion of a row in the dataset.
We use the steps below:
- Select the cell range F2:F10.
- Enter the following formula in the active cell F2:
=1
- Press Ctrl + Shift + Enter (Press and hold down the Ctrl key, press and hold down the Shift key and then press the Enter key) to enter the formula in the selected cell range as an array formula.
Notice that the formula in the formula bar is enclosed in curly brackets ({ }), a visual indicator that the formula is an array formula.
Now, let’s try to insert a row above row 4 by right-clicking the numeric header of row 4 and selecting Insert on the shortcut menu that appears:
Excel does not insert a row but returns a warning message that you can’t change part of an array.
How to Fix
Select the cell range with the array formula and press the Delete key on the keyboard to remove it.
Note: Sometimes, the cell range with the array formula may be in a hidden column, so you must unhide the column before deleting the array formula.
Also read: SPILL Error in Excel – How to Fix?
Reason #6: Add-ins
Sometimes, add-ins installed in Excel can stop the insertion of rows in Excel. To fix this, you can try disabling add-ins using the following steps:
- Click File to open Excel’s Backstage window.
- Click Options on the left sidebar of the Backstage window.
- On the Excel Options dialog box, click Add-ins on the left sidebar and click the Go button next to the Manage drop-down to disable Excel Add-ins.
Note: Afterward, you can open the Manage drop-down, select COM Add-ins, and then click the Go button to disable COM Add-ins.
- On the Add-ins dialog box, uncheck the add-ins you suspect might prevent the insertion of rows and click OK.
Also read: Excel Autofit Row Height Not Working
Reason #7: Excel VBA Macro
If the workbook has a macro that disables the Insert function on the shortcut menu, you cannot insert a row using the shortcut menu.
How to Fix
Adjust the macro settings in the Trust Center using the following steps:
- Click File.
- Click Options on the left sidebar of the Backstage window.
- On the Excel Options dialog box, click Trust Center on the left sidebar and the Trust Center Settings button on the right.
- Click the Macro Settings category on the left sidebar and the Disable VBA macros with notification option on the right and click OK.
Note: The Disable VBA macros with notification option allows you to enable macros on a case-by-case basis to bypass the macros and insert rows as needed.
In extreme cases, you can save the Macro-Enabled Workbook as a regular .xlsx file to remove all macros from the file.
Also read: How to Remove Macros from Excel?
Reason #8: Insufficient Memory
One possible reason that may prevent you from inserting a new row in Excel is due to insufficient memory.
When you try to insert a row, Excel may display an error message that reads, “Excel cannot complete this task with available resources. Choose less data or close other applications.”
This error message indicates that Excel does not have enough memory to perform the task.
When Excel runs out of memory, it cannot perform the task, and you may need to close other applications or reduce the amount of data you are working with to free up memory.
How to Fix
Here are some steps you can take to fix the insufficient memory error in Excel:
- Close other applications that are running to free up memory.
- Reduce the amount of data you are working with by deleting unnecessary rows or columns.
- Save your work and close Excel. Reopen Excel and try to insert a row again
- Upgrade your computer’s memory to increase the amount of available memory for Excel.
If none of these steps work, you may need to contact your IT department or a computer technician for further assistance.
Also read: Not Enough Memory to Complete This Action in Excel – How to Fix?
Reason #9: Insufficient Privileges
If you have insufficient privileges to edit the workbook, you may be unable to insert a new row.
However, you can try opening the workbook with administrator privileges or contacting the owner to permit you.
This tutorial described nine reasons you might not be able to insert rows in Excel and gave possible solutions for each. We hope you found the tutorial helpful.
Other Excel articles you may also like: