Matrix visual and compare values

boehnc

Board Regular
Joined
Mar 26, 2002
Messages
65
Hello all,

I have the below in a Matrix visual. I'd like to add another column in the visual that would compare the "Score" to the %ile columns to give me the correct value.
For example, Team A's score is 0.75. This is more than 0.65 but less than 0.76 so it should be in the 25th %ile. Team B is in the 10th %ile and so forth. Thanks for any help.



Team Score 10th %ile 25th %ile 50th %ile 75th %ile 90th %ile
A 0.75 0.5 0.65 0.76 0.95 0.99
B 0.52 0.45 0.55 0.65 0.85 0.93
C 0.56 0.42 0.57 0.69 0.75 0.84
D 0.91 0.65 0.79 0.89 0.93 0.99
 

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off
There's probably a more elegant solution, but I had fun.:biggrin:

ABCDEFGH
1Team Score10th %ile25th %ile50th %ile75th %ile90th %ileResult
2A0.750.50.650.760.950.9925th %ile
3B0.520.450.550.650.850.9310th %ile
4C0.560.420.570.690.750.8410th %ile
5D0.910.650.790.890.930.9950th %ile

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

Worksheet Formulas
CellFormula
H2=IF(AND(B2>=C2,B2<D2),$C$1,IF(AND(B2>=D2,B2<E2),$D$1,IF(AND(B2>=E2,B2<F2),$E$1,IF(AND(B2>=F2,B2<G2),$F$1,G2))))
H3=IF(AND(B3>=C3,B3<D3),$C$1,IF(AND(B3>=D3,B3<E3),$D$1,IF(AND(B3>=E3,B3<F3),$E$1,IF(AND(B3>=F3,B3<G3),$F$1,G3))))
H4=IF(AND(B4>=C4,B4<D4),$C$1,IF(AND(B4>=D4,B4<E4),$D$1,IF(AND(B4>=E4,B4<F4),$E$1,IF(AND(B4>=F4,B4<G4),$F$1,G4))))
H5=IF(AND(B5>=C5,B5<D5),$C$1,IF(AND(B5>=D5,B5<E5),$D$1,IF(AND(B5>=E5,B5<F5),$E$1,IF(AND(B5>=F5,B5<G5),$F$1,G5))))

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

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,213,504
Messages
6,114,016
Members
448,543
Latest member
MartinLarkin

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