+ Reply to Thread
Results 1 to 5 of 5

Difference between two counted columns in Pivot

  1. #1
    Registered User
    Join Date
    02-14-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Difference between two counted columns in Pivot

    Hello,

    I would like to calcualte the difference between two fields in a pivot table.

    Market Count(ID1) Count(ID2) Difference
    xyz 15 13 2

    I tried to create a formula taking ID1 - ID2 but the value comes back as 0.

    Any ideas?

  2. #2
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Difference between two counted columns in Pivot

    Hi There,

    Please find my answers in attached workbook. I hope this is what you were looking for.
    Attached Files Attached Files
    Thanks,
    Anil Dhawan


    Click *Add Reputation to say "Thanks" and don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved) if you are satisfied.

    Don't stop when you are tired. STOP when you are done!

  3. #3
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Difference between two counted columns in Pivot

    You can add the additional column by referring to the below steps.

    Once you are on Pivot table sheet, "Click on "Field, Items, & Sets" option from "ANALYZE" category and then click on Calculated Filed.
    Calculated Field.png


    Post that, In Formula tab, type or insert "=Column-Count" and name it as Difference (as per your requirement).
    Calculated Field-2.png

    Let me know if it solved your purpose.

  4. #4
    Registered User
    Join Date
    02-14-2013
    Location
    Wisconsin, USA
    MS-Off Ver
    Excel 2010
    Posts
    55

    Re: Difference between two counted columns in Pivot

    I had tried that but receive 0 results. Here is an image of my pivot.

    pivot.jpg

  5. #5
    Valued Forum Contributor
    Join Date
    04-12-2012
    Location
    India
    MS-Off Ver
    Excel 2007, 2010, 2013, 2016, 2019, Office 365, Google Spreadhsheet
    Posts
    640

    Re: Difference between two counted columns in Pivot

    Hi..Could you please upload your attachment here...or Please refer to my last post on this thread.....Follow each steps to add additional column (you dont need to add manually just follow the steps mentioned in the images)

+ 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. Replies: 1
    Last Post: 08-14-2014, 10:37 AM
  2. [SOLVED] Pivot table with years on columns. I cant calculate a difference in values
    By Daniel_da6 in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-17-2013, 12:13 PM
  3. Replies: 7
    Last Post: 08-04-2011, 09:32 AM
  4. Replies: 1
    Last Post: 02-09-2006, 08:45 PM
  5. add a column to a pivot table that would show the difference between 2 other Columns
    By jbesr1230@hotmail.com in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-30-2005, 02:06 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