+ Reply to Thread
Results 1 to 4 of 4

Pivot IF Formula

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    Limerick
    MS-Off Ver
    Excel 2010
    Posts
    8

    Pivot IF Formula

    Hi,

    I am trying to add a formula to a Pivot table below but it does not seem to be picking up that if the Product Category data is equal to Primary. Is it doing a sum on Product Category and not identifying the value beneath? Product Category has two Sets of results either Primary or Secondary. If it is Primary I want to Sum Field Contribution V's Eurex but if it is not Primary to Sum Contribution over Average. The formula result is just giving the False result

    = IF('Product Category'="Primary",SUM('Contribution V''s Eurex'),SUM('Contribution Over Average'))

    Any help would be greatly appreciated

    Thanks
    David

  2. #2
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,021

    Re: Pivot IF Formula

    In a calculated field formula, any field reference is summed before anything else happens. So your formula is actually in effect this:

    = IF(SUM('Product Category')="Primary",SUM('Contribution V''s Eurex'),SUM('Contribution Over Average'))

    Since the category field is text, the result of the sum will always be 0, so you'll always get the formula from the False part of the If.

    I'd suggest you amend the source data to add a column that returns the value of the relevant contribution field, then just SUM that.
    Everyone who confuses correlation and causation ends up dead.

  3. #3
    Registered User
    Join Date
    11-26-2013
    Location
    Limerick
    MS-Off Ver
    Excel 2010
    Posts
    8

    Re: Pivot IF Formula

    Thanks, That s pity now as I don't have the data, I was only sent a copy of the pivot.

  4. #4
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,021

    Re: Pivot IF Formula

    If you amend the pivot format so that there is a grand total cell, then double-click it, you may get a copy of the data.

+ 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: 4
    Last Post: 02-19-2018, 06:34 AM
  2. Replies: 1
    Last Post: 01-11-2016, 02:31 PM
  3. [SOLVED] Creating a formula in a pivot table while using another calculated item in the pivot
    By mvhs1073933 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 08-10-2015, 12:44 PM
  4. Replies: 5
    Last Post: 11-19-2013, 09:14 AM
  5. Replies: 4
    Last Post: 05-22-2009, 11:17 AM
  6. deactivate the get pivot formula when I link a cell to a pivot
    By hwtradezheng in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 01-04-2006, 09:50 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