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

TomCon

Active Member
Joined
Mar 31, 2011
Messages
385
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

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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