Is there any way to enable numeric grouping (by range) in this type of PivotTable data?

TomCon

Active Member
Joined
Mar 31, 2011
Messages
373
Office Version
  1. 365
Platform
  1. Windows
  2. Mobile
In Col A i have expressions that evaluate to a logical (True or False)
In Col B i have numbers.
In Col C, there is this formula (and then filled down):
=IF(A2,B2,"")
I also tried a variation, with this formula.
=IF(A2,B2,NA())

Either variation has the problem described below.

I then create a PivotTable of that range.

Col C acts "normally, as expected" (as a column of valid numbers) in most regards. It gives the correct sum and correct average.

If i put Col C in the row area and try to group by numeric range (I want to group it 5-10, 10-15, etc), I get the error "Cannot group by that selection". If I go through manually, and for all the rows that evaluate to "" (or #N/A), if I manually delete the cell contents, I can then group on that column in a PivotTable by numeric range.

So, my question is, is there any way i can construct the IF formula (col C) to get a column that i can then group on by numeric range, as a PivotTable row field?

Thank you.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

Forum statistics

Threads
1,213,546
Messages
6,114,251
Members
448,556
Latest member
peterhess2002

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