The fastest way to delete rows in Excel
To delete a single row, right-click on the row number on the left side of the spreadsheet and select Delete. To delete multiple rows at once, click on the first row number you want to remove, then hold Shift and click on the last row number. Right-click and select Delete. Excel removes all selected rows and shifts the remaining rows up to fill the gap.
If you want to delete rows that don't sit next to each other, click the first row number, then hold Ctrl (or Cmd on Mac) and click each additional row number individually. Right-click and select Delete, and Excel will remove all of them at once.
The Delete command removes the entire row from your spreadsheet. If you only want to clear the contents without removing the row itself, select the cells instead of the row numbers, right-click, and choose Clear Contents.
Key Takeaways
- Right-click a row number and select Delete to remove a single row from your spreadsheet.
- Select multiple adjacent rows by clicking the first, holding Shift, and clicking the last, then right-click and Delete.
- Select non-adjacent rows by clicking the first row number, holding Ctrl, and clicking each additional row you want to remove.
- Use Clear Contents instead of Delete if you want to keep the row structure but remove only the data inside it.
Selecting rows before you delete
Row numbers appear in a gray column on the far left of your spreadsheet. Click any row number to select the entire row — it will highlight in blue. The row number itself becomes darker to show it is selected.
When you select a row this way, you are selecting every cell in that row, from column A all the way to the end of your data. Deleting the row removes all of that data at once. If you only want to delete data in certain columns, select those specific cells instead of the whole row.
Deleting rows in the middle of your data
When you delete a row, Excel automatically shifts all rows below it upward. If you delete row 5, what was row 6 becomes row 5, what was row 7 becomes row 6, and so on. This happens instantly and affects any formulas that reference rows below the deleted one.
If your spreadsheet contains formulas that point to specific row numbers, deleting a row may change what those formulas calculate. For example, if a formula in row 10 adds up rows 1 through 9, and you delete row 5, the formula will now add rows 1 through 8 (because row 9 moved up to become row 8). Check your formulas after deleting rows to make sure they still work the way you intended.
Undoing a deletion
If you delete rows by mistake, press Ctrl+Z (or Cmd+Z on Mac) immediately to undo the deletion. Excel will restore the deleted rows and put your data back where it was. You can undo multiple deletions by pressing Ctrl+Z several times, as long as you have not saved the file since the deletion.
Once you save your file, you cannot undo deletions. If you realize you deleted the wrong rows after saving, you will need to manually re-enter the data or restore from a backup copy of the file.
Deleting blank rows automatically
If your spreadsheet has many blank rows scattered throughout, you can use the Go To Special feature to find and delete them all at once. Click any cell in your data range, then press Ctrl+Home to go to the beginning. Select all your data by pressing Ctrl+A, then go to the Edit menu and look for Go To Special (this option appears in some versions of Excel but not all).
In older versions of Excel, you can sort your data to move all blank rows to the bottom, then select and delete them together. Click any cell in your data, go to the Data menu, and select Sort. Choose any column and sort A to Z — blank cells will move to the bottom. Then select all the blank rows and delete them at once.
Deleting rows based on a condition
If you want to delete all rows where a certain column contains a specific value, use the AutoFilter feature. Click any cell in your data, go to the Data menu, and select AutoFilter. Small dropdown arrows will appear in the header row of each column.
Click the dropdown arrow in the column you want to filter by. Uncheck the values you want to delete, leaving only those values checked. Excel will hide all rows that do not match your selection. Select all the visible rows (except the header), right-click, and delete them. Then remove the filter to see the remaining data. Be careful with this method — it is easy to delete more rows than you intended if you do not set up the filter correctly.
Frequently Asked Questions
Can I delete a row without losing my data?
Yes. Instead of right-clicking the row number and selecting Delete, select the cells in that row, right-click, and choose Clear Contents. This removes the data but leaves the empty row in place. You can also cut the row (Ctrl+X) and paste it elsewhere in your spreadsheet before deleting it.
What happens to my formulas when I delete a row?
Formulas that reference specific row numbers will adjust automatically. If a formula adds up rows 1 through 10 and you delete row 5, it will now add rows 1 through 9. Formulas that reference entire columns (like A:A) are not affected by row deletions.
How do I delete rows in bulk without selecting them one by one?
Use AutoFilter to hide all rows except the ones you want to delete, then select and delete the visible rows together. Alternatively, sort your data to group similar rows, then select a range of rows and delete them all at once.
Can I delete rows from multiple sheets at the same time?
No. You must delete rows from each sheet individually. Click the sheet tab at the bottom of the window to switch between sheets, then delete rows in each one separately.