Various

How to count the number of occurrences in a list with a pivot table in Excel

Having a list of values, for example city names, and want to know how many times each unique entry is repeated ?

How to count the number of occurrences in a list with a pivot table in Excel : List of values with multiple occurences
List of values with multiple occurrences

Here’s a simple solution, using a pivot table.

See also with standard functions

Start by selecting your list of values, and go to menu INSERT > PivotTable

How to count the number of occurrences in a list with a pivot table in Excel : Creation of a pivot table
Creation of a pivot table

Make sure your selection is correct, and eventually select in which sheet you want the pivot table to be generated.

How to count the number of occurrences in a list with a pivot table in Excel : Create PivotTable options
Create PivotTable options

Here you are with a pivot table – in below example only with one column

How to count the number of occurrences in a list with a pivot table in Excel : Blank pivot table
Blank pivot table

Drag and drop the name of the column with the values you want to count to ROWS

How to count the number of occurrences in a list with a pivot table in Excel : Row selection drag and drop
Row selection drag and drop

Repeat the operation, drag and drop the column name to VALUES

How to count the number of occurrences in a list with a pivot table in Excel : Value selection drag and drop
Value selection drag and drop

Make sure the Count of option is selected, and voilà ! You know how many times each unique values appear in your list.

How to count the number of occurrences in a list with a pivot table in Excel : Value type selection and result
Value type selection and result