+ Reply to Thread
Results 1 to 5 of 5

Manual Formula within Pivot

  1. #1
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Manual Formula within Pivot

    Hi ALl,


    I need some help with a manual formula within a pivot please



    My Source Data has Customer, Period, Qty, Sales Value and Ref Type

    Within the pivot I would like to display the following data

    Rows: Customer and Ref Type
    Columns: Periods (2011-2012 and 2012-2013)
    Values: Qty and Value

    All simple so far, at the end of the columns I would like to show the Percentage difference between the period values for Qty and Value.

    I do not understand how to put in a manual formula for this because the fields are the same, it is the pivot that differentiates between the two periods.

    Is there a way to insert a new field and use a manual formula or somehow edit the way the Grand total works?

    I have attached a test copy
    TEST Variance within Pivot.xlsx

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Manual Formula within Pivot

    You need a calculated item using a formula like:
    = IF('2011-2012'> 0,('2012-2013'-'2011-2012')/'2011-2012',0)

    (See the attached workbook)

    To create it, select one of the column item header cells (e.g. B4) and then on the PivotTable Tools - Options tab, choose "Fields, Items and Sets", then "Calculated Item". Choose a name for the Item (e.g. Variance) and then enter the formula as shown. You will need to edit your pivot table source range to not use entire columns.
    Attached Files Attached Files
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Manual Formula within Pivot

    Cheers for that Rory,

    On the subtotals it is adding the percentages together; is there a way to get the subtotals/Grand total to follow the same formula and not just summarise with sum/count etc.?

    Kenny

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Manual Formula within Pivot

    Not with calculated items. What you can do is add the two data fields to the table again, and choose to show the two new fields as '% difference from' and then set it to previous period. You do end up with two blank columns (since the first period has no previous one) but you can hide them if you wish.

    Revised version attached.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-13-2012
    Location
    Stafford, England
    MS-Off Ver
    Excel 2007
    Posts
    87

    Re: Manual Formula within Pivot

    Cheers Rory,

    It should do the trick.

+ 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. Unable to set a pivot table to manual update.
    By panicpgh in forum Excel Charting & Pivots
    Replies: 15
    Last Post: 09-12-2014, 06:13 PM
  2. How do i add a manual field into a pivot table
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2012, 08:52 AM
  3. Replies: 0
    Last Post: 10-27-2011, 11:29 AM
  4. Manual Cross Tabulation - Pivot Table Question
    By ktfish14 in forum Excel General
    Replies: 1
    Last Post: 03-05-2008, 06:50 AM
  5. Excel Pivot Table Manual Sorting
    By mosso in forum Excel - New Users/Basics
    Replies: 0
    Last Post: 06-11-2007, 10:30 AM

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