+ Reply to Thread
Results 1 to 14 of 14

Pivot Table Without Duplicate Values

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Pivot Table Without Duplicate Values

    Hello,

    I am trying to create a pivot table that will not repeat the values of a certain column. The table below shows and example of the data I am working with.

    Pivot Table Data.PNG

    Looking at this data my objective is to be able to select a Date and Program and get the value for Total Parts Produced (Total Parts Produced is the sum of Total Line Rejects & Total Good Parts).

    For Example: If I select 8/1/16 & P558 Main FE this is what I am wanting the pivot table to do...

    Total Line Rejects = 0+3+1=4 (I was able to create this column in the pivot table[see below], just can't figure out the rest)
    Pivot Table Data 2.PNG

    Total Good Parts = 350+202=552

    Total Parts Produced = 4+552=556

    I appreciate any help I can get. Thanks!

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    Hi,

    You will need an additional calculation in your data set that divides the Good Parts value by the number of rows that are present for the Day, Shift and Program combination, assuming that is the unique identifier combination.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    ok, how should I do this?

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    It requires a new column in the data with a formula such as

    =H2/COUNTIFS(A:A,A2,B:B,B2,D:D,D2)

    You may then create a calculated field in the pivot table that adds the two fields together to provide the total you need.

  5. #5
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    When I drag this formula down the row it doesn't seem to work right.

    I am having a hard time wording what it is I am needing I think. If I choose 8/1/16 as my date and P558 Main FE as my program then...

    Column A & D have 3 options for 8/1/16 & P558 Main FE

    but Column B only has 2 because I only need 1 per shift. It displays 1,2,2 and don't need a repeat of 2. Therefore, I would only need to sum H26 & H44 giving me a Total Good Parts value of 552.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    Please post a workbook - not a picture - showing what you did and how it didn't work right.

  7. #7
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    Here is the file I am currently working on...

    P558 Defect Tracking Pivot Table 2.xlsm

  8. #8
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    If you add the new field you have created to the pivot table you will see the totals you want.

  9. #9
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    Thank you so much! This worked perfect!

  10. #10
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    You're welcome.

  11. #11
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    I am having issues again. I have attached the file for you to look at if you have time. P558 Defect Tracking Pivot Table 2.xlsm

    I can't seem to get the correct total for Total Good Parts.

    For example, P558 LTR FE - 8/1/16 - should be 591 NOT 941 (This is in the Total Parts_TLR tab)
    350+360+231=591

    I'm not sure where the 941 is coming from. I would appreciate any help you can give me. Let me know if you have any questions. I am new to pivot tables so I apologize if what I'm asking might seem confusing.

  12. #12
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    Those three numbers add up to 941.

  13. #13
    Registered User
    Join Date
    07-18-2016
    Location
    US
    MS-Off Ver
    2007
    Posts
    16

    Re: Pivot Table Without Duplicate Values

    You are correct I apologize. I forgot to add the other number to it. I should have walked away for the day and come bad today with a clearer mind. Thanks again!

  14. #14
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Pivot Table Without Duplicate Values

    There is no need to apologise. Sometimes we are all too close to a problem to see it clearly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using pivot table - highlighting or deleting duplicate data?
    By JamesHammer92 in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 11-25-2014, 04:43 AM
  2. [SOLVED] Remove Duplicate Budget Amounts within the Pivot Table
    By mhedge in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-02-2013, 03:05 PM
  3. Pivot Table w/multiple/duplicate identiier!?
    By elfiky in forum Excel General
    Replies: 3
    Last Post: 10-01-2012, 06:07 AM
  4. [SOLVED] Pivot Table ignoring/grouping duplicate values it believes are the same
    By ahunter488 in forum Excel General
    Replies: 1
    Last Post: 05-20-2012, 06:44 PM
  5. Pivot Table Showing Duplicate Names
    By realniceguy5000 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-14-2009, 07:49 AM
  6. Duplicate values in Pivot table Page Field dropdown..
    By trippknightly@hotmail.com in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 10:50 PM
  7. show duplicate rows in a pivot table using vba
    By ktpack in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2005, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1