**Count Names in Excel (Table of Contents)**

## Overview of Count Names in Excel

COUNT is an in-built function in MS Excel which will count the number of cells that contain the numbers in the cell. It comes under statistical function category and it is used to return an integer as output. There are many ways to count the cells in the given range with several user’s criteria. As an example, COUNTIF, DCOUNT, COUNTA, etc.

**Formula: **There are many value parameters in simple count function where it 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 that contain the numbers and should be satisfying the user’s criteria.**DCOUNT**: It will count the cells which are containing some number in the selected database and which is satisfying the user criteria.**DCOUNTA**: It will count the non-blank cells in the selected database and which is satisfying the user criteria.

**How to** Count** Names in Excel?**

Counting Names in excel is very simple and easy. So, here are some examples which can help you to Count Names in Excel.

#### Example #1 – Count Name which has Age Data

Let’s assume there is a user which has some people’s personal data like Name and Age, where the user wants to calculate the count of the name which has 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 user kept the data.

4.9 (4,192 ratings)

View Course

**Step 2: **Now create headers for Count name where the user wants 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 on the Enter key.

**Summary of Example #1: **As the user wants to calculate the count of the name which has age data in the table. So, there are 6 names in the above example who have age data in the table.

#### Example #2 – Count Name which has Some Common String

Let’s assume there is a user who has some people’s personal data like Name and Age, where the user wants to calculate the count of the name which has “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 user kept the data.

**Step 2: **Now create a header for Count name which has “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 is 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: **As the user wants to count of the name which has “Jr.” string common in their name in the table. So, there are 3 names in the above example who have “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 which have 5 letters and “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 user kept the data.

**Step 2: **Now create a header for Count name which has 5 letters and “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 is 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: **As the user wants to count the names which has 5 letters in Name and “ry” string common in their name in the table. So, there are 2 names in the above example who have “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 it used to return an integer as output.
- If a cell containing any value which is not numeric like text or
**#**NA, then it will not be counted by the count function. - The asterisk (*) is used to match 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 “=” symbol to create criteria in the function. As an example, “=COUNTIF (A2:A5,”>=10”)” here as the output it 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 along with examples and downloadable excel template. You may also look at the following articles to learn more –