Function Problems

Filter Empty Cells and Empty Strings in Excel

Aamir Naveed AkramAamir Naveed Akram Nov 22, 2026 869 views

Question details

The user needs to filter rows based on whether cells are truly empty or contain formulas that return empty strings.

Filter Empty Cells and Empty Strings in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Filter a worksheet or table to exclude rows whose relevant cells appear blank.
Observed behavior
Advanced Filter criteria and data validation do not handle the blank cases as expected.
Before you start

Identify the column to filter and its first data row. If you use Advanced Filter, reserve an empty area outside the list for the criteria range.

Solution 1Recommended

Exclude blank values with Excel's regular filter

Use a column filter to hide both empty cells and cells whose formulas display an empty string.

1
Turn on filtering

Select a cell in the data range, then choose Data > Filter. If the data is already an Excel table, use its existing header arrows.

2
Exclude blanks

Open the filter arrow on the relevant column, clear the (Blanks) checkbox, and click OK.

3
Check other columns

Repeat the filter on another column if rows must have nonblank values in both columns. Check the visible rows against the results you expect.

Exclude blank values with Excel's regular filter
Blank versus nonblank: Selecting only (Blanks) shows blank results; clearing (Blanks) excludes them.
Filter in WPS Spreadsheets

Filter blank results with a helper column in WPS Spreadsheets

Use a helper formula to identify cells with a nonempty value, then filter for TRUE in WPS Spreadsheets.

  1. 1. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
  2. 2. Add a helper formula: In a new column, enter a heading such as KeepRow. In its first data row, enter =LEN(C2)>0, replacing C2 with the cell to test.
  3. 3. Fill the formula down: Drag the formula cell's fill handle down through the remaining data rows.
  4. 4. Filter the results: Select the data range, choose Data > Filter, and use the helper column's filter arrow to show only TRUE.
Exclude truly empty cells and formula results that are empty stringsOpen and edit Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet filter to review matching rows
microsoft office alternative - wps office

Frequently Asked Questions

How do I hide cells containing formulas that return an empty string?

In Excel, open the column's filter arrow and clear (Blanks). You can also use a helper formula such as =LEN(C2)>0 and filter the helper column for TRUE.

Can Advanced Filter exclude both empty cells and empty strings?

Yes. Put a formula such as =C2<>"" below a criteria heading that differs from your list headings, then select both criteria cells under Data > Advanced. Replace C2 with the relevant cell in the first data row.

Does data validation filter existing rows?

No. Data validation controls permitted entries; it does not hide rows. Use Data > Filter or Data > Advanced to filter the list.

Can I filter out blanks in more than one column?

Yes. Open each relevant column's filter arrow and clear (Blanks). Applying both filters keeps rows that have nonblank values in both columns.