Excel: How Many Cells? Count Filled, Blank and Total
In this article
The fastest way to find out how many cells you have is to click a range and read the status bar at the bottom of the Excel window — most versions show a Count of the selected cells (filled cells only) and you can right-click that readout to also show the total, numeric and average counts. If you need a number that updates automatically, use =COUNT for numbers, =COUNTA for any non-blank cell, =COUNTBLANK for empty ones, or =ROWS(range)*COLUMNS(range) for the total size of a range. Exact wording on buttons and the status bar varies slightly by Excel version, platform and region.
What You'll Need
- Excel for Microsoft 365, Excel 2021/2019/2016, or Excel for the web or Mac — the functions below work in all of them.
- A workbook with data in it, and permission to edit it if it is shared.
- About two minutes. No add-ins or macros required.
Step-by-Step
- Pick your question first. "How many cells" can mean three different things: how many cells the sheet or range contains in total, how many contain data, or how many are empty. Decide which one you need, because each uses a different tool.
- Count the total cells in a range with a quick check. Select the range with the mouse. On the Home tab, the name box (top-left, left of the formula bar) shows how many rows and columns you selected, often in the form R x C. Multiply those two numbers for the total cell count. For example, 50 rows by 8 columns is 400 cells.
- Read the status bar for filled cells. With the range still selected, look at the bottom-right of the Excel window. It displays Count, which is the number of non-empty cells in the selection. Right-click anywhere on that status-bar area to turn on Count, Numerical Count, Sum, Average, Minimum and Maximum. This readout does not exist in a few older or mobile builds — if you do not see it, use a formula instead.
- Count all non-blank cells with COUNTA. Click an empty cell outside your data and type
=COUNTA(A1:C100). ReplaceA1:C100with your range, or the whole column such asA:A. Press Enter. COUNTA counts numbers, text, dates, logical values and error values, but not truly empty cells and not zero-length strings returned by formulas. - Count only numbers with COUNT. Type
=COUNT(A1:A100). This counts cells holding numeric values, including dates and times, and ignores text and blanks. Use this when you want to know how many entries have a value in a price or quantity column. - Count blank cells with COUNTBLANK. Type
=COUNTBLANK(A1:A100). Note it also counts cells that contain an empty string produced by a formula, such as=IF(B2="","",B2). Inconsistent results between COUNTBLANK and COUNTA usually come from formulas like that. - Reach a whole sheet's used area. Click any single cell inside your data and press Ctrl+A (Cmd+A on Mac) to select the current region. Pressing Ctrl+A a second time selects the whole sheet. Reading Count in the status bar then tells you how many cells are in use across the entire worksheet, at least within Excel's used range.
- Count a filtered list correctly. COUNT and COUNTA count hidden rows too. If you have applied a filter and want visible rows only, use
=SUBTOTAL(109,A1:A100)for numbers or=SUBTOTAL(103,A1:A100)for non-blank visible cells. Rows hidden by a filter are skipped; rows you hide manually by right-clicking are not. - Count with a condition. Use
=COUNTIF(A1:A100,">0")for numbers meeting a test, or=COUNTIFS(A1:A100,">0",B1:B100,"North")for two conditions at once. For text,=COUNTIF(C1:C100,"*apple*")counts cells containing that word. - Turn any count into a live label. Combine a function with text, for example
="Rows entered: "&COUNTA(A1:A500). The result is a text string, so it will not act as a number downstream — keep the raw count in its own cell if you need to calculate with it. - Check the result. Compare your formula count against the status-bar Count for the same range. If they differ, one of the ranges is wrong or you have formula-generated blanks or trailing spaces.
Common Mistakes
- Assuming COUNT counts everything. COUNT counts numbers only. A column of names returns 0, which looks like a broken formula but is correct behaviour.
- Trailing spaces. A cell holding a single space looks empty but is counted by COUNTA. Use
=COUNTIF(A1:A100," ")or trim the data to confirm. - Selecting the wrong range shape.
A1:C100covers every column from A to C. If you meant a disjoint list, you need a different argument or a helper column. - Forgetting filtered rows. Plain COUNT and COUNTA include rows hidden by a filter. Use SUBTOTAL with the 100-series function numbers when you want visible-only counts.
- Putting the formula inside the range. A COUNTA over
A:Aplaced in column A counts itself and can produce a circular reference. Place it in another column. - Confusing used range with whole sheet. A new sheet has over a million rows available, but only the used range holds data. Ctrl+End jumps to the last used cell and shows where Excel thinks the data ends.
Tips
- Name your range with Formulas > Define Name so that
=COUNTA(MyData)stays readable, and the label updates when you extend the range. - To find where a sheet's data really ends, press Ctrl+End. If it lands far to the right or far below your visible data, blank-looking cells there are still formatted and will be counted as part of the used range.
- Use
=COUNT(A1:A100)/ROWS(A1:A100)to get a completion rate — useful for tracking how much of a checklist is filled. - For a quick total without formulas, select the range and check both Count and Numerical Count in the status bar; the gap between them is your text-only cell count.
- Wrap counts inside
=IFERROR()only when combining with lookups; plain count functions do not error on empty ranges, they return 0.
Troubleshooting
- The formula returns 0 but you see data. The numbers are probably stored as text. Select the column and check for a green triangle warning, or try
=COUNT(VALUE(A1))to test a single cell. Convert text numbers with Data > Text to Columns and Finish. - Counts differ between two formulas. Compare COUNTBLANK and COUNTA totals against the range size. If they do not add up to the total cell count, you have formula-generated empty strings or spaces.
- The status bar shows nothing. Right-click the status bar area and enable Count. On some mobile and web versions the readout is limited or absent; use a formula instead.
- #NAME? error. Usually a misspelled function name or a missing quotation mark around a text criterion. Retype the formula rather than editing one character at a time.
- Count changes after filtering. That is expected if you used SUBTOTAL; it is a sign you used the right function, not a bug.
- Counts seem far too high. Press Ctrl+End to check the used range. Delete entire empty rows and columns below and to the right of your data, then save.
Frequently Asked Questions
How do I count how many cells contain any text in Excel?
Use =COUNTA(range) minus =COUNT(range), or =COUNTIF(range,"*?") if you only want text. The wildcard version ignores numbers and empty strings.
Why does COUNT return 0 for a column of numbers?
The values are likely stored as text, sometimes copied in from another system. Convert them with Text to Columns or by multiplying the range by 1 in a helper column.
Can I count cells across more than one sheet?
Yes. Enter the reference as =COUNTA(Sheet1!A1:A100,Sheet2!A1:A100), listing each range separated by commas, or use 3D references like =SUM(Sheet1:Sheet3!A1) for summed counts.
How many cells does a worksheet have?
Modern Excel worksheets offer 1,048,576 rows and 16,384 columns, which is over 17 billion cells in total. You never count them all — you count the range you actually use.
Does COUNTBLANK count cells with a space in them?
No. A cell containing a space is not blank, so COUNTBLANK ignores it but COUNTA counts it. That mismatch is the usual source of confusing totals.
How do I count only the visible cells after filtering?
Use =SUBTOTAL(103,range) for non-blank visible cells or =SUBTOTAL(109,range) for visible numeric values. The 100-series function numbers are the ones that ignore filtered-out rows.