What is COUNT in Excel and How to Use COUNT Function? (2024)

Excel is a widely used data management tool that helps us analyze and interpret data. It is underappreciated for the wide variety of tasks that can be performed on the application. Excel has a versatile library of built-functions, making it a very powerful tool. Hence making it a popular one too.

In this article, we will be discussing the function COUNT in Excel.

As the name suggests, the ‘COUNT’ function helps us count cells in Excel. But that’s not it! There are five variations of COUNT in Excel, which helps us perform numerous counting tasks that we will be exploring in this article.

What is COUNT in Excel?

The COUNT function is generally used to count the number of cells in Excel or array of numbers.

Example: To count the numbers between A1 and A20, you may enter the following formula: =COUNT(A1:A20). For example, if the range contains three cells containing numbers, the result is 3.

There are two different ways to use COUNT in Excel. The syntax is as follows:

COUNT(value1,[value2],…)

The parameters of the COUNT function include comma-separated values. This function returns the total count of numeric values specified.

Usage:

What is COUNT in Excel and How to Use COUNT Function? (1)

Here we specify multiple values as the parameter and the COUNT function finds the total count of values in it.

NOTE: This function works only on numeric data. Hence, it will not find the count of text values if specified.

COUNT(range)

This function is used to count the number of cells in a specified range. It can be used to quantify data.

What is COUNT in Excel and How to Use COUNT Function? (2)

As we can see, using =COUNT(A2: A6), we get the count of cells in the range A2 to A6. This function works only on numeric data.

Now that we have understood how to use the function COUNT in Excel let’s look at the next function - COUNTA.

What Does the Function COUNTA Do in Excel?

This function counts cells with data, i.e., non-empty values within a range. The syntax is as follows:

=COUNTA(value1,[value2],…)

The values can be any range too. For example A1:A10

Usage:

What is COUNT in Excel and How to Use COUNT Function? (4)

As shown above, =COUNTA(E2: E6) counts cells with data(non-empty cells) in the range E2 to E6.

What Is the Difference Between COUNT and COUNTA in Excel?

COUNT calculates the count of cells with numeric values. In comparison, COUNTA finds the count of cells with non-empty data.

How Do You Use COUNTBLANK?

As the name implies, COUNTBLANK is a simple function that counts the number of blank or empty cells. The syntax is as follows:

=COUNTBLANK(range)

The COUNTBLANK function works on a specified range as a parameter.

Usage:

What is COUNT in Excel and How to Use COUNT Function? (5)

Looking at the example shown, COUNTBLANK helps count cells that are left blank/empty. We can use this function to find the entries that are left blank.

How Do You Use COUNTIF?

The COUNTIF function counts cells that match specific criteria. The syntax is as follows:

=COUNTIF(range,criteria)

The two arguments here are:

  • Range- which can be specified as a range of cells in Excel. For example B1: B6
  • Criteria- a condition on the function. For example: “>50”, A1

This function works on the specified range, counting the cells that match the criteria or condition.

Usage:

  • COUNTIF can be used to match the criterion with a string.

For example:

What is COUNT in Excel and How to Use COUNT Function? (6)

We are using the formula =COUNTIF(C2: C6, “Tianjin”) to check how many locations match the city “Tianjin”.

  • COUNTIF can be used to count cells with text-

Counting cells that only contain text is simple. We use ‘*’ as the condition.

The ‘*’ or asterisk symbol helps find any number of characters. In the following demo, you will see how the wildcard ‘*’ matches any number of characters.

What is COUNT in Excel and How to Use COUNT Function? (7)

The function =COUNTIF(D2: E12,”*”) executes over the range D2 to E12 and counts cells that contain text.

If you want a partial match, you can use wildcard characters to count cells that contain a particular word or letters. Look at the example below:

What is COUNT in Excel and How to Use COUNT Function? (8)

The formula =COUNTIF(C2: C12, “*HUBEI*”) counts the cells that have the value “HUBEI” in the range C2 to C12.

NOTE: Here, the asterisk symbol helps find cells with any sequence of leading or trailing characters. Also, this does not apply to boolean values.

  • COUNTIF can be used to count cells with the help of logical operators: Greater than, equal to or less than.

For example:

What is COUNT in Excel and How to Use COUNT Function? (9)

=COUNTIF(E2:E6,">=60")

Here, we have used the COUNTIF function to find the number of people over the age of 60 affected by COVID. We have taken the range of ages from cells E2 to E6. The criteria being that the value must be greater than or equal to 60.

NOTE: The criteria MUST be specified within quotes.

Similarly, you can use the following logical operations.

Logical operation

