I'll try to paste a table in here for clarification. Everything works great as you wrote it. I have one more column that counts backwards, the lower the number of days the better the rating. I tried putting the larger number at the top and also flipped the result_vector from 1,2,3,4 to 4,3,2,1 but it's not working correctly. If you can, see what I have wrong please.
[TABLE="width: 419"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]>=20.7[/TD]
[TD="align: right"]1[/TD]
[TD]L1[/TD]
[TD="align: right"]20.70[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]18.00 - 20.69[/TD]
[TD="align: right"]2[/TD]
[TD][/TD]
[TD="align: right"]18.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]16.10 - 17.99[/TD]
[TD="align: right"]3[/TD]
[TD][/TD]
[TD="align: right"]16.09[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]0.00 - 16.09[/TD]
[TD="align: right"]4[/TD]
[TD][/TD]
[TD="align: right"]0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]L2[/TD]
[TD="align: right"]19.55[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]The lower the number[/TD]
[TD][/TD]
[TD="align: right"]17.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]the better the rating[/TD]
[TD][/TD]
[TD="align: right"]14.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]L3[/TD]
[TD="align: right"]0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]13.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Levels 3 - 5[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]16.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD="colspan: 2"]have the same goals[/TD]
[TD][/TD]
[TD="align: right"]18.40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]L4[/TD]
[TD="align: right"]18.40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]16.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]13.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]L5[/TD]
[TD="align: right"]0.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]13.99[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]16.00[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]18.40[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Month[/TD]
[TD]Name[/TD]
[TD]Seniority Level[/TD]
[TD]Days[/TD]
[TD]Rating[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]John[/TD]
[TD]L1[/TD]
[TD="align: right"]16.10[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]Beth[/TD]
[TD]L4[/TD]
[TD]n/a[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]Fred[/TD]
[TD]L2[/TD]
[TD="align: right"]15.65[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]Sam[/TD]
[TD] L1[/TD]
[TD="align: right"]13.50[/TD]
[TD="align: center"]#N/A[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]Tammy[/TD]
[TD]L3[/TD]
[TD="align: right"]17.00[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]January[/TD]
[TD]Steven[/TD]
[TD]L5[/TD]
[TD="align: right"]10.21[/TD]
[TD="align: right"]1[/TD]
[/TR]
</tbody>[/TABLE]
Here's the formula I have in E23-E28
=IF(D23="","",IF(D23="N/A",3,LOOKUP(D23,CHOOSE(0+RIGHT(C23,1),$D$1:$D$4,$D$5:$D$7,$D$8:$D$12,$D$13:$D$16,$D$17:$D$20),{1,2,3,4})))