|
Home > Pivot > Errors > Duplicates Pivot Table Duplicate Items
|

When you create a pivot table it groups the items from your data, and calculates a total for each group. Occasionally though, you might see duplicate items in the pivot table.
In the following sections, there are some reasons why a pivot table might show:
-- Duplicates for text items
-- Duplicates for numbers
In this example, there are duplicates for one of the text items in the Row area -- Boston appears 3 times, instead of just once

Even though these items look like duplicates, there is something different about them, and that’s why they’re appearing on separate rows in the pivot table.
Usually, the problem in trailing spaces – one or more space characters are at the end of some items in the data, but not all of them.
To get rid of the duplicates in the pivot table, you’ll need to clean up the source data. However, the filters in an Excel table ignore trailing spaces, so it’s not easy to find the problem entries.
There are steps below for 2 types of data cleanup, to help remove pivot table duplicates:
-- A) One-time data cleanup
-- B) Add Cleanup Formula Column
If the records were manually entered, and you just want to do a one-time cleanup, follow these steps:
If the records were imported from another source, and you expect that the problems with trailing spaces will be ongoing, you can use a TRIM formula to clean up the data. It will remove any leading or trailing space characters, and any multiple space characters between words.
Follow these steps to add a new field:

In the screen shot below, the duplicate city names no longer appear in the pivot table.

If you see duplicate numbers in the Row area, it's usually because there are small, hidden differences in the numbers, caused by the floating point precision that's used in Excel.
For example, this pivot table shows three numbers that look like duplicates, for the Carrot Bars.

To learn more about this problem, go to the Remove Duplicates Problem page.
You'll see why the duplicates are listed (floating point precision), and how to fix the problem by using the ROUND function.
Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.
Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!
Hide Error Values in Pivot Table
Pivot Table Details List Macros
Last updated: October 30, 2024 7:10 PM