FormulaCraft

How to remove blank rows in Excel and Google Sheets

Topic:Data cleaning & shaping
Excel & Google Sheets
=COUNTA(A2:E2)>0

Verified example

Computed by a real spreadsheet engine on the sample data below.

NameScore
Alice90
Bob75
Carol88

=COUNTA(A2:E2)>0TRUE

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Excel shortcut: Select the data range, press Ctrl+G → Special → Blanks → OK, then right-click any selected cell → Delete → Entire Row.
  2. 2Filter method (both apps): Add a helper column with =COUNTA(A2:E2)>0 (returns TRUE for non-blank rows). Filter for FALSE rows, select them, and delete.
  3. 3In Google Sheets you can also use Data → Create a Filter, filter for blanks in a key column, select visible rows, and delete them.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

What if a row has a formula that returns an empty string but isn't truly blank?

COUNTA counts cells with formulas even if they return "". Use SUMPRODUCT(--(TRIM(A2:E2)<>""))>0 to check for truly non-empty content.

Is there a formula to remove blank rows automatically without deleting?

In Excel 365 or Google Sheets use FILTER to return only non-blank rows: =FILTER(A2:E6,A2:A6<>"") — this outputs a clean list without affecting the original.

More on Data cleaning & shaping

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: