Filter Empty Cells and Empty Strings in Excel
Question details
The user needs to filter rows based on whether cells are truly empty or contain formulas that return empty strings.

- 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.
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.
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.
Select a cell in the data range, then choose Data > Filter. If the data is already an Excel table, use its existing header arrows.
Open the filter arrow on the relevant column, clear the (Blanks) checkbox, and click OK.
Repeat the filter on another column if rows must have nonblank values in both columns. Check the visible rows against the results you expect.

Use a formula criterion in Excel Advanced Filter
Use this method when you need an Advanced Filter criterion that excludes both types of blank result.
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. Open the spreadsheet: Open WPS Spreadsheets and use Open to select your workbook.
- 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. Fill the formula down: Drag the formula cell's fill handle down through the remaining data rows.
- 4. Filter the results: Select the data range, choose Data > Filter, and use the helper column's filter arrow to show only TRUE.

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.




