+ Reply to Thread
Results 1 to 7 of 7

Sum of Sales - Refunds in pivot table (both positive values), How to?

  1. #1
    Registered User
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Sum of Sales - Refunds in pivot table (both positive values), How to?

    I'm new to pivot tables but have manage to get it working almost as i want it but have ran wall right now. It feels like it should be very easy to fix but i just don't know how to do it.

    The total value should be Sales minus the Refunds but right now it adds Sales + Refunds, giving a wrong total value. The refund value i take is a positive value.

    Is there some easy way to make this work? It should show 8997 as total.

    Added file further down.
    Attached Images Attached Images
    Last edited by Kenny_Lundbeck; 01-11-2013 at 05:57 AM.

  2. #2
    Forum Guru Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    11,455

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    Hi
    perhaps post a sheet instead of pictures?
    Be very, very careful using IFERROR ! It hides ALL errors which is not always what you want to get correct results

  3. #3
    Registered User
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    Whats a Sheet? =)
    I removed sensitive information and uploaded the file i took pictures of (maybe thats what you wanted, the file?)

    test.xlsx

  4. #4
    Forum Guru Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    11,455

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    Sorry I meant a worksheet ( or file ) . Isn't this sensitive data ?
    Can you by any means make the amounts for your Refunds negative in the source data? Or add a helper column where this is implemented, then use this column for the amounts.

  5. #5
    Registered User
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    Not sensitive, its just names and amount on there orders.

    Sure i could add a '-' infront of all refunds but i would like all this to be done automatically in some way, it would be so much extra work to add - all the time and sometime i might miss it.

    helper column where this is implemented << i dont understand, more info please.

  6. #6
    Forum Guru Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    11,455

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    helper column where this is implemented << i dont understand, more info please.
    See the last column in the attached and the amended Pivot Table

    Copy of test-1.xlsx

  7. #7
    Registered User
    Join Date
    01-11-2013
    Location
    Sweden
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Sum of Sales - Refunds in pivot table (both positive values), How to?

    Came up with a sulotion. Made a new colum that converted the fields.

    =IF([@TransactionType] = "Sale"; [@Amount]; -[@Amount])

+ 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