# Problem with VLOOKUP working backwards

#### DeezNuts

##### Board Regular
I am trying to make a grade scale and for whatever reason it is working wrong. If any number under 100 is tried it gives a N/A and anything of 100 gives a F not how it should work. What am doing wrong with this?

Excel 2013
ABCDE
122.00%#N/A
2
3100.00%A
495.00%A
594.00%A-
690.00%A-
789.00%B+
887.00%B+
984.00%B
1083.00%B
1182.00%B-
1280.00%B-
1379.00%C+
1477.00%C+
1576.00%C
1670.00%C
1769.00%D
1860.00%D
1959.00%F
200.00%F

</tbody>
Sheet1

Worksheet Formulas
CellFormula
D1=VLOOKUP(A1,\$C\$3:\$D\$20,2)

</tbody>

<tbody>
</tbody>

### Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
VLOOKUP with approximate match requires sorting the data in ascending order. See below(and 2 formula examples)

Excel 2010
ABCD
170.50%CC
2
30%F
459%F
560%D
669%D
770%C
876%C
977%C+
1079%C+
1180%B-
1282%B-
1383%B
1484%B
1587%B+
1689%B+
1790%A-
1894%A-
1995%A
20100%A
Sheet13
Cell Formulas
RangeFormula
C1=INDEX(\$C\$3:\$C\$20,MATCH(A1,\$B\$3:\$B\$20,1))
D1=VLOOKUP(A1,\$B\$3:\$C\$20,2)

Maybe...

 A​ B​ C​ D​ 1​ 22,00%​ F​ 2​ 3​ 100,00%​ A​ 4​ 95,00%​ A​ 5​ 94,00%​ A-​ 6​ 90,00%​ A-​ 7​ 89,00%​ B+​ 8​ 87,00%​ B+​ 9​ 84,00%​ B​ 10​ 83,00%​ B​ 11​ 82,00%​ B-​ 12​ 80,00%​ B-​ 13​ 79,00%​ C+​ 14​ 77,00%​ C+​ 15​ 76,00%​ C​ 16​ 70,00%​ C​ 17​ 69,00%​ D​ 18​ 60,00%​ D​ 19​ 59,00%​ F​ 20​ 0,00%​ F​

Formula in D1
=INDEX(D3:D20,MATCH(A1,C3:C20,-1))

Hope this helps

M.

I ended up resorting them smallest to largest and used =LOOKUP(A1,C3:C20,D3:D20) thank you both for your help

Just curious, what should be the outcome for say 69.5%? C or D

Replies
3
Views
648
Replies
0
Views
110
Replies
1
Views
302
Replies
1
Views
405
Replies
1
Views
569

1,220,951
Messages
6,157,030
Members
451,392
Latest member
malcv

### 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.

### Which adblocker are you using?

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

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