PivotTable formula problem - countif?

Zabman

Board Regular
Joined
Apr 7, 2010
Messages
77
Hi,

I have a problem which I think is actually very basic, i'm just to stupid to work it out.

I have a pivottable looking at a datasource with several thousand rows. Column Y in the datasource is a weight, and I want to be able to have 2 column labels in my pivot, one counting all values OVER 15, and one column counting all those BELOW 15.

Please help?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Hi,

I have a problem which I think is actually very basic, i'm just to stupid to work it out.

I have a pivottable looking at a datasource with several thousand rows. Column Y in the datasource is a weight, and I want to be able to have 2 column labels in my pivot, one counting all values OVER 15, and one column counting all those BELOW 15.

Please help?


Did you ever figure out how to do this?

I have raw data in the format of time duration mmss
I have a pivot table that I need to get a count of number of calls under 30 seconds, I think this would answer how to do that.
 
Upvote 0
Hi,

Maybe one way is to add a new field to the source data? Say, Category. With a formula like =if(Y2>15,"Over 15", "Not over 15"). Put this new field in the pivot table.

Another would be to set the pivot table up via the external data option and add a new field via SQL. Something like
Code:
SELECT *, IIF(Weight>15,'Over 15', 'Not over 15') AS [Category]
FROM data_source

HTH
 
Upvote 0

Forum statistics

Threads
1,224,574
Messages
6,179,628
Members
452,933
Latest member
patv

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