Formula Example

Description

Less than “<”

=COUNTIF(C1:C10,”<20”)

Count if the values in cells are lesser than 20

Less than or equal to “<=”

=COUNTIF(C1:C10,”<=20”)

Count if the values in cells are lesser than or equal to 20

Greater than “>”

=COUNTIF(C1:C10,”>20”)

Count if the values in cells are greater than 20

Greater than or equal to “>=”

=COUNTIF(C1:C10,”>=20”)

Count if the values in cells are greater than or equal to 20

Equal to “=”

=COUNTIF(C1:C10,”=20”)

Count if the values in cells are equal to 20

Not equal to “!=”

=COUNTIF(C1:C10,”<>20”)

Count if the values in cells are not equal to 20

Free Course: Introduction to MS Excel

Master the Fundamentals of MS ExcelEnroll Now

What is COUNT in Excel and How to Use COUNT Function? (10)

How Do You Use COUNTIFS?

This function is a plural counterpart of the COUNTIF function. It calculates the count of cells upon meeting multiple criteria.

The syntax is as follows:

  • =COUNTIFS(range1, criteria1,[range2, criteria2]…)

Here, range1 maps to the criteria1, range2 maps to criteria2, and so on.

The range1 and criteria1 are required arguments while the rest in square brackets are optional.

  • Range1 will be the range of cells to which the first condition (criteria1) will be applied.
  • Criteria1 defines the condition for the function that will work on Range1. The criteria can be any number, string, expression, or it can also be a cell reference. For example, “>=20”, ”China” or A1.
  • Similarly, [range2, criteria2] defines another set of range and its respective criteria to be met. They follow an ‘AND’ logic.

Multiple range-criteria sets can be added, and they must be comma-separated.

We will demonstrate the usage as follows.

What is COUNT in Excel and How to Use COUNT Function? (11)

The formula =COUNTIFS(B2:B12,">2/1/2020",D2:D12,"France") is used on two criteria. It checks if the reporting date is after 2/1/2020 AND if the country of the deceased individual is France.

NOTE: The COUNTIFS function follows AND logic. It counts cells only if both or ALL conditions are true.

More About COUNTIF

There are various numbers of tasks that can be performed using COUNTIF and COUNTIFS.

  • If you have to find the number of times a value occurs in a range:

You can use =COUNTIF(A1: A10, A1). This will be demonstrated below.

What is COUNT in Excel and How to Use COUNT Function? (12)

Using =COUNTIF(F2: F12, F2), we find the total count of cells where the cell containing “male” gender has been repeated.

  • Let’s say we want to find out if the data contains unique entries or not.

We can do so by using an IF with COUNTIF. Look at the following example.

What is COUNT in Excel and How to Use COUNT Function? (13)

The COUNTIF function executes first and finds the count of cells within the range A2 to A12, where the value in cell A3 (which is 2) has appeared. If the count is more than 1, duplicate values exist, and the result will be displayed as “DUPLICATE”. Else it displays “UNIQUE”.

Gain expertise in the latest Business analytics tools and techniques with theBusiness Analyst Master's Program. Enroll now!

Conclusion

We hope this article has given you a strong understanding of how various functions are used to COUNT in Excel. The function may seem to perform simple calculations. But when you combine them with other Excel functions, you will be amazed by how powerful Excel is in getting meaning out of massive datasets.

Do you have any questions related to this article? If so, please mention it in the comments section and our experts will get back to you at the earliest.

You can also go the extra mile and enhance your Excel skills by enrolling in the Business Analytics with Excel Free Course offered by Simplilearn.

What is COUNT in Excel and How to Use COUNT Function? (2024)

FAQs

How do you use the count function in Excel? ›

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.

What is count a in Excel? ›

The COUNTA function counts cells containing any type of information, including error values and empty text (""). For example, if the range contains a formula that returns an empty string, the COUNTA function counts that value. The COUNTA function does not count empty cells.

What is count and count if function in Excel? ›

Use COUNTIF, one of the statistical functions, to count the number of cells that meet a criterion; for example, to count the number of times a particular city appears in a customer list. In its simplest form, COUNTIF says: =COUNTIF(Where do you want to look?, What do you want to look for?)

What is the use of Counta () and Countblank () function in an Excel give a suitable example? ›

COUNT counts how many cells in a range contain numeric data (numbers). COUNTA counts how many populated cells in a range (i.e. not blank). COUNTBLANK counts how many blank cells in a range. COUNTIF counts how many cells in a range meet a certain condition.

How does count method work? ›

The Python count() method calculates how many times a particular element appears in a list or a string. count() accepts one argument: the value for which you want to search in the list. The count() method is appended to the end of a list or a string object.

