PIVOT TABLES: Show correct count value based on different cell values

JayB0730

Board Regular
Joined
Oct 22, 2014
Messages
74
Office Version
  1. 365
Platform
  1. Windows
Hello,

I have a pivot table that currently shows the following:

Column Labels
EXPIREDCOMING UP TO EXPIRATION
Row LabelsCount of Item CodeSum of Total ValueCount of Item CodeSum of Total Value
Tables74$817,00827$68,000
Chairs3$42219$900,000
Books18$254,00020$143,291

<tbody>
</tbody>


However, the issue I am having is that I don't want the "COUNT OF ITEM CODES" to include a count where the field in data source, "Quantity on Hand" = 0. While the SUM of Total Value would not be affected by this filter, I would want COUNT OF ITEM CODE to reflect correctly...see below:


Column Labels
EXPIREDCOMING UP TO EXPIRATION
Row LabelsCount of Item CodeSum of Total ValueCount of Item CodeSum of Total Value
Tables50$817,00827$68,000
Chairs1$42216$900,000
Books17$254,00020$143,291

<tbody>
</tbody>

Any help is greatly appreciated!

Thanks,
Jay
 
Last edited:

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
hello, Jay

Seeing the sample source data would help understanding.

I may be on the 'wrong track' but it sounds to me like excluding data with 'Quantity on Hand' = 0 is what you're after.
If so, can you put the 'Quantity on Hand' field as a page field and deselect the quantity 0?

HTH
 
Upvote 0
Hi Fazza,

Wow, I think I had the biggest "brain fart" known to man. Yes, how I completely missed the fact that I could simply throw the Quantity on Hand field into the reports filter section & 'uncheck' 0, is beyond me. Thank you for giving me the virtual "slap on the back of the head". :)

Thank you & take care,
Jay
 
Upvote 0
Just a minor BF, Jay. :) Suggest you double-check the solution does exactly what you want. All the best, Fazza
 
Upvote 0

Forum statistics

Threads
1,213,487
Messages
6,113,941
Members
448,534
Latest member
benefuexx

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top