How to remove blank rows in Excel
Learn how to remove blank rows in Excel with a helper column and filters. Delete only empty records, keep partial rows, and check your results safely today.

Practice what this post teaches
To remove blank rows in Excel without deleting incomplete records, add a helper column that counts filled cells across each record, filter the count to zero, and delete those worksheet rows. Clear the filter afterward and check that the remaining records and totals are correct. The example below uses Microsoft 365 Excel for Windows and keeps rows that have even one filled cell.
Blank rows versus blank cells
A blank row has no content anywhere within the columns that define your record. A blank cell is just one missing value, such as an unrecorded branch name in an otherwise valid payment record.
When you clean an export for a shared-services report or a reconciliation, selecting every blank cell and deleting its entire row can remove valid transactions. A helper column, which is a temporary column used to calculate a check, lets you identify empty records before deleting anything.
A small payment worksheet
The worked example removes two empty records from a fictional payment worksheet while preserving a missing branch name and a zero amount. Use a new worksheet with nothing else beside or below the exercise, because deleting a sheet row affects every column in that row.
Save a copy before working on a real export. For the exercise, enter the starting values exactly as shown below. Cells described as empty must contain nothing, not spaces or typed placeholder text. Amounts are in Philippine pesos.
Fictional exercise: payment export cleanup
Version: Microsoft 365 Excel for Windows
Target: Remove records with no content in columns A:C.
Keep incomplete records and numeric zero amounts.
Use a new, otherwise empty worksheet.
Starting cells:
A1: Payment ID B1: Branch C1: Amount (PHP)
A2: P4101 B2: Cebu C2: 1250
A3: empty B3: empty C3: empty
A4: P4102 B4: empty C4: 800
A5: P4103 B5: Davao C5: 0
A6: empty B6: empty C6: empty
A7: P4104 B7: Iloilo C7: 950
Helper column:
D1: Filled cells
D2: =COUNTA(A2:C2)
Copy D2 into D3:D7 using Home > Fill > Down.
Expected D2:D7: 3, 0, 2, 3, 0, 3
Deletion steps:
Select A1:D7, then choose Data > Filter.
In the D1 filter, select only 0.
Visible data row numbers: 3 and 6.
Select row 6 by its row number.
Choose Home > Delete > Delete Sheet Rows.
Select row 3 by its row number.
Choose Home > Delete > Delete Sheet Rows.
Select D1, then choose Data > Clear.
Expected final cells:
Row A B C D
1 Payment ID Branch Amount (PHP) Filled cells
2 P4101 Cebu 1250 3
3 P4102 empty 800 2
4 P4103 Davao 0 3
5 P4104 Iloilo 950 3
Verification cells:
F1: Checks
F2: =COUNTA(A2:A5) Expected: 4
F3: =SUM(C2:C5) Expected: 3000
F4: =COUNTIF(D2:D5,0) Expected: 0
A filled-cell check
The COUNTA function counts cells that contain values, text, or formulas. Counting across the record separates completely empty records from records with missing fields.
Enter the helper heading in D1 and the formula shown in D2. Select D2:D7, including the formula cell at the top, then choose Home > Fill > Down. Excel adjusts each copied formula to check its own row.
Compare the helper results with the expected sequence in the exercise. The record without a branch still has a payment ID and amount, so its count is two. The record with a zero amount has three filled cells: zero is a value, not an empty cell.
Choose the record boundary carefully. If your actual export includes important information beyond column C, include those columns in the count. A row that looks empty in the payment columns might contain a note or reference farther to the right.
Filtered deletion
Filtering the helper column to zero shows only the records that meet the empty-record rule. Select the complete exercise range before choosing Data > Filter, because an automatic range selection can stop at a blank row.
Before deleting anything, you can practise the filtering step with Filter rows.
Open the filter arrow in D1, clear the other selections, and select only zero. Check the visible row numbers against the exercise. If an expected blank row isn't visible, stop and inspect its helper formula and source cells.
- Select the lower visible row by clicking its worksheet row number, not a cell inside the record.
- Choose Home > Delete > Delete Sheet Rows.
- Delete the remaining empty row using the same menu path.
- Select D1 and choose Data > Clear to show the retained records.
Deleting from the bottom upward keeps the earlier row numbers stable while you work. Pressing the Delete key isn't equivalent: the key clears cell contents but leaves the worksheet row in place.
For practice with the row operation itself, use Insert, delete and hide rows and columns.
Checks after deletion
A correct cleanup preserves the valid payment records and their total while removing every zero-count helper result. After clearing the filter, enter the following checks in the specified cells.
F1: Checks
F2: =COUNTA(A2:A5)
Result: 4
F3: =SUM(C2:C5)
Result: 3000
F4: =COUNTIF(D2:D5,0)
Result: 0
Also inspect the payment IDs and branch names against the expected final cells. A matching total alone isn't enough: accidentally deleting the zero-amount payment wouldn't change the sum. The record count and visual comparison catch that mistake.
Keep the helper column until your checks agree. You can then remove the helper column if your final report doesn't need it.
A variation for formula-generated blanks
A formula that returns an empty string looks blank, but COUNTA still counts the formula cell. Use a different helper calculation when your cleanup rule treats empty strings as blank.
Start on another new worksheet and recreate the original starting values, before either empty row was deleted. Change C3 first, then replace the helper formula as specified below. COUNTBLANK counts both genuinely empty cells and formulas that return empty strings; subtracting that count from the number of record columns gives the count you need.
Fictional variation: visually blank formula cells
Target: Remove records where every cell in A:C is empty
or returns an empty string. Keep zero amounts.
Starting cells on a new worksheet:
A1: Payment ID B1: Branch C1: Amount (PHP)
A2: P4101 B2: Cebu C2: 1250
A3: empty B3: empty C3: empty
A4: P4102 B4: empty C4: 800
A5: P4103 B5: Davao C5: 0
A6: empty B6: empty C6: empty
A7: P4104 B7: Iloilo C7: 950
D1: Filled cells
Exact changes and checks:
1. Enter ="" in C3.
2. Enter =COUNTA(A2:C2) in D2 and fill down through D7.
D3 returns 1 because C3 contains a formula.
3. Replace D2 with:
=COLUMNS(A2:C2)-COUNTBLANK(A2:C2)
4. Fill D2 down through D7.
Expected D2:D7: 3, 0, 2, 3, 0, 3
Select A1:D7 and choose Data > Filter.
Filter D1 to 0.
Delete sheet row 6, then sheet row 3.
Select D1 and choose Data > Clear.
Expected retained records:
P4101 Cebu 1250
P4102 empty 800
P4103 Davao 0
P4104 Iloilo 950
Verification:
F2: =COUNTA(A2:A5) Expected: 4
F3: =SUM(C2:C5) Expected: 3000
F4: =COUNTIF(D2:D5,0) Expected: 0
Limits and common mistakes
The helper-column method doesn't automatically clean whitespace, and deleting filtered rows individually is slow for a large export. A cell containing a space isn't empty under either helper calculation used here.
- A blank-looking row remains: select its cells and inspect the formula bar for spaces, hidden text, or formulas.
- A valid record disappears: check whether you filtered one source column for blanks instead of filtering the helper count.
- Only part of the export is filtered: clear the filter, explicitly select the full record range, and apply the filter again.
- Neighboring data disappears: sheet-row deletion affects the full worksheet width. Restore your saved copy and isolate the export before repeating the cleanup.
The useful habit is to define an empty record first, make the rule visible in a helper column, and check both record identity and totals after deletion. Don't treat a blank field as permission to remove the whole record.
Common questions
Can I remove blank rows without deleting rows that have missing values? Yes. Count filled cells across every column that belongs to the record, then filter the helper count to zero. A record with any filled field stays in the worksheet.
Why doesn't the Delete key remove the blank rows? The Delete key clears selected cell contents but doesn't remove worksheet rows. In Microsoft 365 Excel for Windows, select the worksheet row number and choose Home > Delete > Delete Sheet Rows.
Why does COUNTA count a cell that looks blank? COUNTA counts cells containing formulas, even when a formula returns an empty string. A cell containing a space also counts as filled, so inspect the formula bar when a result is unexpected.
Will a zero amount be treated as blank? No. Both helper calculations in the examples treat numeric zero as a filled value. The zero-amount payment stays in the cleaned worksheet.