What is the use of count () method explain with example? ›

Count() is a Python built-in function that returns the number of times an object appears in a list. The count() method is one of Python's built-in functions. It returns the number of times a given value occurs in a string or a list, as the name implies.

How do I count type in Excel? ›

On the Formulas tab, click Insert, point to Statistical, and then click one of the following functions:
  1. COUNTA: To count cells that are not empty.
  2. COUNT: To count cells that contain numbers.
  3. COUNTBLANK: To count cells that are blank.
  4. COUNTIF: To count cells that meets a specified criteria.

What is count in name? ›

European title of nobility, equivalent to a British earl, ranking in modern times after a marquess or, in countries without marquesses, a duke.

What is count function in list? ›

The count() method returns the number of elements with the specified value.

What is the use of count function in Excel Class 9? ›

What is the use of the COUNT() function in Excel? Answer: Excel's COUNT() function can be used to total the number of cells in a selected range. The COUNT() function will add up the number of cells in a selected range that contains numbers.

How to do a count if? ›

Excel COUNTIF Function
  1. Select a cell.
  2. Type =COUNTIF.
  3. Double click the COUNTIF command.
  4. Select a range.
  5. Type ,
  6. Select a cell (the criteria, the value that you want to count)
  7. Hit enter.

How do you use count if sheets? ›

How to enter the COUNTIF function in Google Sheets
  1. Keep your cursor in a cell where you want to show your calculations, like cell E1.
  2. Enter “=” sign and type COUNTIF function in this active cell E1, an auto-suggested box pops up.
  3. Select the range of cells which you want to text again your criterion.
  4. Then enter comma “,”

What is the limitation of count function? ›

The COUNTIF and COUNTIFS functions can only check strings up to 255 characters. Other functions have the same limit.

How do I count if a cell contains text? ›

Count Cells with Text Value Without Blank Spaces

To count the cells which have text value in them, enter the formula =COUNTIF(range,criteria) in the destination cell. This is the same as the previous case, but adding wildcard “?” together with “*” only counts the cells which have text values.

How do I count columns in Excel? ›

Just click the column header. The status bar, in the lower-right corner of your Excel window, will tell you the row count. Do the same thing to count columns, but this time click the row selector at the left end of the row. If you select an entire row or column, Excel counts just the cells that contain data.

What are the three methods of counting? ›

The specific counting techniques we will explore include the multiplication rule, permutations and combinations.

What is the importance of count? ›

Manfra also noted that when children are counting, they're performing a more cognitive activity when they're associating an object with a number to represent a quantity. Cognitive development activities develop knowledge and problem-solving skills that help children think about and understand the world around them.

Is count an example of a function in Excel? ›

The COUNT function is a premade function in Excel, which counts cells with numbers in a range. Note: The COUNT function only counts cells with numbers, not cells with letters.

How many types of count functions are there? ›

There are five variants of COUNT functions: COUNT, COUNTA, COUNTBLANK, COUNTIF, and COUNTIFS. We need to use the COUNTIF function or COUNTIFS function if we want to count only numbers that meet specific criteria.

How do I count text answers in Excel? ›

If you want to learn how to count text in Excel, you need to use function COUNTIF with the criteria defined using wildcard *, with the formula: =COUNTIF(range;"*") . Range is defined cell range where you want to count the text in Excel and wildcard * is criteria for all text occurrences in the defined range.

Is count a formula? ›

The COUNT function is generally used to count the number of cells in Excel or array of numbers. Example: To count the numbers between A1 and A20, you may enter the following formula: =COUNT(A1:A20). For example, if the range contains three cells containing numbers, the result is 3.

What is count in set? ›

The set::count() is a built-in function in C++ STL which returns the number of times an element occurs in the set. It can only return 1 or 0 as the set container contains unique elements only.

Which command is used to count? ›

Use the wc command to count the number of lines, words, and bytes in the files specified by the File parameter. If a file is not specified for the File parameter, standard input is used.

What is the use of count () and count (*)? ›

COUNT(*) with GROUP BY returns the number of rows in each group. This includes NULL values and duplicates. COUNT(ALL <expression>) evaluates expression for each row in a group, and returns the number of nonnull values.

What is count table? ›

A frequency table is an organized display of counts and percentages. The data are organized by a row variable and a column variable, and the frequency table provides a count of the number of observations in the data set that meet the specifications of both the row and column variables.

How do I count multiple values in Excel? ›

You can use the COUNTIFS function in Excel to count cells in a single range with a single condition as well as in multiple ranges with multiple conditions. If the latter, only those cells that meet all of the specified conditions are counted.

