Problem with VLOOKUP where lookup_value is itself the result of a VLOOKUP

CymroLlundain

New Member
Joined
Apr 24, 2013
Messages
4
I'm sure that I have seen nested VLOOKUPs work but I am unable to persuade what is essentially =VLOOKUP(VLOOKUP(firstdataset,E1,2,0),seconddataset,W1,2,0)) to return anything other than #N/A.
The first data set has two columns, containing four digit ID codes for students in one, with an assignment raw mark alongside (an integer in the range 0 to 60). The second data set contains the list of possible assignment raw marks, with their associated grade values alongside - again, just two columns. All four columns are formatted as numbers.

Row 1 refers to student 9743. Her assignment score is 47. VLOOKUP(firstdataset,E1,2,0) correctly returns the value 47.

However, =VLOOKUP(VLOOKUP(firstdataset,E1,2,0),seconddataset,W1,2,0)) returns #N/A. If I replace the second VLOOKUP() with the number 47, then the function correctly returns the grade value equivalent to a raw score of 47 - that is, 63.

Is the problem with the nesting? Any help gratefully received.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Shouldn't your formula be set up like this?
=VLOOKUP(VLOOKUP(E1,firstdataset,2,0),seconddataset,2,0))
 
Upvote 0
Crumbs. Yes, it shouldn't look like I've typed at all.

It actually says exactly what you've typed. Same result, though.
 
Upvote 0
Difficult to say what the problem might be. Could you upload a sample of your workbook to an online storage site?
 
Upvote 0
make sure that the format of 47 in the first dataset is in the same format of 47 in the second dataset..
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,690
Members
449,117
Latest member
Aaagu

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