Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Excel Filter Not Working with Blank Rows? Fix It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Excel's filter drops or hides blank rows because the filter range doesn't include them, or because the blanks sit inside the data as gaps rather than at the end. The quickest fix is to select the entire data block including the blank rows before turning the filter on, or to delete the truly empty rows so the filter range stays contiguous. If you need the blanks to stay visible, filter by the (Blanks) option in the column dropdown, or use a helper column that flags empty cells.

What You'll Need

  • Excel for Microsoft 365, Excel 2021, 2019, 2016, or Excel for Mac — the filter menu labels are similar but can differ slightly by version and region.
  • Your data in a single worksheet with one header row.
  • Optional: a spare column to the right of your data for a helper formula.

Step-by-Step

  1. Check where the blank rows are. Blank rows at the very bottom of your data are usually harmless — Excel's filter range stops at the last row with content. Blank rows in the middle of the data are the problem: they break the range into separate blocks, so the filter only covers the first block. Click any cell in the data and press Ctrl+End (Cmd+End on Mac) to see where Excel thinks the data ends.
  2. Select the full range including blanks. Click the first cell of your header row, then hold Shift and click the last cell of the last data row — including any blank rows in between. Alternatively, click any cell in the data and press Ctrl+A (Cmd+A on Mac) once; Excel selects the current region, which stops at the first blank row. If Ctrl+A stops early, drag the selection manually down to the last row.
  3. Turn the filter on for that selection. Go to the Data tab and click Filter (or press Ctrl+Shift+L). Dropdown arrows appear on the header row of the selected range only. Confirm the arrows sit on the correct header row and that the range covers every row you selected.
  4. Test with a filter. Open a column dropdown, untick (Select All), tick one value, and click OK. Scroll to the bottom of the visible rows. If blank rows disappear, they were outside the filter range — repeat step 2 and re-apply the filter.
  5. Delete truly empty rows if you don't need them. Select the blank row by clicking its row number, right-click, and choose Delete. Do this for each gap. Deleting rows (rather than clearing contents) keeps the data contiguous, which is what the filter expects. Save a copy first if you're unsure.
  6. Or keep the blanks and filter for them. If the blank rows must stay, open the column dropdown, scroll to the bottom of the list, and tick (Blanks). Only rows where that column is empty will show. Note that (Blanks) appears only when the column actually contains empty cells within the filter range.
  7. Use a helper column when (Blanks) isn't enough. In the first empty column to the right of your data, enter a formula such as =IF(A2="","BLANK","DATA") and fill it down to the last row. Include this column in the filter range, then filter it for BLANK or DATA. This makes empty rows explicit and filterable even when other columns contain values.
  8. Re-apply the filter after edits. If you add rows below the current range, the filter won't include them automatically. Click any cell in the data, go to Data > Filter to turn it off, reselect the full range, and turn Filter back on. Converting the range to a Table (Ctrl+T) avoids this — tables expand automatically when you type in the row below.

Common Mistakes

  • Selecting only the visible block. Ctrl+A stops at the first blank row, so the filter range excludes everything below it. Always extend the selection manually.
  • Clearing contents instead of deleting rows. A row cleared with Delete still exists as an empty row inside the range; it will show as blank in the filter but can confuse sorting and formulas. Delete the row if it serves no purpose.
  • Filtering a single column. Clicking one cell and pressing Filter applies to the current region, not the whole sheet. Select the full block first.
  • Expecting (Blanks) to appear when there are no blanks. If the column has no empty cells in the range, the option is absent — that's normal, not a bug.
  • Leaving stray spaces. A cell containing a space looks blank but isn't. Use Find & Select > Go To Special > Blanks to locate genuinely empty cells, or trim spaces with TRIM().
  • Merged cells in the header. Merged header cells can prevent Filter from applying cleanly. Unmerge them (Home > Merge & Center) and put one label per column.

Tips

  • Convert your range to a Table (Ctrl+T) — tables handle blank rows better and auto-expand the filter range when you add data below.
  • Use Go To Special > Blanks (Home > Find & Select) to select every empty cell in a range at once, then delete entire rows in one pass.
  • Keep one header row only. A second title row above the headers makes Excel treat the wrong row as headers.
  • If you filter by colour or icon, blank rows have neither, so they will be hidden — use the helper-column method if they must remain visible.
  • Freeze the header row (View > Freeze Panes) so the filter arrows stay visible while you scroll through long data.

Troubleshooting

The filter arrows appear on the wrong row. Excel guessed the header row incorrectly, usually because of a title row above the data. Turn Filter off, select just the header and data rows, and turn it on again. If it persists, delete the extra title row or move it to a separate cell outside the range.

Filtering hides everything. The filter range probably starts below the header, so the header is being treated as data. Turn Filter off, click the header cell itself, and re-apply.

Blank rows reappear after sorting. Sorting moves blank rows to the bottom by default. If you need them in place, add a helper column with a row number and sort by that column instead.

The (Blanks) option is missing. Either the column has no empty cells in the range, or the range doesn't include the rows you think it does. Widen the selection and re-apply the filter.

Filter is greyed out. The sheet may be protected (Review > Unprotect Sheet) or the workbook is in a mode that blocks edits. Check the status bar for Protected View and click Enable Editing if shown.

Still not working after all of the above. Copy the data to a new sheet with Paste Special > Values, rebuild the header row, and apply the filter fresh. Corrupted formatting is rare but copying to a clean sheet clears it.

Frequently Asked Questions

Why does Excel's filter skip blank rows?

Because the filter range ends at the first blank row, or the blank rows fall outside the selected range. Excel filters only the contiguous block it recognises as your data.

Can I filter to show only blank rows?

Yes. Open the column dropdown and tick (Blanks) at the bottom of the list. It appears only if that column contains empty cells within the filter range.

Does converting to a Table fix blank-row filtering?

It helps. Tables expand automatically when you add rows and keep the filter range consistent, but blank rows inside the table still behave as blanks — use a helper column if you need to filter them explicitly.

Why is the (Blanks) checkbox missing from my filter list?

Either there are no empty cells in that column within the range, or the range doesn't include the rows you expect. Check the selection and re-apply the filter.

Will deleting blank rows break my formulas?

It can if formulas reference specific cells. Save a copy first, or use a helper column instead of deleting rows when other sheets or formulas depend on the layout.

Do blank rows at the bottom of the sheet affect filtering?

No. Excel's filter range stops at the last row with content, so empty rows below the data are ignored.