To return a list with no empty cells in Excel, use a formula that combines INDEX, SMALL, IF and ROW, or the newer FILTER function. For a range A2:A100, enter =IFERROR(INDEX(A$2:A$100, SMALL(IF(A$2:A$100<>"", ROW(A$2:A$100)-ROW(A$2)+1), ROWS($1:1))), "") as an array formula (Ctrl+Shift+Enter in older Excel) and copy down. In Excel 365 or Excel 2021, =FILTER(A2:A100, A2:A100<>"") spills the non-blank values automatically. This guide walks through both methods, plus fixes for common errors.
What You'll Need
- Excel 2016 or later (FILTER requires Excel 365 or Excel 2021; the INDEX/SMALL method works in all versions).
- A range of data with some blank cells you want to skip.
- Basic familiarity with entering formulas and copying them down.
Step-by-Step
Method 1: FILTER function (Excel 365 / 2021)
- Select the cell where you want the first result (e.g., C2).
- Type
=FILTER(A2:A100, A2:A100<>"")and press Enter. The non-blank values spill down from C2. - If you want a custom message when the source is all blank, wrap it:
=FILTER(A2:A100, A2:A100<>"", "No data"). - To sort the results, nest SORT:
=SORT(FILTER(A2:A100, A2:A100<>"")).
Method 2: INDEX/SMALL array formula (all Excel versions)
- Click the cell where the first result should appear (e.g., C2).
- Enter this formula:
=IFERROR(INDEX(A$2:A$100, SMALL(IF(A$2:A$100<>"", ROW(A$2:A$100)-ROW(A$2)+1), ROWS($1:1))), ""). - If you are on Excel 2019 or earlier, press Ctrl+Shift+Enter instead of Enter. The formula bar should show curly braces { } around the formula.
- Copy the formula down as many rows as you expect results (e.g., C2:C100). Each row pulls the next non-blank value.
- If your data starts at row 1, adjust the ROW references: use
ROW(A$1:A$100)-ROW(A$1)+1andROWS($1:1).
Method 3: Quick filter for a one-off view
- Select your data range including headers.
- Go to Data > Filter. Click the dropdown arrow on the column.
- Uncheck (Blanks) and click OK. This hides blank rows but does not create a formula-based list.
Common Mistakes
- Forgetting Ctrl+Shift+Enter in older Excel: without it, the array formula returns only the first value or an error.
- Wrong row offset: if your range starts at row 2 but you use
ROW(A$1:A$100)-ROW(A$1)+1, the positions are off by one. Always match the ROW subtraction to the first row of your range. - Using whole-column references like A:A in array formulas: this can be slow. Use a bounded range such as A2:A1000.
- Treating spaces as blanks: a cell containing a space is not empty by Excel's test
<>"". UseTRIMor clean the data first. - Copying the formula without locking rows: use absolute references (A$2:A$100) so the source range does not shift as you copy down.
Tips
- Use
FILTERwhen possible: it is simpler, spills automatically, and updates when source data changes. - To list non-blank values from multiple columns, combine with
TOCOL(Excel 365):=FILTER(TOCOL(A2:C100), TOCOL(A2:C100)<>""). - For a dynamic named range, define a name with
=OFFSET($A$2,0,0,COUNTA($A:$A)-1,1)and reference it in your formula. - If you need the list to ignore errors as well as blanks, wrap the source in
IFERROR(...,"")first. - Press F9 on a selected portion of the formula to see what it evaluates to; this helps debug array formulas.
Troubleshooting
If the formula returns #VALUE! or #NUM!, check that your range sizes match and that you entered the array formula correctly. In Excel 365, dynamic arrays may spill into adjacent cells; if you see #SPILL!, clear the cells below or move the formula. If the list stops early, you may have copied the formula down fewer rows than there are non-blank values. If blanks still appear, verify that the cells are truly empty (no spaces or apostrophes). For FILTER, ensure your version supports it: if you see #NAME?, you are on an older version and should use Method 2. If the formula is slow on large ranges, limit the range to the actual data area rather than entire columns.
Frequently Asked Questions
Can I use a formula to remove blanks without array entry?
Yes, in Excel 365 and Excel 2021 the FILTER function does this natively without Ctrl+Shift+Enter. In older versions, you need the array formula or a helper column.
Why does my formula return 0 instead of skipping blanks?
If your source contains zero-length strings from formulas (e.g., =""), Excel may treat them as non-blank. Use FILTER(A2:A100, (A2:A100<>"")*(A2:A100<>0)) or clean the source.
How do I list non-blank cells from a row instead of a column?
Replace the column range with a row range and adjust the INDEX row argument to a column argument, or use TRANSPOSE with FILTER: =TRANSPOSE(FILTER(A1:Z1, A1:Z1<>"")).
Does this work in Excel for Mac?
Yes. The array formula uses the same keys (Cmd+Shift+Enter on some Mac layouts, or Ctrl+Shift+Enter depending on keyboard). FILTER works in Excel for Microsoft 365 on Mac.
Can I make the list update automatically when I add data?
Yes, if you use a dynamic range (e.g., a table or a named range with OFFSET/COUNTA) or the FILTER function, which recalculates when the source changes.
What if I want to count non-blank cells instead of listing them?
Use =COUNTA(A2:A100) for non-empty cells, or =COUNTIF(A2:A100,"<>") to count cells that are not blank (including text and numbers).