Table of Contents
To count names in Excel, you can use the COUNTIF function. This function allows you to specify a range of cells and a criteria, and it will return the number of cells that meet that criteria. In this case, you can specify the range of cells where the names are located and use the criteria “*” (asterisk) to count all names in that range. You can also use the COUNTA function to count all non-empty cells in a range, which can be useful if your list of names includes empty cells. Both of these functions are easy to use and can provide an accurate count of names in your Excel spreadsheet.
Count Names in Excel (3 Examples)
You can use the following methods to count names in Excel:
Method 1: Count Cells with Exact Name
=COUNTIF(A2:A11, "Bob Johnson")Method 2: Count Cells with Partial Name
=COUNTIF(A2:A11, "*Johnson*")Method 3: Count Cells with One of Several Names
=COUNTIF(A2:A11, "*Johnson*") + COUNTIF(A2:A11, "*Smith*")The following examples show how to use each method with the following dataset in Excel:

Example 1: Count Cells with Exact Name
We can use the following formula to count the number of cells in column A that contain the exact name “Bob Johnson”:
=COUNTIF(A2:A11, "Bob Johnson")The following screenshot shows how to use this formula in practice:

We can see that there are 2 cells that contain “Bob Johnson” as the exact name.
Example 2: Count Cells with Partial Name
We can use the following formula to count the number of cells in column A that contain “Johnson” anywhere in the name:
=COUNTIF(A2:A11, "*Johnson*")The following screenshot shows how to use this formula in practice:

We can see that there are 4 cells that contain “Johnson” somewhere in the name.
Example 3: Count Cells with One of Several Names
We can use the following formula to count the number of cells in column A that contain “Johnson” or “Smith” somewhere in the name:
=COUNTIF(A2:A11, "*Johnson*") + COUNTIF(A2:A11, "*Smith*")The following screenshot shows how to use this formula in practice:

We can see that there are 6 cells that contain either “Johnson” or “Smith” somewhere in the name.
The following tutorials explain how to perform other common tasks in Excel:
Cite this article
stats writer (2024). How can I count names in Excel?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-count-names-in-excel/
stats writer. "How can I count names in Excel?." PSYCHOLOGICAL SCALES, 26 Jun. 2024, https://scales.arabpsychology.com/stats/how-can-i-count-names-in-excel/.
stats writer. "How can I count names in Excel?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-count-names-in-excel/.
stats writer (2024) 'How can I count names in Excel?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-count-names-in-excel/.
[1] stats writer, "How can I count names in Excel?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, June, 2024.
stats writer. How can I count names in Excel?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.
