Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Google Spreadsheet COUNT Function: How to Use It

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The COUNT function in Google Sheets counts the cells in a range that contain numbers, and it ignores text, blanks, and logical values. To use it, click an empty cell, type =COUNT(, select the range you want to check, close the parenthesis, and press Enter. That is the whole job: COUNT returns a single number telling you how many numeric entries exist in that range. This guide walks through the exact steps, the common variations such as COUNTIF and COUNTA, and the mistakes that make COUNT return zero when you expected a total.

What You'll Need

  • A Google account with access to Google Sheets (free with any Google account).
  • A spreadsheet open in a browser or the Google Sheets mobile app.
  • A column or range that contains a mix of numbers, text, or blanks so you can see what COUNT includes and excludes.

Step-by-Step

  1. Open your spreadsheet. Go to sheets.google.com, sign in, and open the file you want to work in. On mobile, open the Google Sheets app and tap the file. Menu labels can differ slightly by version, device, or region, but the function syntax is the same everywhere.
  2. Click the cell where the result should appear. Pick an empty cell below or beside your data, for example B1 if your numbers are in column B. This cell will hold the count, not the data itself.
  3. Type the formula. Start with an equals sign, then the function name and an opening parenthesis: =COUNT(. Google Sheets will show a hint bubble with the expected arguments.
  4. Select the range. Drag across the cells you want to count, or type the range manually, such as B2:B50. You can also count several separate ranges by separating them with commas: =COUNT(B2:B50, D2:D50). Close the parenthesis after the last range.
  5. Press Enter (or the checkmark on mobile). The cell now shows the number of numeric entries in the selected range. If you selected a whole column with =COUNT(B:B), the header text in B1 is ignored automatically because it is not a number.
  6. Verify the result against your data. Scroll through the range and spot-check a few cells. If the count looks lower than expected, look for numbers stored as text (they often sit left-aligned in the cell) or cells with apostrophes in front of the value.
  7. Copy the formula down or across if needed. Drag the small square at the bottom-right corner of the cell to fill adjacent cells. Relative references adjust automatically, so =COUNT(B2:B50) becomes =COUNT(C2:C50) when dragged one column right.
  8. Use COUNTIF or COUNTA when COUNT is not the right tool. COUNT only counts numbers. To count cells that meet a condition, use =COUNTIF(range, criterion), for example =COUNTIF(B2:B50, ">10") to count values greater than 10. To count non-empty cells including text, use =COUNTA(range). To count blank cells, use =COUNTBLANK(range).

Common Mistakes

  • Expecting COUNT to include text. COUNT ignores text, blanks, and boolean values. If your column contains product names or status labels, you need COUNTA, not COUNT.
  • Numbers stored as text. A cell that looks like 42 but was pasted from another system may be text. COUNT skips it. Look for left-aligned numbers or a green triangle warning in the corner, then convert with Format > Number > Number or by retyping the value.
  • Including the header row by accident. Counting B1:B50 when B1 is a text header is harmless for COUNT, but it breaks COUNTIF criteria that expect only data. Start ranges at the first data row.
  • Forgetting the closing parenthesis. Google Sheets will offer to fix it, but an unclosed formula returns an error instead of a count.
  • Using COUNT on a range of formulas that return empty strings. A formula like =IF(A1="","",A1) produces text, not a number, so COUNT skips it. Use COUNTIF with a numeric criterion if you need to count those results.
  • Confusing COUNT with SUM. COUNT returns how many numbers there are; SUM returns their total. They are different functions with different results.

Tips

  • Use =COUNT(A:A) to count every number in a column without knowing where the data ends. It is fast and updates automatically as rows are added.
  • Combine COUNT with other functions, for example =COUNT(B2:B50)/COUNTA(B2:B50) to get the share of entries that are numeric.
  • Name your ranges (Data > Named ranges) so formulas read clearly, such as =COUNT(SalesFigures).
  • Press Ctrl+` (backtick) on a desktop keyboard to toggle formula view and see every formula in the sheet at once, which helps spot ranges that are off by a row.
  • When pasting data, use Paste special > Values only to avoid carrying over text formatting that turns numbers into text.

Troubleshooting

If COUNT returns 0, the range probably contains no true numbers. Check whether the values are text by selecting a cell and looking at the alignment: numbers align right by default, text aligns left. Convert text numbers with Format > Number > Number, or use the VALUE function inside a helper column.

If COUNT returns a number that is too high, your range may include cells you did not intend, such as totals or dates. Dates are stored as numbers in Google Sheets, so COUNT includes them. Narrow the range or switch to COUNTIFS with a criterion that excludes them.

If you see #NAME?, the function name is misspelled or the equals sign is missing. If you see #ERROR!, a parenthesis or comma is misplaced. Delete the formula and retype it slowly, watching the hint bubble for the expected argument order.

If the formula worked yesterday and shows an error today, check whether rows were inserted or deleted inside the range. Google Sheets usually adjusts references automatically, but cut-and-paste operations can break them. Re-select the range to fix it.

If nothing changes when you edit the data, make sure calculation is set to automatic. In most accounts it is, but a shared file with manual recalculation will not update until you refresh. Reload the browser tab or reopen the mobile app.

Frequently Asked Questions

What is the difference between COUNT and COUNTA?

COUNT counts only cells containing numbers. COUNTA counts every non-empty cell, including text, numbers, and formulas that return text. Use COUNTA for lists of names or categories, and COUNT for numeric columns.

Does COUNT include dates and times?

Yes. Google Sheets stores dates and times as numbers, so COUNT includes them. If you want to exclude dates, use COUNTIF with a criterion that targets only the values you want.

Can COUNT count cells across multiple sheets?

Yes. Reference each sheet by name with an exclamation mark, for example =COUNT(Sheet1!B2:B50, Sheet2!B2:B50). Sheet names with spaces need single quotes around them.

Why does COUNT return 0 when I can see numbers in the cells?

The numbers are almost certainly stored as text. Check the alignment and any warning triangles, then convert the column to Number format or retype the values.

Is COUNT the same in Excel and Google Sheets?

The basic syntax and behavior are the same, so formulas usually transfer cleanly. Minor differences exist in how each app handles arrays and errors, but for simple ranges the results match.

How do I count only numbers greater than zero?

Use COUNTIF with a criterion: =COUNTIF(B2:B50, ">0"). COUNT itself has no built-in condition; it always counts every numeric cell in the range.