# Matrix visual and compare values

#### boehnc

##### Board Regular
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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the \$ sign).

#### Tom Schreiner

##### Well-known Member
There's probably a more elegant solution, but I had fun. 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

</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))))

</tbody>

<tbody>
</tbody>