+ Reply to Thread
Results 1 to 5 of 5

to add conditional Subtotals formula in a pivot table

  1. #1
    Registered User
    Join Date
    04-01-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    to add conditional Subtotals formula in a pivot table

    There are positive and negative number in a data sheet, when create a pivot table, under the subtotals, the numbers are added and hence the negative numbers are deducted from positive and net amount is shown.

    I require total of only positive numbers in subtotals, however need to show the negative numbers in the body.

    Currently I am doing it manually by using "=sumif(range, ">0")" formula in subtotals after value pasting the pivot table. With any change I need to the same exercise over and again.

    Attached is the sample file, with desired result in right side.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: to add conditional Subtotals formula in a pivot table

    that can't be done in a pivot table. closest thing would be an additional column using another field in the source data that only reflects positive amounts
    Josie

    if at first you don't succeed try doing it the way your wife told you to

  3. #3
    Registered User
    Join Date
    04-01-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: to add conditional Subtotals formula in a pivot table

    Thank you for the prompt response.
    The problem in having an other column with positive numbers only is that, in the body the negative numbers will not be shown.

  4. #4
    Forum Guru JosephP's Avatar
    Join Date
    03-27-2012
    Location
    Ut
    MS-Off Ver
    2003/10
    Posts
    7,328

    Re: to add conditional Subtotals formula in a pivot table

    I know-you would have to show both columns

  5. #5
    Registered User
    Join Date
    04-01-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: to add conditional Subtotals formula in a pivot table

    Ok...

    Thanks again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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