Pivot tables make it easy to count values in a data set. One way this feature can be used is to display duplicates. In the example shown, a pivot table is used to show duplicate cities in an Excel Table that contains more than 250 rows.
Fields
The data contains 263 rows, each with a City and Country. The pivot table shown is based on just one field: City, which has been added as both a Row field and a Value field:

In the Values area, the City field has been renamed “Count” and set to summarize by count :

In the Rows area, the City field is filtered to show only cities where the count is greater than 1:

In addition, the City field is set to sort by count in descending order:

Steps
- Create a pivot table
- Add the City field to the rows area
- Add the City field to the values area Summarize by count Rename “Count” Filter on Cities where count > 1 Sort in descending order by count
You can use a pivot table to display the top or bottom values in a set of data. In the example shown, one pivot table is used to show the top 3 scores in a set of data, and another pivot table is used to show the bottom 3 values in the same set of data. Because one pivot table was cloned from another, they share the same pivot cache, and both will update when either pivot is refreshed.
How to make this pivot table
- Create a new pivot table on the same worksheet
- Add the Name field to the Rows area
- Add the Score field to the Values area
- Rename the Score field from “Sum of Score” to “Score " (note trailing space)
- Filter values to show “Top 3 items by Score”
- Set sort to “Descending by Score”
- Copy entire pivot table and paste at cell I4
- Filter values to show “Bottom 3 items by Score”
- Set sort to “Ascending by Score”
- Disable grand totals if desired