How to delete filtered rows in excel
Tutor 5 (273 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
To delete filtered rows in Excel, apply a filter to show only the rows you want removed, select the visible rows only, then delete the entire rows. Follow the numbered steps below for reliable results.
Step-by-step (quick method — works in Excel for Windows and Mac)
-
Apply a filter to your data.
-
Select any cell in your data range or table.
-
On the Data tab click Filter (or use the table filter arrows).
-
-
Filter so only the rows you want deleted are visible.
-
Use the column filter drop-downs to choose the criteria that shows only the rows to remove.
-
-
Select the visible rows. Use one of these methods:
-
Click the first visible row number, then hold Shift and click the last visible row number.
-
Select the visible area (click and drag). Press Alt + ; on Windows or Command + Shift + Z on Mac to select Visible cells only.
-
Or use the ribbon: Home → Find & Select → Go To Special → Visible cells only → OK.
-
-
Delete the selected visible rows (entire rows):
-
Right-click any selected row number and choose Delete Row (or Delete → Table Rows if inside an Excel Table).
-
Or press Ctrl + - (minus) on Windows (use the Delete/Grid menu on Mac).
-
-
Clear the filter to verify the remaining data is intact: Data → Clear or click the filter icon and choose Clear Filter.
Alternate safe method (use when you prefer a non-destructive check first)
-
Add a helper column and mark rows to delete (for example, mark with
Xor1). -
Filter that helper column to show only marked rows.
-
Select visible cells only (use Alt + ; or Go To Special).
-
Delete the entire row.
-
Remove the helper column and clear filters.
Notes and important caveats
-
Deleting rows inside an Excel Table vs a plain range: delete behaves as Table Rows for structured tables; use the table commands or right-click row number and choose Delete → Table Rows to avoid breaking table structure. Merged cells can prevent row deletion or produce unexpected results. Unmerge cells before deleting rows if you encounter errors.
-
Copy/paste behavior: by default, Excel copies hidden cells as well. Use Go To Special → Visible cells only when copying before deleting or moving data.
-
Always double-check which rows are visible before deletion. Reapply the filter or temporarily sort to confirm your selection.
Windows vs Mac differences
-
Shortcut to select visible cells only: Windows = Alt + ;, Mac = Command + Shift + Z. Use Home → Find & Select → Go To Special → Visible cells only if a shortcut does not work.
-
Keyboard shortcuts for deleting rows vary slightly on Mac; use the right-click menu (Delete → Table Rows or Delete Row) when unsure.
Troubleshooting (common problems and fixes)
-
Problem: Hidden rows outside your filtered selection get deleted.
Fix: Use Select Visible Cells before deleting so hidden rows are not included. Confirm selection shows only marching-ants around visible cells. -
Problem: Cannot delete because of merged cells or a protected sheet.
Fix: Unmerge affected cells and unprotect the sheet before deleting. -
Problem: Using an Excel Table and rows seem not to be deleted.
Fix: Use Delete → Table Rows to remove rows inside a ListObject/table.
Best-practice checklist (quick)
-
Confirm filter criteria show exactly the rows to remove.
-
Use Select Visible Cells (Alt+; or Cmd+Shift+Z) or Go To Special.
-
Delete entire rows, not just contents, when you want to remove rows from the dataset.
-
Clear or reapply filter and scan remaining data to ensure no unintended deletions.
Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
How to sort by highlighted cells in excel
Answers · 1
How to sort excel by column and keep rows together
Answers · 1
How to sort by time in excel
Answers · 1
How to sort alphabetically in excel by last name
Answers · 1