Microsoft Excel How To Delete Blank Rows
To delete blank rows in Microsoft Excel, check which rows are empty across all your data columns, then delete those rows. A helper column using COUNTA lets you identify them before filtering and removing them. For a few gaps, select the row numbers manually. Avoid.
Which licences fit your PC setup?
Prices are an AUD snapshot, not a live quote. Confirm variant and total on the listing.
-

Office 2021 Pro Plus key
$57.00 AUD
-

Office 2019 Pro Plus key
$45.00 AUD
-

Microsoft 365 Pro Plus, 5 devices
$15.00 AUD
$29.00
Check what counts as a blank row
A blank cell is an empty field within a record. A blank row has no content anywhere in the columns that make up that record. For example, a customer row with a missing phone number still contains useful data and should usually stay.
Save a copy of the workbook before making bulk changes. Clear existing filters and reveal hidden rows and columns so you can inspect the full dataset. Check whether apparent gaps are intentional separators, parts of merged cells, or rows containing formulas.
Deleting an entire worksheet row also removes cells outside your selected data range. If another list or calculation sits alongside your data, work on a copy of the dataset in a separate worksheet first.
The instructions below use desktop Excel for Windows and a normal worksheet range. If your data is an Excel table, use the table's row deletion command to remove records within that table.
Find completely blank rows with a helper column
Use this method when some valid records have empty fields. It checks every data column in each row, so a missing value in one field does not mark the whole record for deletion.
Suppose your headers are in row 1 and your data occupies A2:F500. Column G is empty and will hold the temporary check. Replace these example references with your actual range.
- Enter a heading such as Row check in G1.
- In G2, enter =COUNTA(A2:F2). This counts cells containing information in that row. Keep the helper column outside the range being counted.
- Fill the formula down through G500, including the gaps between records. A result of 0 identifies a row with no content in A:F.
- Select A1:G500 explicitly, then choose Data > Filter. Selecting the full range ensures rows beyond an empty gap are included.
- Open the filter arrow in Row check, clear Select All, select 0 and choose OK. Inspect the displayed rows before proceeding. If 0 is absent, there are no completely empty rows within the range checked.
- Select A2:G500 using the Name Box to the left of the formula bar. Press Ctrl+G, choose Special, select Visible cells only and choose OK. Keep the header row out of this selection.
- Choose Home > Delete > Delete Sheet Rows. This removes the selected visible rows. Pressing the Delete key on its own only clears contents.
- Clear the filter to show the remaining records. Once you have checked the result, remove the temporary helper column.
COUNTA counts formulas that return empty text, such as =IF(A2="","",A2), as well as cells containing spaces. Those cells may look blank but will keep the count above zero. This behaviour is documented in Microsoft's COUNTA guidance. Inspect them before deciding whether their rows should be removed.
Delete a few blank rows manually
For a short worksheet with obvious gaps, selecting row numbers is straightforward. Check across the worksheet first, including columns beyond the visible screen.
- Click the row number of an empty row. Drag across adjacent row numbers to select a continuous block of empty rows.
- For separate empty rows, hold Ctrl while clicking each additional row number.
- Right-click one of the selected row numbers and choose Delete.
The rows underneath move up to close the gaps. If the selection was wrong, press Ctrl+Z immediately to undo it. Microsoft's instructions for deleting worksheet rows also explain the ribbon command.
Use a column filter when every record needs that field
A filter on one column is useful when that column reliably identifies valid records, such as an ID that every record must contain. It finds rows missing that field; it does not establish that every cell in those rows is empty.
- Select the complete data range, including its headings, and choose Data > Filter.
- Open the required column's filter arrow. Clear Select All and select (Blanks) to display rows missing a value.
- Review the other fields in every displayed row. Retain any incomplete record that still needs to be kept.
- If all displayed records should be removed, select the data range below the header, choose Go To Special > Visible cells only, then use Delete Sheet Rows.
- Clear the filter and inspect the remaining records.
Selecting (Blanks) displays the blank entries. Deselecting it hides them and leaves populated entries visible. Microsoft's filtering instructions cover this distinction.
Use Go To Special with care
Go To Special > Blanks selects empty cells within your selection. It does not test whether each entire row is empty. Applying it across a mixed dataset and choosing Entire row can delete a valid record because its address, date or another field is missing.
Use this shortcut only after confirming that every blank cell in the selected range belongs to a row you intend to remove. Otherwise, use the helper column method to check all fields together.
Check the workbook before saving
Review the records on either side of the removed gaps, check totals and inspect formulas for reference errors. If a useful record has disappeared, undo the deletion and refine the selection before trying again.
For other Office tasks, the Microsoft Office guides include help with Office activation using Command Prompt and finding an Office product key using Command Prompt.
Start with a copy of your workbook, add the row check beside your data, and inspect the rows returning 0 before deleting them.
Other editions for separate workloads
Other editions for separate workloads; prices in AUD, confirm the total on the listing.
-

Windows 11 Pro key
$14.99 AUD
$29.00 -

Office 2024 Pro Plus key
$20.00 AUD
$39.00 -

Windows 11 Home key
$18.88 AUD
$37.00
How to check this worked
- Open Settings, System, Activation and confirm the edition shown.
- Enter the key and run activation; expect a green tick within a minute.
- Reboot and re-check activation survives the restart.
FAQ
What else should you know before buying?
- What do I need before starting?
- Read the requirements and confirm the edition first; the steps assume the machine is compatible.
- How do I know the licence is genuine?
- Activate on Microsoft's servers and check Settings, System, Activation. A working activation is the test.
- Is this a subscription?
- Keys sold here are one-time lifetime licences. Microsoft 365 plans are billed by Microsoft instead.
- What if the key fails?
- Email hi@ms.codes with the order number and a screenshot. Replacement or refund applies within 30 days.
Check who prepared and reviewed this guide
- Written by
- MS.Codes editorial
- Reviewed by
- Support team
Last verified: (source review; see test status above).