Non Blank Excel: Filter Out Empty Cells
In this article
To work with non blank Excel cells, the fastest route is to turn on AutoFilter and uncheck "(Blanks)", or to use Find & Select > Go To Special > Blanks to select empty cells so you can delete or highlight them. If you want a count of non blank cells, use =COUNTA(range). The exact menu wording can differ slightly between Excel versions, Excel for the web, and Mac Excel, so the steps below describe what to look for rather than promising identical labels everywhere.
What You'll Need
- Excel for Windows, Excel for Mac, or Excel for the web. The features used here are standard across all three, with small wording differences.
- A worksheet that has a single header row above your data. This matters most for AutoFilter and for formulas.
- Your data should be in one continuous block with no fully merged header rows, since merging breaks filtering and sorting.
Step-by-Step
Method 1: Filter to show only rows with data (non blank)
- Click any cell inside your data block. Do not select the whole sheet, or Excel may not detect your header row.
- Go to Data > Filter. Dropdown arrows appear in the header cells.
- Click the arrow on the column you want to test for blank cells.
- Uncheck the box next to (Blanks) and leave the other entries checked. Click OK.
- Every row where that column was empty is now hidden, and only non blank rows in that column remain visible.
- To make this permanent, select the visible rows, copy them, and paste into a new sheet. Hidden rows are not copied by default, so the pasted result contains only your non blank records.
If you want to hide rows that are completely empty across every column rather than blank in one column, add a helper column with =COUNTA(A2:Z2) and filter that column to hide the zero values. Adjust the range to match your real columns.
Method 2: Select and remove blank cells with Go To Special
- Select the range you want to clean, for example your whole data table.
- Press Ctrl+G (Windows) or Cmd+G (Mac) to open Go To, or use Home > Find & Select > Go To Special.
- Choose Blanks and click OK. Excel selects only the empty cells inside the range.
- Now do one of three things:
- To delete whole rows, use Home > Delete > Delete Sheet Rows. This removes the entire row containing each selected blank cell, so be careful: a blank cell in one column will take out the whole row.
- To fill blanks instead of deleting them, type a value and press Ctrl+Enter to fill every selected blank cell at once. A short marker such as "N/A" keeps the row intact.
- To highlight them, use Home > Fill Color while the blanks are still selected.
Never press Delete on the selected blanks expecting the rows to disappear, because Delete only clears contents and leaves empty cells in place.
Method 3: Count non blank cells
- Click an empty cell outside your data table.
- Type =COUNTA(A2:A100), replacing the range with your real range.
- Press Enter. The result is the number of cells that contain anything: text, numbers, errors, or even a space typed by accident.
- Use =COUNTBLANK(A2:A100) to see how many cells are truly empty, and compare the two numbers against the total.
Method 4: Use FILTER to build a clean list
- In a blank area, type =FILTER(A2:C100, A2:A100<>""), swapping the ranges for your own.
- Press Enter. Excel spills a new table containing only the rows where the test column is not empty.
- If you get #SPILL!, clear the cells below and to the right of the formula so the results have room.
FILTER is available in current Excel versions but not in Excel 2019 or older perpetual releases. If it is missing, Method 1 is your fallback.
Common Mistakes
- Treating a space as a real value. A cell containing only a space is not blank to Excel. COUNTA counts it and AutoFilter shows it as an entry. Use Find & Replace with the space in "Find what" and nothing in "Replace with" to clear them.
- Deleting rows from a filtered sheet without re-checking. Delete Sheet Rows on a filtered list can remove rows you did not mean to touch. Remove the filter first, or copy the visible rows to a fresh sheet and delete there.
- Selecting the whole column instead of the data range. Go To Special > Blanks on an entire column selects hundreds of thousands of empty cells below your data, and deleting rows then removes them.
- Forgetting merged cells. Merged headers make AutoFilter unreliable; unmerge them under the Home tab first.
- Assuming a blank-looking cell is empty. Apostrophes, line breaks, and formulas returning "" all look empty but are not. Click the cell and check the formula bar.
Tips
- Convert your range into a table with Insert > Table. Tables extend filters automatically as you add rows and keep the header row intact.
- Use Conditional Formatting > New Rule > Format only cells that contain > Blanks to see gaps without touching the data.
- When you accelerate cleanup, work on a copy of the sheet. Deleting hundreds of rows is hard to undo once you have saved.
- Combine COUNTA with a comparison such as =IF(COUNTA(A2:A100)=ROWS(A2:A100),"Complete","Has gaps") to flag incomplete records at a glance.
- Remember Ctrl+Z undoes a bad delete only until you close the file. Save a copy first for anything destructive.
Troubleshooting
- AutoFilter has no "(Blanks)" option. That checkbox only appears when the column actually contains blanks. If it is missing, the column is already fully populated.
- Hidden rows still appear after copying. Excel copies visible rows by default, but make sure you selected the filtered range only. Paste into a new sheet and verify the row count.
- COUNTA returns a number higher than expected. Something invisible is in the cells. Run Find & Select > Go To Special > Blanks; whatever survives that selection is genuinely occupied, then inspect the formula bar.
- FILTER returns #CALC! or #VALUE!. Usually the criteria reference the wrong range, or the arrays are different sizes. Confirm each range in the formula covers the same number of rows.
- Go To Special says "No cells were found". The range you selected is fully populated. Widen the selection to include the columns where the gaps really are.
- Everything looks wrong after a delete. Press Ctrl+Z immediately, and if the file was already saved, close without saving if your version prompts you, or restore an earlier copy from File > Info > Version History where available.
Frequently Asked Questions
What is the difference between blank and non blank in Excel?
A blank cell contains nothing at all. A non blank cell contains any content, including spaces, line breaks, apostrophes, or a formula that returns an empty looking string. That is why COUNTA can count cells that look empty.
How do I quickly select only the cells that are not empty?
Select the range, open Home > Find & Select > Go To Special, choose Constants if the data are typed values, or use AutoFilter to hide (Blanks). Constants skips formulas, so use Go To Special > Formulas if your data are formula results.
Does deleting blank cells remove the whole row?
Delete Sheet Rows does. If you only want the empty cells gone while the rows stay, use Home > Delete > Delete Cells and choose to shift remaining cells up or left, which moves the surrounding data.
Why does a cell copied from a website look blank but count as filled?
Web copy often brings a non breaking space or a stray line break. Select the cell, check the formula bar, and clean it with Find & Replace or by retyping the value.
Can I do this in Excel for the web?
Yes for filtering, COUNTA, and Go To Special. Some older versions of the web app hide certain built-in commands behind menus, so if you cannot find an option, open the sheet in the desktop app.
Is there a way to keep the non blank list updating automatically?
Put the data in a table and use a FILTER formula pointing at the table range. New rows are then included as they are added, while genuinely empty rows are excluded.