Pivot Table - grouping numbers with decimals, excluding rows

MKB

New Member
Joined
Sep 22, 2006
Messages
46
Got a tricky one, I want to create a pivot table starting with a column of percentages on the left, so for example the first column of the table will be:

25% (Count)
33% (Count)
50% (Count)

The idea being to count how many 50%s there are, how many 25%s etc. Problem is, all of my numbers aren't integers, so I actually have 25.1%, 25.14%, 25.6% etc which leaves my pivot table like this:

25%
25%
25%
25%
33%
33% etc then a count of all the specifics. Is there a way to get the pivot table to ignore everything after the decimal place?

I then want more info to work out some averages of all the values attached to those initial percentages. This works fine, however on some I am doing calculations with zero, giving me "#DIV/0!" and consequently the same value in the pivot table. Is there a way I can exclude that value from counting for just that particular average?

Cheers,
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Have you thought about having another table / column to which you apply rounding first and then apply the PIVOT table ? Thanks

Kaps
 
Upvote 0
Could do, I think I'll end up overtyping those which is a bit annoying, unless I can do a round in a calculation ie something like =ROUND(A2/B4) but that doesn't seem to work.
 
Upvote 0
The ROUND function has two arguments - the second one specifies how many places you want. A3 =ROUND(B3,2) should work.
 
Upvote 0
OK my calculation for that first % is =(C13-D13)/C13 which in this example brings back 33.34%. When I try this:

=ROUND(((C13-D13)/C13),1) it fires back 30% as the result. I would want 33%. Just realised as well I'm trying to round a percentage to an integer. Duh. Anyway to get the rounding the way I want though? Must be close.
 
Upvote 0

Forum statistics

Threads
1,214,638
Messages
6,120,676
Members
448,977
Latest member
moonlight6

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