Help, Vlookup not working correctly

EmmaN

New Member
Joined
Jun 17, 2014
Messages
21
Hi all, I'm having problems with a vlookup formula, I am trying to return a grade in column J using the value in column J. My formula keeps returning the last line from my lookup table (H20 = z), it should be pulling an F as the value is 31.

I have tried a Vlookup and an IF function. Both return the same incorrect value from the last line of my lookup table (z). Any suggestions greatfully recieved.

An example of the data i have is as follows:

A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
1
IGCSE English Lit 2016-18
Gender
Set
Teacher
Poetry Coursework
Poetry Weighted
Drama
Prose
Mock Total
Literature Total
Grade
OCT REPORT OTF
Lit target
MPGRADE
MTGRADE
2















3
Candidate A
F
1
JL
23
31


0
31
z
A
A*


4
Candidate B
F
1
JL
24
32


0
32
z
A
A*


5
Candidate C
F
1
JL
23
31


0
31
z
A
A*


6
Candidate D
F
1
JL
24
32


0
32
z
A
A*


Lookup table. 'Data' Sheet
F
G
H
2
Lit
=IF(J3=0,"",VLOOKUP(J3,Data!$F$3:$H$20,3,TRUE))
3
0
0
U
=VLOOKUP(J3,Data!$F$3:$H$20,3,TRUE))
4
0.17
17
U
5
0.18
18
G
6
0.24
24
G
7
0.25
25
F
8
0.32
32
F
9
0.33
33
E
10
0.4
40
E
11
0.41
41
D
12
0.48
48
D
13
0.49
49
C
14
0.57
57
C
15
0.58
58
B
16
0.67
67
B
17
0.68
68
A
18
0.77
77
A
19
0.78
78
z
20
1
100
z

<tbody>
</tbody>
Thank you. Emma
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Try
Code:
[COLOR=#333333]=VLOOKUP(J3,Data!$G$3:$H$20,2,TRUE))[/COLOR]

This will look for the Column J value in Column G (notice I changed the look table array to start with $G$3) and then retrieve the Letter Grade in column H (I also changed the third parameter to 2).
 
Upvote 0
Try
Code:
[COLOR=#333333]=VLOOKUP(J3,Data!$G$3:$H$20,2,TRUE))[/COLOR]

This will look for the Column J value in Column G (notice I changed the look table array to start with $G$3) and then retrieve the Letter Grade in column H (I also changed the third parameter to 2).


THANK YOU SO MUCH!!! This was driving me round the bend. Emma
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,752
Members
448,989
Latest member
mariah3

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