+ Reply to Thread
Results 1 to 4 of 4

Pivot Table Percent Of

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Pivot Table Percent Of

    Hi,

    I have some data that I'm creating a pivot against. Two columns of it I want to sum, and I can do this fine. Then, I want a third value, which takes the first column and divides it by the second.

    Example Data:
    Item---Price1---Price2
    A-------10---------20
    A-------20---------40
    B-------5-----------15
    B-------10----------30

    Example Pivot:
    Item-----Sum of Price1------Sum of Price2------%Difference
    A------------30------------------------60---------------------50%
    B------------15------------------------45---------------------33.3%
    Last edited by yawnzzzz; 02-17-2011 at 12:03 PM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,576

    Re: Pivot Table Percent Of

    Add one column in original table and write: IF(B2<>0, A2/B2, "") then you can see it in PT

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387

    Re: Pivot Table Percent Of

    Quote Originally Posted by zbor View Post
    Add one column in original table and write: IF(B2<>0, A2/B2, "") then you can see it in PT
    That would work in my simplified example only because each value is the same percent. I'm trying to find the difference between the total summed prices, not the difference for each item in my table.

  4. #4
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Pivot Table Percent Of

    You can add a caluclated field to the PT as per attached
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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