How to Delete All Rows Below in Excel
In this article
To delete all rows below a certain point in Excel, select the first row you want to remove, then press Ctrl + Shift + Down Arrow to select everything to the bottom of the sheet, and press Ctrl + − (minus). On Mac, use Command + Shift + Down Arrow and Command + −. This removes the rows entirely, shifting nothing up into your data area. If you want to keep the rows but clear their contents, use Delete instead of Ctrl + −. The steps below cover the selection, the deletion, and the common ways this goes wrong.
What You'll Need
- Excel for Windows or Mac (the shortcuts differ slightly; both are given).
- A worksheet where you know which row is the last one you want to keep.
- Optional: a backup copy of the file, since deletion cannot be undone after you save and close.
Step-by-Step
- Save a backup first. Press Ctrl + S (or Command + S on Mac) so the current state is on disk. If you delete too much, you can close without saving and reopen the file.
- Identify the first row to delete. Click the row number on the left edge of the sheet. For example, if your data ends at row 20 and you want to remove everything from row 21 down, click row 21. The entire row highlights.
- Select everything below. With that row selected, press Ctrl + Shift + Down Arrow (Windows) or Command + Shift + Down Arrow (Mac). Excel extends the selection to the last used row of the sheet. If the sheet has no data below, it selects to the bottom of the grid.
- Delete the rows. Press Ctrl + − (Windows) or Command + − (Mac). Alternatively, right-click the selected row headers and choose Delete. The rows are removed and any rows below shift up, but since you selected to the bottom, nothing visible moves into your data area.
- Confirm the result. Scroll down to check that no stray rows remain. If you see blank rows with formatting but no data, they may still be part of the used range; see the troubleshooting section.
- Save the file. Press Ctrl + S again. If you are not ready to commit, close without saving to revert.
If you only want to clear the contents (keeping the rows in place), select the same range and press Delete instead of Ctrl + −. This removes values and formulas but leaves formatting and row structure intact.
Common Mistakes
- Using Delete instead of Ctrl + −. The Delete key clears contents but does not remove rows. If you need the rows gone (for example, to shrink the used range), use the row deletion shortcut.
- Selecting only part of the row. If you click a cell and press Ctrl + Shift + Down Arrow, Excel selects only the cells in that column, not entire rows. Deleting then shifts cells up within that column, which can misalign your data. Always start by clicking the row number.
- Forgetting about hidden rows or filters. If rows are hidden or a filter is active, Ctrl + Shift + Down Arrow may skip hidden rows or stop at the filter boundary. Clear filters and unhide rows first (select all, then right-click a row header and choose Unhide).
- Deleting rows that contain formulas referenced elsewhere. If other sheets or cells refer to the deleted rows, those formulas will return #REF! errors. Check for dependencies before deleting.
- Not saving a backup. Deletion is permanent after saving. If you are unsure, work on a copy of the file.
Tips
- Use the Name Box for precision. Type a range like
21:1048576into the Name Box (left of the formula bar) and press Enter to select all rows from 21 to the bottom instantly. Then delete. - Delete entire rows, not just cells. Right-clicking the row header and choosing Delete removes the whole row. Deleting cells (via the Delete Cells dialog) can shift data in unexpected ways.
- Check the used range after deletion. Press Ctrl + End to jump to the last used cell. If it lands far below your data, the used range still includes empty formatted rows. Selecting those rows and deleting them (not just clearing) can shrink the file.
- On Mac, the shortcuts use Command. Command + Shift + Down Arrow selects to the bottom; Command + − deletes. The right-click menu works the same.
- For a one-time cleanup, consider copying your data to a new sheet. Select your kept range, copy, and paste into a fresh sheet. This avoids leftover formatting and named ranges in the old sheet.
Troubleshooting
The selection stops early. This usually means there is a blank row or a hidden row in the way. Press Ctrl + Shift + Down Arrow again to extend further, or use the Name Box to select the exact range.
Rows will not delete. The sheet may be protected. Go to the Review tab and check for Protect Sheet; you will need the password to unprotect it. Also check whether the workbook is shared or read-only.
Formulas break after deletion. Undo immediately with Ctrl + Z. Then adjust the formulas to reference the correct range, or move the data instead of deleting it.
File size stays large. Deleting rows does not always shrink the used range if formatting remains. Select the empty rows below your data, right-click, and choose Delete. Then save. In some cases, saving as a new .xlsx file helps.
You deleted the wrong rows and already saved. Check if you have a previous version: File > Info > Version History (if the file is on OneDrive or SharePoint) or look for AutoRecover files. Otherwise, restore from your backup.
Frequently Asked Questions
How do I delete all rows below a specific row without affecting the header?
Click the row number of the first row you want to delete, then press Ctrl + Shift + Down Arrow and Ctrl + −. This removes only rows from that point down, leaving the header and data above intact.
Can I undo deleting rows?
Yes, immediately after deleting, press Ctrl + Z. Once you save and close the file, undo is no longer available, which is why a backup is recommended.
What is the difference between Delete and Ctrl + −?
Delete clears the contents of the selected cells but leaves the rows in place. Ctrl + − removes the entire rows and shifts the rows below up.
How do I delete all rows below in Excel on a Mac?
Click the row number, press Command + Shift + Down Arrow to select to the bottom, then press Command + − to delete. The right-click menu also has Delete.
Why does Ctrl + Shift + Down Arrow not select all the way down?
It stops at the first blank row or hidden row. Press it again to continue, or use the Name Box to select the exact range (for example, 21:1048576).
Will deleting rows remove them from other sheets?
No, deletion affects only the current sheet. Other sheets are unchanged, but formulas that reference the deleted rows may show errors.