If Excel won't let you delete rows, it's usually because the sheet is protected, there's a merged cell or table structure blocking the action, or the selection includes non-contiguous areas. The fix is almost always simple once you identify the cause.
What You'll Need
- Microsoft Excel (desktop version: 2016, 2019, 2021, or Microsoft 365)
- Access to the workbook you're editing
- Knowledge of whether the sheet is protected (check the Review tab)
Step-by-Step
- Open the Excel workbook and navigate to the worksheet where you're trying to delete rows.
- Click on the row number on the left-hand side to select one or more entire rows. Hold Ctrl while clicking to select non-adjacent rows, or drag down to select a range.
- Right-click on any selected row number and look for the Delete option in the context menu. If it's grayed out or missing, proceed to the next steps.
- Check if the worksheet is protected: Go to the Review tab on the Ribbon. If the Unprotect Sheet button is active (not grayed out), the sheet is protected. Click Unprotect Sheet. If prompted for a password, you must enter it. If you don’t know the password, you cannot delete rows until the sheet is unprotected by someone who does.
- If the sheet is not protected, check if your data is inside an Excel Table. Select any cell in your data range. If the Table Design tab appears on the Ribbon, your data is formatted as a Table. Excel Tables restrict row deletion outside the table boundaries. To delete rows inside the table, select the row(s) and press Ctrl + - (minus). To delete rows outside the table, convert the Table back to a range: go to Table Design > Convert to Range. Confirm the action when prompted. This does not delete your data, only removes table formatting.
- If you see a message saying "Cannot delete entire row because it contains merged cells," find the merged cells. Press Ctrl + G to open the Go To dialog, click Special, select Merged Cells, then click OK. Excel will highlight all merged cells. Unmerge them by selecting each merged cell, going to the Home tab, and clicking Merge & Center > Unmerge Cells.
- If you’re trying to delete rows in a filtered view, clear the filter first. Go to the Data tab and click Clear under the Filter button. Then try deleting rows again.
- If none of the above apply, ensure you’re not selecting an entire column or mixed selection. Only select entire rows — do not select partial cells across multiple rows and columns.
- After resolving the issue, select the row numbers again, right-click, and choose Delete. The rows should now be removed.
Common Mistakes
- Trying to delete rows while a filter is active — Excel blocks deletion until filters are cleared.
- Assuming you can delete rows from within a Table without converting it first — tables are structured and require specific deletion methods.
- Selecting only part of a row (e.g., cells A5:C5) instead of clicking the row number — Excel won’t let you delete partial rows.
- Not checking for merged cells — even one merged cell in a row can prevent deletion of that entire row.
- Believing you need to delete the row manually cell by cell — this is unnecessary and inefficient.
- Thinking the file is corrupted when it’s just protected or formatted as a table — always check protection and structure before assuming corruption.
Tips
- Before deleting rows, copy the data to a backup sheet in case you accidentally remove something critical.
- Use Ctrl + Space to select an entire column, or Shift + Space to select an entire row — these are faster than clicking the row number.
- If you frequently need to delete rows in a dataset, consider using Excel Tables but always convert back to range if you need full deletion flexibility.
- Use the Find and Replace tool (Ctrl + F) to locate merged cells by searching for formatting — click Options, then Format, and choose Merge Cells from the Format dialog.
- Protect sheets only when necessary. If you’re the sole user and don’t need to prevent edits, leave sheets unprotected.
- If you're working on a shared workbook, ensure it’s not in shared mode — go to Review > Share Workbook and uncheck "Allow changes by more than one user at the same time" before attempting deletions.
Troubleshooting
- If the Delete option is still grayed out after unprotecting the sheet and converting tables, restart Excel. Sometimes the UI doesn’t refresh properly.
- If you’re using Excel Online (browser version), row deletion is limited. Switch to the desktop app for full control. Excel Online does not support deleting rows in protected sheets or tables the same way.
- If you receive a message about "This operation requires the merged cells to be identically sized," you have merged cells spanning multiple rows. Unmerge them individually — you may need to unmerge multiple times if merged areas overlap.
- If Excel crashes when you try to delete rows, save your file first, then try deleting one row at a time. Large datasets with complex formatting can trigger instability.
- If the problem persists on multiple workbooks, check if Excel has corrupted preferences. Close Excel, hold Ctrl while reopening, and choose "Yes" when prompted to start in Safe Mode. If deletion works in Safe Mode, an add-in is interfering — disable add-ins one by one via File > Options > Add-Ins.
- If you suspect file corruption, try opening the file in Excel’s Open and Repair mode. Go to File > Open > Browse, select the file, click the arrow next to Open, and choose Open and Repair.