Problem with VLOOKUP working backwards

DeezNuts

Board Regular
Joined
Aug 12, 2014
Messages
177
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

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

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

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

<tbody>
</tbody>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
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)
 
Upvote 0
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.
 
Upvote 0
I ended up resorting them smallest to largest and used =LOOKUP(A1,C3:C20,D3:D20) thank you both for your help
 
Upvote 0
Just curious, what should be the outcome for say 69.5%? C or D
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

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