How do you count two conditions? ›

How to Countif Multiple Criteria?
  1. Step 1: document the criteria or conditions you wish to test for.
  2. Step 2: type “=countifs(“ and select the range you want to test the first criteria on.
  3. Step 3: input the test for the criteria.
  4. Step 4: select the second range you want to test (it can be the same range again, or a new one)

What are the benefits that count function can give? ›

This function helps count the number of cells that contain a number, as well as the number of arguments that contain numbers. It will also count numbers in any given array. It was introduced in Excel in 2000. As a financial analyst, it is useful in analyzing data if we wish to keep a count of cells in a given range.

Does count work without group by? ›

Using COUNT, without GROUP BY clause will return a total count of a number of rows present in the table. Adding GROUP BY, we can COUNT total occurrences for each unique value present in the column.

How do I count the number of times a value appears in Excel? ›

Count how often a single value occurs by using the COUNTIF function. Use the COUNTIF function to count how many times a particular value appears in a range of cells.

How do I count text values in Excel? ›

If you want to learn how to count text in Excel, you need to use function COUNTIF with the criteria defined using wildcard *, with the formula: =COUNTIF(range;"*") . Range is defined cell range where you want to count the text in Excel and wildcard * is criteria for all text occurrences in the defined range.

How do I auto count in Excel? ›

Unlike other Microsoft 365 programs, Excel does not provide a button to number data automatically. But, you can easily add sequential numbers to rows of data by dragging the fill handle to fill a column with a series of numbers or by using the ROW function.

How do I count the number of rows in Excel? ›

Just click the column header. The status bar, in the lower-right corner of your Excel window, will tell you the row count. Do the same thing to count columns, but this time click the row selector at the left end of the row. If you select an entire row or column, Excel counts just the cells that contain data.

How do I count words in a column in Excel? ›

How to count the total number of words in a cell
  1. And then, you can copy the formula down to count words in other cells of column A:
  2. =IF(A2="", 0, LEN(TRIM(A2))-LEN(SUBSTITUTE(A2," ",""))+1)
  3. =(LEN(A2)-LEN(SUBSTITUTE(A2, "moon","")))/LEN("moon")
10 Nov 2022

What is the easiest way to count in Excel? ›

On the Formulas tab, click More Functions, point to Statistical, and then click one of the following functions:
  1. COUNTA: To count cells that are not empty.
  2. COUNT: To count cells that contain numbers.
  3. COUNTBLANK: To count cells that are blank.
  4. COUNTIF: To count cells that meets a specified criteria.

How do I count how many cells have multiple text in Excel? ›

You can use the COUNTIFS function in Excel to count cells in a single range with a single condition as well as in multiple ranges with multiple conditions. If the latter, only those cells that meet all of the specified conditions are counted.

How do you count 1 2 3 in Excel? ›

Auto number a column by AutoFill function

Type 1 into a cell that you want to start the numbering, then drag the autofill handle at the right-down corner of the cell to the cells you want to number, and click the fill options to expand the option, and check Fill Series, then the cells are numbered. See screenshot.

What is the fastest way to count characters in Excel? ›

To use the function, enter =LEN(cell) in the formula bar and press Enter. In these examples, cell is the cell you want to count, such as B1. To count the characters in more than one cell, enter the formula, and then copy and paste the formula to other cells.

How many formulas in Excel? ›

Excel has over 475 formulas in its Functions Library, from simple mathematics to very complex statistical, logical, and engineering tasks such as IF statements (one of our perennial favorite stories); AND, OR, NOT functions; COUNT, AVERAGE, and MIN/MAX.

How many cells in Excel? ›

From Excel 2007 onwards (2010, 2016, etc) we have exactly 10,48,576 rows and 16,384 columns.

How do I count the number of parts of a cell in Excel? ›

Since we have done all the heavy lifting in the code itself, all you need to do is use the formula =GetNumeric(A2). This will instantly give you only the numeric part of the string.

Top Articles
Latest Posts
Article information

Author: Eusebia Nader

Last Updated:

Views: 6302

Rating: 5 / 5 (80 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Eusebia Nader

Birthday: 1994-11-11

Address: Apt. 721 977 Ebert Meadows, Jereville, GA 73618-6603

Phone: +2316203969400

Job: International Farming Consultant

Hobby: Reading, Photography, Shooting, Singing, Magic, Kayaking, Mushroom hunting

Introduction: My name is Eusebia Nader, I am a encouraging, brainy, lively, nice, famous, healthy, clever person who loves writing and wants to share my knowledge and understanding with you.