Formula guide · Excel and Google Sheets · Updated May 13, 2026
Remove Blank Rows with a Formula
Use FILTER to return only nonblank rows from a spreadsheet range.
Quick Answer
Use FILTER with a nonblank condition on the key column to remove blank rows from the output.
Copyable Formula
=FILTER(A2:D100,A2:A100<>"")
Syntax
=FILTER(range,key_column<>"")
Excel and Google Sheets
Worked Example
| A | B |
|---|---|
| Client | Amount |
| Acme | 300 |
| Blue Lab | 420 |
Result: Returns rows where the Client column is not blank.
Steps
- Choose the range you want to clean.
- Pick a key column that should be filled for real rows.
- Use <>"" as the nonblank condition.
- Wrap with IFERROR if the list may be empty.
Common Mistakes
- Checking the wrong column for blanks.
- Using FILTER on a range that contains partially blank but valid rows.
- Forgetting that formulas returning empty strings may still behave differently than truly empty cells.
Excel vs Google Sheets Notes
The core idea works in both Excel and Google Sheets, but separators, function availability, and array behavior can vary by account, locale, and version.
Editorial check: This guide was last updated May 13, 2026. Formula behavior can vary by Excel version, Google Sheets rollout, and spreadsheet locale.