Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hello, I have a group of data. Among the data fields are the following: Name Group/Association Number of rankings The number of rankings are either 0, 1, or 2. I would like to be able to know for a given group, how many members of the group have at least 1 ranking. My first thought was a Pivot Table but if I use the count field setting, it counts all populated cells. If I leave the cell blank, that works instead of using a zero but I would prefer not to leave it blank as it may cause confusion to others I pass the sheet on to. I thought about writing something in VBA but this seems a little advanced for my vba skills. Is there a way to count only non zero values with a pivot table? Is there a simpler solution that I may be overlooking? Thanks. -Mike |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Michael,
Add a helper column, heading 'One Rank or More' formula =IF(C20,1,0) Then build a pivot table with Sumof One Rank or More Ed Ferrero www.edferrero.com Hello, I have a group of data. Among the data fields are the following: Name Group/Association Number of rankings The number of rankings are either 0, 1, or 2. I would like to be able to know for a given group, how many members of the group have at least 1 ranking. My first thought was a Pivot Table but if I use the count field setting, it counts all populated cells. If I leave the cell blank, that works instead of using a zero but I would prefer not to leave it blank as it may cause confusion to others I pass the sheet on to. I thought about writing something in VBA but this seems a little advanced for my vba skills. Is there a way to count only non zero values with a pivot table? Is there a simpler solution that I may be overlooking? Thanks. -Mike |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In the pivot table, add Group to the Row area, add Number of Rankings to
the Column area, and add Name to the Data area, as Count of Name. On the field button for Number of Rankings, click the dropdown arrow Remove the check mark for zero, and click OK Michael C wrote: Hello, I have a group of data. Among the data fields are the following: Name Group/Association Number of rankings The number of rankings are either 0, 1, or 2. I would like to be able to know for a given group, how many members of the group have at least 1 ranking. My first thought was a Pivot Table but if I use the count field setting, it counts all populated cells. If I leave the cell blank, that works instead of using a zero but I would prefer not to leave it blank as it may cause confusion to others I pass the sheet on to. I thought about writing something in VBA but this seems a little advanced for my vba skills. Is there a way to count only non zero values with a pivot table? Is there a simpler solution that I may be overlooking? Thanks. -Mike -- Debra Dalgleish Contextures http://www.contextures.com/tiptech.html |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Apply a formula as a pivot table calc or suggestion | Excel Worksheet Functions | |||
Pivot Table Question : If statment in Pivot Table?? | Excel Discussion (Misc queries) | |||
Pivot Table Question | Excel Worksheet Functions | |||
Pivot Table Question | Excel Discussion (Misc queries) | |||
QUESTION- Simpler Way to Add a Data Series to Other Graphs? | Excel Discussion (Misc queries) |