The fastest way to delete a row

Right-click on the row number on the left side of the spreadsheet — the gray column that shows 1, 2, 3, and so on. A menu will pop up. Click Delete. The row disappears, and all rows below it move up one position.

That is the complete process. Everything below the deleted row shifts up automatically, so you do not have to move anything yourself. If you delete row 5, what was row 6 becomes row 5, what was row 7 becomes row 6, and so on.

If you need to delete multiple rows at once, click the first row number, then hold Shift and click the last row number you want to remove. All rows in between will highlight in blue. Right-click and select Delete, and they all vanish together.

Key Takeaways

  • Right-click the row number on the left side and select Delete to remove a single row instantly.
  • Hold Shift and click multiple row numbers to select a range, then right-click and delete them all at once.
  • Deleted rows cannot be recovered unless you undo the action immediately with Ctrl+Z or Cmd+Z.
  • Deleting a row is different from clearing the contents — delete removes the row entirely, while clearing leaves the empty row in place.

Selecting multiple rows before you delete

If the rows you want to delete are not next to each other, you can still select them together. Click the first row number, then hold Ctrl (on Windows) or Cmd (on Mac) and click each additional row number you want to remove. Each one will highlight separately.

Once all the rows you want are highlighted in blue, right-click any of them and select Delete. Excel removes all selected rows at once and moves everything below them up to fill the gaps. This method saves time when you need to remove scattered rows from a large spreadsheet.

The difference between deleting and clearing

Deleting a row removes the entire row from the spreadsheet — the row is gone, and everything below it moves up. Clearing a row keeps the empty row in place but removes only the data inside it.

If you want to remove only the data but keep the row structure intact, right-click the row and select Clear Contents instead of Delete. Use Delete when you want the row itself gone. Use Clear Contents when you want to empty a row but preserve its position in the spreadsheet.

Undoing a deletion if you change your mind

If you delete a row by mistake, press Ctrl+Z (on Windows) or Cmd+Z (on Mac) immediately to undo the deletion. The row will reappear with all its original data intact. This works as long as you have not made other changes to the spreadsheet since the deletion.

Excel keeps a history of your recent actions, so you can undo multiple steps if needed. Keep pressing Ctrl+Z or Cmd+Z to step backward through your changes. Once you save the file, you cannot undo deletions from previous sessions, so undo is your only safety net before you save.

Deleting rows using the menu instead of right-click

If right-clicking does not work on your device or you prefer using the menu, you can delete a row through the top toolbar. First, click the row number to select the entire row — it will highlight in blue. Then click the Home tab at the top of the screen.

Look for a button labeled Delete in the toolbar (it usually appears near buttons for inserting or clearing). Click the small arrow next to it if there is one, then select Delete Sheet Rows. The row will be removed the same way as the right-click method.

What happens to formulas when you delete a row

If other cells in your spreadsheet contain formulas that reference the deleted row, those formulas will break. For example, if a formula in cell C10 says =SUM(A1:A9) and you delete row 5, the formula still works but now sums rows 1 through 9 with row 5 missing.

Before you delete a row that other formulas depend on, check whether any cells reference it. Look for cells that contain formulas pointing to the row you plan to remove. If they do, you may need to adjust those formulas after the deletion, or delete the dependent cells as well to avoid errors.

Deleting rows in a filtered or sorted spreadsheet

If your spreadsheet is filtered or sorted, deleting a row will delete only the visible rows that match your filter or sort. Hidden rows stay in place. This can be confusing if you forget the filter is active — you might think you deleted more rows than you actually did.

Before you delete rows in a filtered spreadsheet, check whether a filter is active. Look at the row numbers on the left — if they skip (for example, 1, 2, 5, 8 instead of 1, 2, 3, 4), a filter is on. Remove the filter first by clicking Data in the toolbar and then Clear Filter if you want to delete all rows, not just the visible ones.

Frequently Asked Questions

Can I delete a row without losing the data in it?

Yes. Instead of deleting the row, select it and use Clear Contents to remove only the data while keeping the row in place. If you need to move the data elsewhere before removing the row, copy it first, paste it in a new location, and then delete the original row.

What if I delete a row by accident and I have already saved the file?

Once you save, you cannot undo the deletion through Excel. However, if your file is stored on OneDrive or SharePoint, you may be able to restore a previous version. Right-click the file in OneDrive or SharePoint and look for a Version history or Restore option. Local files saved to your computer cannot be recovered this way.

Does deleting a row affect the row numbers of other rows?

Yes. When you delete a row, all rows below it move up and their row numbers change. If you delete row 5, what was row 6 becomes the new row 5. This is automatic and happens instantly — you do not have to renumber anything yourself.

Can I delete the first row or the header row?

Yes, you can delete any row, including the first one. However, if the first row contains column headers or labels, deleting it will remove that information. Make sure you do not need those headers before you delete the row. If you want to keep the headers but remove data, use Clear Contents instead.

How do I delete a row if the right-click menu does not appear?

Try right-clicking again on the row number itself, not on the data inside the row. If the menu still does not appear, use the menu method instead: select the row by clicking its number, click Home in the toolbar, find the Delete button, and select Delete Sheet Rows.