
To count numeric stock entries without adding inventory, use =COUNT(A1:A3). With 18, 7, and 12 in A1:A3, the result is 3. This answers a different question from a stock total: COUNT tells you how many numeric quantity records were entered, while SUM tells you how many units those records add up to.
That distinction is useful when checking whether a stock sheet has received the expected number of quantity entries. A zero quantity and a negative adjustment are still numbers, so COUNT includes them.
Excel COUNT for stock entries
Use COUNT when the result you need is the number of cells containing quantities. It is a compact check for an entered-quantity column, not an inventory valuation or a running stock balance.

Task and setup
Suppose the quantity cells in a small stock check are A1:A3. Enter 18 in A1, 7 in A2, and 12 in A3.
| Cell | Entered quantity | What it represents |
|---|---|---|
| A1 | 18 | First stock quantity record |
| A2 | 7 | Second stock quantity record |
| A3 | 12 | Third stock quantity record |
Count the entered quantity records
- Select an empty cell for the result, such as C1.
- In an empty result cell, enter
=COUNT(A1:A3)and press Enter. - Read the result as the number of numeric quantity cells in the selected range.
The formula returns 3 because all three quantity cells contain numbers. COUNT evaluates the cells in the range individually and increments the result for each numeric value.
Why this is not the stock total
If you entered =SUM(A1:A3) for this same data, the result would be 37. That is the quantity total: 18 + 7 + 12. It is useful for a different task, but it does not tell you how many quantity records were supplied.
Use COUNT when your audit question is, “How many numeric quantities were entered?” Use SUM when the question is, “How many units do these quantities represent?” Keeping those checks in separate result cells makes a stock worksheet easier to review.
Zero and negative stock adjustments
A quantity of 0 is still a numeric entry, so it is included in COUNT. A negative adjustment such as -4 is still a numeric entry, so it is included in COUNT.
For example, replace the earlier values with 0 in A1, -4 in A2, and 9 in A3. The formula remains =COUNT(A1:A3), and the result is still 3. The signs affect a SUM result, but they do not change whether a cell contains a number.
| Cell | Entered quantity | Included by COUNT? |
|---|---|---|
| A1 | 0 | Yes |
| A2 | -4 | Yes |
| A3 | 9 | Yes |
This is particularly helpful where a zero confirms that a count was performed, or where a negative figure records a return, correction, or stock reduction. Do not remove those entries merely to make a numeric-entry count look cleaner; they are valid records for this check.

Common mistakes when checking stock entries
Using SUM when you need a record count
SUM adds quantities. It can produce a perfectly reasonable inventory figure while failing to show whether the expected number of stock records was entered. Put COUNT beside SUM when you need both controls.
Using COUNTA for a numeric-entry check
COUNTA counts non-empty cells, whereas COUNT counts cells containing numbers. Microsoft’s guide to counting cells in a range distinguishes these two purposes. For a quantity-entry check, COUNT is the more precise choice.
Expecting a visible quantity to be counted when it is stored as text
COUNT counts numeric cells; it does not calculate the units held, and it does not count text or blank cells in a referenced range. If COUNT returns 0 even though a quantity appears on screen, review whether that value is stored as text and use the steps in this guide to fix COUNT returning 0 for text numbers.
Compatibility and practical limits
COUNT is available in Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2021, Excel 2019, and Excel 2016. Microsoft documents COUNT as a function that counts cells containing numbers in a range or list of arguments.
When the only entered quantity is numeric, a COUNT range containing that one cell returns 1. Conversely, COUNT is not a way to calculate stock on hand, find a particular SKU, or explain why a PivotTable displays a count instead of a total. For the last issue, see how to fix a PivotTable that shows Count instead of Sum.
Next check for a stock worksheet
For a simple audit, place a COUNT result beside a SUM result. The first confirms the number of numeric records entered; the second shows the combined quantity. Review an unexpected COUNT result before relying on the inventory total, especially after importing or pasting stock data.
Sources
- Microsoft Support: COUNT function syntax, numeric-cell behavior, and version coverage
- Microsoft Support: ways to count cells in a range of data
Practice with the exact example data
Use a separate blank worksheet for each example. Enter each value at its listed cell address, then type the formula in AA1. Quoted text is shown in JSON notation to preserve spaces: enter the characters inside the quotes, without the quotes, using a leading apostrophe to keep text and spaces literal. An empty quoted string means an explicit empty text value; use an apostrophe entry where appropriate. Compare your result with the expected result below. These are synthetic practice data.
Example 1 — Main case
| Cell | Input value |
|---|---|
| A1 | 18 |
| A2 | 7 |
| A3 | 12 |
Formula in AA1: =COUNT(A1:A3)
Expected result: 3
Example 2 — Boundary case
| Cell | Input value |
|---|---|
| A1 | 0 |
| A2 | -4 |
| A3 | 9 |
Formula in AA1: =COUNT(A1:A3)
Expected result: 3
These examples were checked with a limited calculator supporting numeric aggregates, ASCII text functions, exact criteria and exact first-match XLOOKUP. Only the displayed examples and supported semantics were calculated. They were not executed in Microsoft Excel. This check does not verify every claim in the article.
Prepared with automated drafting and review, official references, and a limited example calculator. Synthetic examples are provided for practice; no independent human review or Microsoft Excel execution is claimed.
Download the practice sheet (HTML) or Download the practice workbook (XLSX). The workbook has exact input cells and expected results; enter the provided formula yourself. Available after this article is published.