give to the top 30% 3 point, to the midle 30% 2 points and to the lowest 40% 1 point while ignoring Zeros in the account

myduki

New Member
Joined
Mar 20, 2018
Messages
7
I have a table of about 435 rows (and growing a bit). I have values in the column AJ and some are "0" which affect the percentile (even as nested...with the {})
This is my best guess, but as said, the percentile is still not correct, because of the "zeros":


=IFS(AJ4>=PERCENTILE(AJ:AJ;0,7);3;AJ4>PERCENTILE(AJ:AJ;0,4);2;AJ4=0;0;AJ4<PERCENTILE(AJ:AJ;0,4);1)

Any ideas?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
I think these two methods might help.

Copy C7 and D7 downwards.


Book1
ABCDEFGHI
1percentilePointspercentilePoints
2upper0.712.5823lower01
3middle0.411.8482middle0.411.8482
4lower01upper0.712.5823
5
6ValuePointsPoints2
710.75911
810.7611
91111
1011.511
1111.93522
1211.9422
1311.9522
1412.5522
1512.6333
1612.9533
171333
180zerozero
190zerozero
200zerozero
210zerozero
220zerozero
Sheet59
Cell Formulas
RangeFormula
C7=IF(B7=0,"zero",IF(B7>=$C$2,$D$2,IF(AND(B7>=$C$3,B7<$C$2),$D$3,$D$4)))
C2{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),B2)}
C3{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),B3)}
D7=IF(B7=0,"zero",VLOOKUP(B7,$H$2:$I$4,2))
H3{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),G3)}
H4{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),G4)}
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Last edited:
Upvote 0
I think these two methods might help.

Copy C7 and D7 downwards.

ABCDEFGHI
1percentilePointspercentilePoints
2upper0.712.5823lower01
3middle0.411.8482middle0.411.8482
4lower01upper0.712.5823
5
6ValuePointsPoints2
710.75911
810.7611
91111
1011.511
1111.93522
1211.9422
1311.9522
1412.5522
1512.6333
1612.9533
171333
180zerozero
190zerozero
200zerozero
210zerozero
220zerozero

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet59

Worksheet Formulas
CellFormula
C7=IF(B7=0,"zero",IF(B7>=$C$2,$D$2,IF(AND(B7>=$C$3,B7<$C$2),$D$3,$D$4)))
D7=IF(B7=0,"zero",VLOOKUP(B7,$H$2:$I$4,2))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
C2{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),B2)}
C3{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),B3)}
H3{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),G3)}
H4{=PERCENTILE.EXC(IF($B$7:$B$22<>0,$B$7:$B$22,""),G4)}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try to enter the {} manually yourself

<tbody>
</tbody>


Almost, the problem with this is (and I am sorry I didn't place it before) is that I have negative values and those get 1 point (because they are the lowest 40%); the zero values should get zero (or be excluded somehow from the percentile)
 
Upvote 0
well, the work around I got was creating another column to eliminate the zeros
=IF(Y2=0;"";Y2)

and since percentile dont take empty spaces into the account, I did this:

=IFS(Z2="";0;Z2>=PERCENTILE(Z:Z;0,7);3;Z2>=PERCENTILE(Z:Z;0,4);2;Z2<PERCENTILE(Z:Z;0,4);1)
(is with the shift crtl enter to get the {})

I didnt wat to create another columm, but begers can't be chooser..
Thanks anyways!
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,715
Members
448,985
Latest member
chocbudda

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