+ Reply to Thread
Results 1 to 18 of 18

Pivot Count Values greater than zero

  1. #1
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Pivot Count Values greater than zero

    Hi All,

    How do i count value which are greater than zero in pivot table.

    Thanks in advance.

    regare
    Attached Files Attached Files
    Last edited by sureshpunna; 12-13-2012 at 04:30 AM.

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Pivot Count Values greater than zero

    Use calculated field with if combination.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Pivot Count Values greater than zero

    Hi Suresh,

    You wish to count values already present in pivot table or
    you wish to count values of a data table using pivot table ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  4. #4
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Quote Originally Posted by dilipandey View Post
    Hi Suresh,

    You wish to count values already present in pivot table or
    you wish to count values of a data table using pivot table ?

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    i wish to count values in pivot table if values is > 0

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Pivot Count Values greater than zero

    Okay..
    lets take an example, You have a pivot in column A,B,C and you need to count the values >0 from column C.. correct?
    so it would be simply countif function in a cell (lets say D1) .. no matter you reference a data table or a pivot table.. additionally you can use a defined name to get range correctly every time. If you have some other point, please upload a sample workbook. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Pivot Count Values greater than zero

    Okay..
    lets take an example, You have a pivot in column A,B,C and you need to count the values >0 from column C.. correct?
    so it would be simply countif function in a cell (lets say D1) .. no matter you reference a data table or a pivot table.. additionally you can use a defined name to get range correctly every time. If you have some other point, please upload a sample workbook. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Hi Sixsense,

    Can you please help with the attached file.
    In count of balance i need count which item balance are >0

    regards,
    suresh
    Last edited by sureshpunna; 12-13-2012 at 02:44 AM.

  8. #8
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Hi Dilip,

    I have uploaded the sample file.
    In count of balance i need count which item balance are >0

    thanks,
    suresh
    Last edited by sureshpunna; 12-13-2012 at 02:45 AM.

  9. #9
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Quote Originally Posted by :) Sixthsense :) View Post
    Use calculated field with if combination.
    Can you please help the attached sample data.
    Thanks

  10. #10
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Pivot Count Values greater than zero

    Do a google search with the Keyword Using Calculated Fields In Pivot Tables or click the keyword which will show you lot of links about it.

  11. #11
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: Pivot Count Values greater than zero

    Hi,

    The answer is you must filter out the individual values that are zero. See the attached. It has nothing to do with a calculated field or item.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  12. #12
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Pivot Count Values greater than zero

    It has nothing to do with a calculated field or item
    Without seeing the OP's Pivot Structure, it is meaningless in quoting the above sentence

  13. #13
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: Pivot Count Values greater than zero

    The OP posted the workbook in the first post. I bet they edited it and put it in after you guys tried to imagine what the question was.

  14. #14
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Quote Originally Posted by MarvinP View Post
    Hi,

    The answer is you must filter out the individual values that are zero. See the attached. It has nothing to do with a calculated field or item.
    when we use more than once value columns its not possible use filter. hence sum of another column value will effects.
    Attached Files Attached Files

  15. #15
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Pivot Count Values greater than zero

    @MarvinP,

    When the OP posted the initial thread at that time there was no excel file was provided, now the OP edited the initial post and totally changed the content and replaced it with new text and added an excel file.

  16. #16
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,445

    Re: Pivot Count Values greater than zero

    Did you just change the question with this new attached example? What do you expect the result to be?

    @6 - I've seen people add an attachment onto the original post. They don't know it doesn't make sense to our top to bottom logic.

  17. #17
    Registered User
    Join Date
    11-26-2012
    Location
    hyderabad
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Pivot Count Values greater than zero

    Quote Originally Posted by :) Sixthsense :) View Post
    @MarvinP,

    When the OP posted the initial thread at that time there was no excel file was provided, now the OP edited the initial post and totally changed the content and replaced it with new text and added an excel file.
    Got it with if statement in data.
    Thank you all.
    Attached Files Attached Files

  18. #18
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: Pivot Count Values greater than zero

    Quote Originally Posted by MarvinP View Post
    They don't know it doesn't make sense to our top to bottom logic.
    Agreed...

+ 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