To count how often a value occurs within a range we use the COUNTIF function.
Because this function count cells based on a given criteria, that fact will help us limit the count to our specified value.
If in the example below we want to count how often “John” appeared in the list, then we will use the following formula:
=COUNTIF(B1:B15;”John”)
This will give us a result of 7 as you can see.
Read more on How to use the COUNTIF function.
Applies to Excel 2003


