+ Reply to Thread
Results 1 to 2 of 2

Excel Pivot Table Row Subtotal

  1. #1
    ddecoste
    Guest

    Excel Pivot Table Row Subtotal

    Everybody,

    I would like to change the Type subtotal to a difference between the
    Actual and Forcast. I have the field Part Number and Type in the row
    section, Month in the column selection and the sum of qty in the data
    selection. Can the Pivot table do what I am looking for.

    I have a pivot table similar to this:
    January | February
    Part Number | Type | --------------------
    123456 | Actual | 120 | 240
    | Forcast | 150 | 230
    123456 Total | 270 | 470
    234567 | Actual | 100 | 500
    | Forcast | 90 | 560
    234567 Total | 190 | 1060


    I would like to change it to something like this:

    January | February
    Part Number | Type | --------------------
    123456 | Actual | 120 | 240
    | Forcast | 150 | 230
    123456 Difference | 30 | -10
    234567 | Actual | 100 | 500
    | Forcast | 90 | 560
    234567 Difference | -10 | 60


    Thank you for your help.

    Darren


  2. #2
    Dave Peterson
    Guest

    Re: Excel Pivot Table Row Subtotal

    Debra Dalgleish has some techniques for do custom calculations at:
    http://contextures.com/xlPivot10.html

    (but I couldn't get them to work for me--but you (or Debra!) may have better
    luck.)

    I think I'd cheat.

    I'd make the actual quantities positive and the forecast (with an E) negative
    (or vice versa).

    Maybe just use an additional column with a formula like:
    =if(b2="Actual",c2,-c2)

    And drag down.

    ddecoste wrote:
    >
    > Everybody,
    >
    > I would like to change the Type subtotal to a difference between the
    > Actual and Forcast. I have the field Part Number and Type in the row
    > section, Month in the column selection and the sum of qty in the data
    > selection. Can the Pivot table do what I am looking for.
    >
    > I have a pivot table similar to this:
    > January | February
    > Part Number | Type | --------------------
    > 123456 | Actual | 120 | 240
    > | Forcast | 150 | 230
    > 123456 Total | 270 | 470
    > 234567 | Actual | 100 | 500
    > | Forcast | 90 | 560
    > 234567 Total | 190 | 1060
    >
    > I would like to change it to something like this:
    >
    > January | February
    > Part Number | Type | --------------------
    > 123456 | Actual | 120 | 240
    > | Forcast | 150 | 230
    > 123456 Difference | 30 | -10
    > 234567 | Actual | 100 | 500
    > | Forcast | 90 | 560
    > 234567 Difference | -10 | 60
    >
    > Thank you for your help.
    >
    > Darren


    --

    Dave Peterson

+ 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