Count Names in Excel (Table of Contents)
Overview of Count Names in Excel
COUNT is an in-built function in MS Excel that will count the number of cells that contain numbers. It comes under the statistical function category and is used to return an integer as output. There are many ways to count the cells in the given range with several user criteria. Examples are COUNTIF, DCOUNT, COUNTA, etc.
Formula: There are many value parameters in the simple count function, which will count all cells which contain numbers.
There are some specific in-built Count functions which are listed below:
- COUNT: It will count the number of cells that contain the numbers.
- COUNTIF: It will count the number of cells containing the numbers and satisfy the user’s criteria.
- DCOUNT: It will count the cells containing some number in the selected database and satisfy the user criteria.
- DCOUNTA: It will count the non-blank cells in the selected database which satisfy the user criteria.
How to Count Names in Excel?
Counting Names in excel is very simple and easy. So, here are some examples that can help you to Count Names in Excel.
Example #1 – Count Name which has Age Data
Let’s assume a user has some people’s data like Name and Age, where the user wants to calculate the count of the name with age data in the table.
Let’s see how we can do this with the count function.
Step 1: Open MS Excel from the start menu >> Go to Sheet1, where the user keeps the data.
Step 2: Now create headers for the Count name where the user wants the count name, which has age data.
Step 3: Now calculate the count of a name in the given data by the Count function>> use the equal sign to calculate >> Write in D2 Cell and use COUNT>> “=COUNT (”
Step 4: Now, it will ask for the value1 which are given in B2 to B10 cell >> select B2 to B10 cell >> “=COUNT (B2: A10)”
Step 5: Now press the Enter key.
Summary of Example #1: The user wants to calculate the name count, which has age data in the table. So, 6 names in the above example have age data in the table.
Example #2 – Count Name which has Some Common String
Let’s assume a user has some people’s personal data like Name and Age, where the user wants to calculate the count of the name with the “Jr.” string common in their name. Let’s see how we can do this with the COUNTIF function.
Step 1: Open MS Excel from the start menu >> Go to Sheet2, where the user keeps the data.
Step 2: Create a header for the Count name, with a “Jr.” string common in their name.
Step 3: Now calculate the count of a name in the given data by the COUNTIF function>> use the equal sign to calculate >> Write in D2 Cell and use COUNTIF>> “=COUNTIF (”
Step 4: Now, it will ask for value1 which are given in A2 to A10 cell >> select A2 to A10 cell >> “=COUNTIF (A2: A10,”
Step 5: Now it will ask for criteria which are to search only for the “Jr.” string in the name >>so write in D2 cell >> “=COUNTIF (A2: A10,” *Jr.”)”
Step 6: Now press the Enter key.
Summary of Example #2: The user wants to count the name with the “Jr.” string common in their name in the table. So, three names in the above example have the “Jr.” string in their name.
Example #3 – Number of Letters with Ending a Specific String
Let’s assume a user wants to count the names with 5 letters and the “ry” string common in their name. Let’s see how we can do this with the COUNTIF function.
Step 1: Open MS Excel from the start menu >> Go to Sheet3, where the user keeps the data.
Step 2: Create a header for the Count name, with 5 letters and a “ry” string common in their name.
Step 3: Now calculate the count of a name in the given data by the COUNTIF function>> use the equal sign to calculate >> Write in E2 Cell and use COUNTIF>> “=COUNTIF (”
Step 4: Now, it will ask for value1 which are given in A2 to A10 cell >> select A2 to A10 cell >> “=COUNTIF (A2: A10,”
Step 5: Now it will ask for criteria which are to search only for the “ry” string in the name with 5 letters>>so write in E2 cell >> “=COUNTIF (A2: A10,”???ry”)”
Step 6: Now press the Enter key.
Summary of Example #3: The user wants to count the names with 5 letters in the Name and the “ry” string common in their name in the table. So, 2 names in the above example have a “ry” string in their name with five letters.
Things to Remember About Count Names in Excel
- The Count function comes under the statistical function category and is used to return an integer as output.
- If a cell contains any value that is not numeric, like text or #NA, it will not be counted by the count function.
- The asterisk (*) matches any set of characters in the COUNTIF criteria.
- The question mark (?) is used as the wildcard character to match any single character in the criteria of the function.
- In the criteria, a user can use greater than “>,” less than “<” or equal to the “=” symbol to create criteria in the function. As an example, “=COUNTIF (A2:A5,” >=10″)” here as the output will return the count of the cell, which has a value greater than or equal to 10.
Recommended Articles
This is a guide to Count Names in Excel. Here we discuss How to Count Names in Excel, examples, and a downloadable excel template. You may also look at the following articles to learn more –
23 Online Courses | 9 Hands-on Projects | 110+ Hours | Verifiable Certificate of Completion
4.9
View Course
Related Courses