The fastest way to delete multiple rows at once
To delete several rows in Excel, select all the rows you want to remove, right-click, and choose Delete. The rows disappear and the rows below shift up to fill the gap. This works the same way whether you delete 2 rows or 20 — Excel handles the shift automatically.
The key is selecting the rows correctly before you delete. You can select rows that sit next to each other, rows that are scattered throughout the sheet, or a mix of both. The method you use depends on which rows you need to remove.
Key Takeaways
- Click the row number on the left side of the sheet to select an entire row, then hold Ctrl and click other row numbers to select multiple non-consecutive rows.
- To select rows that sit next to each other, click the first row number, hold Shift, and click the last row number in the range.
- Right-click any selected row and choose Delete from the menu to remove all selected rows at once.
- Deleted rows cannot be recovered unless you undo the action immediately with Ctrl+Z or the Undo button.
Selecting rows that are next to each other
If the rows you want to delete are consecutive — for example, rows 5, 6, and 7 — use the Shift+click method. Click the row number of the first row you want to delete on the left side of the sheet. The entire row highlights in blue.
Hold Shift and click the row number of the last row in the range. Excel selects all rows from the first one to the last one, including everything in between. Now right-click any of the selected rows and click Delete. All selected rows disappear and the rows below move up.
Selecting rows scattered across the sheet
If the rows you need to delete are not next to each other — for example, you want to remove rows 3, 7, and 12 — use Ctrl+click. Click the row number of the first row you want to delete. The row highlights.
Hold Ctrl (or Command on a Mac) and click the row number of each additional row you want to remove. Each row you click adds to the selection without removing the previous ones. Once all the rows you want to delete are highlighted, right-click any selected row and click Delete.
Deleting rows based on cell content
If you want to delete rows that contain specific information — for example, all rows where the status column says "Inactive" — you can use filtering to find them first, then delete them all at once. Click any cell in your data range and go to the Data tab. Click Filter. Small dropdown arrows appear in the header row.
Click the dropdown arrow in the column you want to filter by. Uncheck the items you want to keep and check only the items you want to delete. Click OK. Now only the rows matching your filter criteria are visible. Select all visible rows (except the header), right-click, and click Delete. When you remove the filter afterward, the deleted rows are gone and the remaining rows are still there.
What happens to your data after deletion
When you delete rows, Excel shifts all rows below them upward to close the gap. If you delete rows 5 through 7, what was in row 8 moves to row 5, what was in row 9 moves to row 6, and so on. Any formulas that reference rows below the deleted ones automatically adjust their row numbers.
If a formula in row 10 referenced row 8, and you delete rows 5 through 7, that formula now references row 5 instead. This happens without you having to do anything — Excel handles the adjustment. However, if a formula referenced one of the deleted rows directly, that formula will show an error.
Undoing a deletion if you made a mistake
If you delete rows and realize you made a mistake, press Ctrl+Z (or Command+Z on a Mac) immediately. This undoes the deletion and brings the rows back. You can also click the Undo button in the top left corner of the ribbon.
The undo function works only if you have not made other changes since the deletion. Once you close the file or make several other edits, you cannot recover deleted rows. For this reason, it is a good idea to save a backup copy of important spreadsheets before deleting large numbers of rows.
Deleting rows versus clearing their contents
Deleting a row removes it entirely from the sheet and shifts everything below it upward. Clearing the contents of a row leaves the row in place but removes the data inside it. These are two different actions and produce different results.
Use Delete when you want to remove the row itself and close the gap. Use Clear Contents (found in the Home tab under Clear) when you want to keep the row but remove only the data in it. Most of the time, when people say they want to "delete a row," they mean the Delete action, not Clear Contents.
Frequently Asked Questions
Can I delete rows without selecting them one by one?
Yes. Use the Filter feature to show only the rows you want to delete, select all visible rows at once, and delete them together. This is much faster than clicking individual rows when you need to remove many rows that match a pattern.
What if I delete the wrong rows by accident?
Press Ctrl+Z immediately to undo the deletion. This brings the rows back. If you have already made other changes or closed the file, the undo function will not work and the rows cannot be recovered.
Do deleted rows affect formulas in other cells?
Yes. Formulas automatically adjust to account for deleted rows. If a formula referenced a row that you deleted, it will show an error. If a formula referenced rows below the deleted ones, the formula updates to reference the new row numbers.
Is there a limit to how many rows I can delete at once?
No. You can select and delete thousands of rows in a single action. Excel handles large deletions the same way it handles small ones — it removes the rows and shifts everything below them upward.
Can I delete rows in a protected sheet?
Not unless the sheet owner has given you permission to do so. If a sheet is protected and you try to delete rows, Excel will show a message saying the sheet is protected. Ask the sheet owner to unprotect it or to give you the password.