Deleting filtered rows in Excel requires two separate steps: first you filter to show only the rows you want gone, then you delete them and remove the filter to see what remains

The confusion happens because filtering in Excel hides rows — it does not delete them. If you delete while a filter is active, Excel deletes only the visible rows, which is usually what you want. But the process feels backwards to most people, and it is easy to accidentally delete the wrong set of rows if you are not careful about which filter is currently applied.

The safest approach is to filter to show only the rows you want to delete, select and delete those rows, then turn off the filter to confirm what is left. This way you see exactly what you are removing before it is gone.

Key Takeaways

  • Filtering hides rows but does not delete them, so you must delete the visible rows while the filter is active to remove them permanently.
  • Always filter to show only the rows you want to delete, never filter to hide them, because it is easy to delete the wrong set by mistake.
  • After deleting filtered rows, turn off the filter to see the remaining data and confirm the deletion worked as intended.
  • If you delete rows by accident, press Ctrl+Z (or Cmd+Z on Mac) immediately to undo, because this is one of the few spreadsheet mistakes that cannot be fixed after you close the file.

Filter your data to show only the rows you want to remove

Start by clicking any cell inside your data table. Then go to the Data tab at the top of the ribbon and click Filter. Small dropdown arrows will appear in the header row of your table.

Click the dropdown arrow in the column you want to filter by. For example, if you want to delete all rows where the Status column says "Inactive", click the dropdown in the Status column. Uncheck "Select All" first, then check only "Inactive". Click OK. Now your sheet shows only the rows with Status = Inactive.

If you need to filter by more than one column — for instance, showing only rows that are both Inactive and from 2022 — repeat this process in the next column. Each filter you add narrows down the visible rows further.

Select and delete the filtered rows

Once you can see only the rows you want to delete, click the row number of the first data row (not the header). Hold Shift and click the row number of the last visible data row. This selects all the filtered rows at once. Do not select the header row.

Right-click on one of the selected row numbers and choose Delete Rows from the menu. The rows disappear immediately. Excel has now permanently removed those rows from your spreadsheet.

If you selected and deleted by accident, press Ctrl+Z (Windows) or Cmd+Z (Mac) right away to undo. This is your only chance — once you close the file, the deletion cannot be reversed.

Turn off the filter to see your remaining data

Go back to the Data tab and click Filter again to turn it off. The filter arrows disappear from the header row, and you now see all the rows that were not deleted. This is your chance to scan through and confirm that the right rows are gone and the right rows remain.

If something looks wrong, press Ctrl+Z immediately to undo the deletion. If everything looks correct, you are done.

Deleting rows by row number instead of filtering

If you only need to delete a handful of rows and they are not grouped together, you can skip filtering and delete them one at a time. Click the row number on the left side of the row you want to delete, right-click, and choose Delete Rows. Repeat for each row.

This method is slower but gives you more control if the rows you want to remove are scattered throughout your data. It also means you do not have to worry about accidentally deleting the wrong set because of a filter mistake.

Why filtered deletion works the way it does

Excel treats filtering as a display setting, not a data change. When you filter, you are telling Excel "show me only these rows" — the hidden rows are still there in the file. When you delete while a filter is active, Excel deletes only what you can see, leaving the hidden rows untouched.

This is why filtering to show only what you want to delete is safer than filtering to hide what you want to delete. If you hide the rows you want to remove and then accidentally delete, you will delete the visible rows instead — the opposite of what you intended.

Frequently Asked Questions

Can I undo a deletion after I close the file?

No. Once you close the file, the undo history is gone and the deletion is permanent. Always press Ctrl+Z or Cmd+Z immediately if you delete the wrong rows, before you do anything else or close the file.

What if I delete rows but the filter is still on and I cannot see if it worked?

Turn off the filter by going to Data > Filter. You will then see all remaining rows. If the deletion was wrong, press Ctrl+Z right away to undo.

Can I delete rows without using the filter?

Yes. Click the row number on the left, right-click, and choose Delete Rows. This works for one row or multiple rows selected at once. It is slower if you have many rows to delete, but safer if they are scattered throughout your data.

Does deleting filtered rows affect other sheets in the same workbook?

No. Deleting rows affects only the sheet you are working on. Other sheets in the same file are not changed.

What is the difference between deleting a row and clearing its contents?

Deleting a row removes it entirely and shifts all rows below it up. Clearing contents erases the data but leaves the empty row in place. Use Delete Rows if you want the row gone completely.