The fastest way to delete a row in Excel

Right-click on the row number on the left side of the spreadsheet, then click Delete. Excel removes that row and shifts all rows below it up by one. If you need to delete multiple rows at once, click the first row number, hold Shift, and click the last row number you want to remove — then right-click and select Delete.

You can also select a row by clicking its number, then go to the Home tab at the top, click the dropdown arrow next to Delete, and choose Delete Sheet Rows. Both methods do the same thing; the right-click approach is usually faster.

Deleting a row is permanent unless you immediately press Ctrl+Z (or Cmd+Z on Mac) to undo. Excel does not move the deleted row to a trash folder — it removes it from the file entirely.

Key Takeaways

  • Right-click the row number and select Delete to remove a single row; Excel shifts all rows below it upward.
  • Select multiple rows by clicking the first, holding Shift, and clicking the last, then right-click and Delete to remove them all at once.
  • Deleted rows cannot be recovered after you close the file without saving, so use Ctrl+Z immediately if you delete by mistake.
  • Deleting a row is different from clearing its contents — Delete removes the row entirely, while clearing leaves the empty row in place.

Deleting multiple rows at once

If you have 10 rows to remove and they are next to each other, select them all before deleting. Click the row number of the first row you want to remove, then hold Shift and click the row number of the last row. All rows between them will highlight in blue.

Once they are selected, right-click anywhere in the highlighted area and click Delete. Excel removes all selected rows in one action and shifts the remaining rows up. This is much faster than deleting one row at a time.

If the rows you want to delete are not next to each other — for example, row 3, row 7, and row 12 — click row 3, then hold Ctrl (or Cmd on Mac) and click row 7, then click row 12 while still holding Ctrl. Right-click and Delete will remove all three, even though they are not consecutive.

The difference between deleting and clearing

Deleting a row removes the entire row from the spreadsheet. Clearing a row removes only the data inside it and leaves the empty row behind. Most of the time you want to delete, not clear, because an empty row can throw off formulas and make your spreadsheet harder to read.

To clear a row instead of deleting it, select the row, right-click, and choose Clear Contents. The row stays in your spreadsheet but becomes empty. Use this when you want to keep the row structure but remove the data — for instance, if you have a template with a fixed number of rows and you want to reuse it.

Undoing a deletion and recovering data

If you delete a row by mistake, press Ctrl+Z (Windows) or Cmd+Z (Mac) immediately. Excel will restore the row and put the data back. You can undo multiple deletions by pressing Ctrl+Z several times, as long as you have not done other work in between.

Once you close the file without saving, the deletion is permanent and cannot be undone. If you realize the mistake after closing, check whether your file has a backup or version history. On Windows, right-click the file, select Properties, and look for a Previous Versions tab. On Mac, open the file location in Finder, right-click the file, and select Look for previous versions. Not all systems keep backups, so this may not work.

If you work in Excel Online (through OneDrive or SharePoint), deleted rows may be recoverable through the file's version history. Click the File menu, select Info, then Version History to see earlier versions of the spreadsheet. You can open an older version and copy the deleted data back into your current file.

Deleting rows with filters or hidden rows

If you have applied a filter to your spreadsheet, be careful when deleting rows. When a filter is active, you see only certain rows on screen, but the hidden rows are still there. If you select and delete what you see, Excel deletes only the visible rows, not the hidden ones.

To delete all rows that match a filter — for example, all rows where the Status column says "Inactive" — apply the filter first so only those rows show. Then select all visible rows (click the first row number, hold Shift, click the last visible row number), right-click, and Delete. Excel removes only the rows currently displayed by the filter.

If you want to delete both visible and hidden rows, remove the filter first by clicking Data and then Clear in the filter section. This shows all rows again. Then select and delete as normal.

Deleting rows in a table or named range

If your data is formatted as an Excel table (created with Format as Table or Insert Table), deleting a row works the same way — right-click the row number and select Delete. The table automatically adjusts its size and any formulas that reference the table update themselves.

If you have named a range of cells and you delete a row that falls within that range, the named range shrinks to exclude the deleted row. For example, if you named cells A1:A10 as "Sales" and you delete row 5, the named range becomes A1:A4 and A6:A10 (it skips the deleted row). Check your named ranges after deleting rows if your formulas depend on them.

Frequently Asked Questions

Can I delete a row if it contains a formula that other rows depend on?

Yes, but it may break your spreadsheet. If row 5 contains a formula and row 6 references that formula, deleting row 5 will cause row 6's formula to show an error (usually #REF!). Before deleting, check whether any other cells reference the row you are about to remove. Use Ctrl+F to search for the row number or cell reference.

What happens to row numbers after I delete a row?

Excel automatically renumbers all rows below the deleted one. If you delete row 5, the old row 6 becomes row 5, row 7 becomes row 6, and so on. The row numbers always stay consecutive with no gaps.

Can I delete the first row or header row?

Yes, but you usually should not. The first row often contains column headers that identify what each column contains. Deleting it makes the spreadsheet harder to understand. If you need to remove data from the header row, clear its contents instead of deleting the row.

How do I delete rows based on a condition, like all rows where a value is below 100?

Use AutoFilter to show only the rows that meet your condition, then select and delete them. Click any cell in your data, go to Data, and click AutoFilter. Click the dropdown arrow in the column you want to filter, set your condition (for example, "less than 100"), and click OK. Then select all visible rows and delete them.

Is there a keyboard shortcut to delete a row without right-clicking?

Select the row by clicking its number, then right-click and choose Delete — there is no single keyboard shortcut. However, you can press Alt+H (to open the Home tab), then D (for Delete), then R (for Delete Sheet Rows) on Windows. On Mac, the keyboard shortcut varies by your system settings.