COUNT function - Microsoft Support (2024)

Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel for the web Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 More...Less

The COUNT function counts the number of cells that contain numbers, and counts numbers within the list of arguments. Use the COUNT function to get the number of entries in a number field that is in a range or array of numbers. For example, you can enter the following formula to count the numbers in the range A1:A20: =COUNT(A1:A20). In this example, if five of the cells in the range contain numbers, the result is 5.

COUNT function - Microsoft Support (1)

Syntax

COUNT(value1, [value2], ...)

The COUNT function syntax has the following arguments:

  • value1Required. The first item, cell reference, or range within which you want to count numbers.

  • value2, ...Optional. Up to 255 additional items, cell references, or ranges within which you want to count numbers.

Note:The arguments can contain or refer to a variety of different types of data, but only numbers are counted.

Remarks

  • 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.

Example

Copy the example data in the following table, and paste it in cell A1 of a new Excel worksheet. For formulas to show results, select them, press F2, and then press Enter. If you need to, you can adjust the column widths to see all the data.

Data

12/8/08

19

22.24

TRUE

#DIV/0!

Formula

Description

Result

=COUNT(A2:A7)

Counts the number of cells that contain numbers in cells A2 through A7.

3

=COUNT(A5:A7)

Counts the number of cells that contain numbers in cells A5 through A7.

2

=COUNT(A2:A7,2)

Counts the number of cells that contain numbers in cells A2 through A7, and the value 2

4

COUNTIF function (counts the number of cells that meet a criterion)

COUNTA function (counts the number of cells that are not empty in a range)

Need more help?

Want more options?

Discover Community

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.

COUNT function - Microsoft Support (2024)
Top Articles
Aprende a citar y referenciar en estilo ISO 690
Ver: The Fabelmans Pelicula Completa Online en espanol y latino gratis
Exclusive: Baby Alien Fan Bus Leaked - Get the Inside Scoop! - Nick Lachey
Week 2 Defense (DEF) Streamers, Starters & Rankings: 2024 Fantasy Tiers, Rankings
Wordscapes Level 5130 Answers
Mopaga Game
Brgeneral Patient Portal
Wells Fargo Careers Log In
Bellinghamcraigslist
Computer Repair Tryon North Carolina
Steve Strange - From Punk To New Romantic
About Goodwill – Goodwill NY/NJ
Aktuelle Fahrzeuge von Autohaus Schlögl GmbH & Co. KG in Traunreut
Caliber Collision Burnsville
978-0137606801
Chile Crunch Original
Tcgplayer Store
Skyward Login Jennings County
Roster Resource Orioles
Chelactiv Max Cream
Voy Boards Miss America
Zalog Forum
Www.publicsurplus.com Motor Pool
Christina Steele And Nathaniel Hadley Novel
12 Top-Rated Things to Do in Muskegon, MI
Gas Buddy Prices Near Me Zip Code
Foolproof Module 6 Test Answers
Margaret Shelton Jeopardy Age
Villano Antillano Desnuda
When His Eyes Opened Chapter 3123
208000 Yen To Usd
Publix Daily Soup Menu
Autotrader Bmw X5
Luciipurrrr_
24 slang words teens and Gen Zers are using in 2020, and what they really mean
Suspect may have staked out Trump's golf course for 12 hours before the apparent assassination attempt
Craigslist Red Wing Mn
Helloid Worthington Login
Laurin Funeral Home | Buried In Work
Keeper Of The Lost Cities Series - Shannon Messenger
Fototour verlassener Fliegerhorst Schönwald [Lost Place Brandenburg]
B.C. lightkeepers' jobs in jeopardy as coast guard plans to automate 2 stations
SF bay area cars & trucks "chevrolet 50" - craigslist
Ferguson Employee Pipeline
Noaa Duluth Mn
Postgraduate | Student Recruitment
Peace Sign Drawing Reference
Hk Jockey Club Result
'The Nun II' Ending Explained: Does the Immortal Valak Die This Time?
Myra's Floral Princeton Wv
Campaign Blacksmith Bench
7 Sites to Identify the Owner of a Phone Number
Latest Posts
Article information

Author: Duncan Muller

Last Updated:

Views: 6206

Rating: 4.9 / 5 (59 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Duncan Muller

Birthday: 1997-01-13

Address: Apt. 505 914 Phillip Crossroad, O'Konborough, NV 62411

Phone: +8555305800947

Job: Construction Agent

Hobby: Shopping, Table tennis, Snowboarding, Rafting, Motor sports, Homebrewing, Taxidermy

Introduction: My name is Duncan Muller, I am a enchanting, good, gentle, modern, tasty, nice, elegant person who loves writing and wants to share my knowledge and understanding with you.