Statistical
All versions
◉ 15 views
=COUNT()
How to use the COUNT function in Excel to count the number of cells that contain numbers, and to count numbers within a list of arguments.
Applies To:
Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for MacExcel 2019Excel 2016
=COUNT(value1, [value2], ...)
Hover argument names in the table for details.
Output typeNumber
Popularity75 / 100
VolatileNo
Dynamic ArrayNo
📥 Download sample .xlsx — Coming soon
▦ Try in Playground
Dedicated file for this function — safe & lightweight · sample data + live formulas
⬇ Download Sample Workbook
A dedicated .xlsx for =COUNT() with Persian sample data & live formulas — open in Excel and practice.
- Sheet “Sample” — data table + formula in place
- Sheet “Guide” — syntax, arguments & tips from this page
- Instant & secure (token + rate limit)
🧠 🧠 Quiz this function
%d questions — syntax, example & errors — test yourself!
◧ Arguments
| Argument | Type | Required | Description |
|---|---|---|---|
value1 |
Any type | Required | The first item, cell reference, or range within which you want to count numbers. |
value2 |
Any type | Optional | , ... Optional. Up to 255 additional items, cell references, or ranges within which you want to count numbers. |
▣ Examples
تعداد سلولهای دارای عدد در سلولهای A2 تا A7 را میشمارد.
=COUNT(A2:A6)
تعداد سلولهای دارای عدد در سلولهای A5 تا A7 را میشمارد.
=COUNT(A5:A6)
تعداد سلولهای دارای عدد در سلولهای A2 تا A7 بهعلاوه مقدار ۲ را میشمارد.
=COUNT(A2:A6,2)
✦ Tips
- Arguments that are numbers, dates, or a text representation of numbers (for example, a number enclosed in quotation marks, such as "1") are counted.
- Logical values and text representations of numbers that you type directly into the list of arguments are counted.
- Arguments that are error values or text that cannot be translated into numbers are not counted.
- If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values, text, or error values in the array or reference are not counted.
- If you want to count logical values, text, or error values, use the COUNTA function.
- If you want to count only numbers that meet certain criteria, use the COUNTIF function or the COUNTIFS function.
💬 Comments & Q&A 0 approved
🔒 Your comment will be published after review.Share your thoughts — visible after admin approval
No comments yet — be the first!