leohimself
New Member
- Joined
- Sep 25, 2013
- Messages
- 2
Hello everyone,
I'm trying to use VLOOKUP to search on a table in a different Workbook (which is also open, say Workbook 2.xlsx on it's Sheet 1) than the current (say Workbook 1.xlsx). I want to write the name "Workbook 2.xlsx" in a cell of Workbook 1.xlsx Sheet 2 and then just use INDIRECT to take the name from there and use it with my VLOOKUP.
This is how my VLOOKUP looks: VLOOKUP(F12;INDIRECT('Sheet 2'!F2&"Sheet1'!$B$4:$E$39;4");False).
The Result I get is #REF!.
Could you guys help me and tell me what I'm doing wrong?
Just for background to make an easier understanding of what I'm trying to do:
The cell F12 of Workbook 1.xlsx Sheet 1 contains a name which should be looked up in Workbook 2.xlsx Sheet 1 and if there is an "ok" written in the 4th column of the table i have in Workbook 2.xlsx Sheet 1 then it should write the name in the cell where I'm using the VLOOKUP function. My function is longer with IFs and ORs but I just need help on this INDIRECT which is giving me headaches
.
'Sheet 2'!F2 is the cell which contains the name of my Workbook 2.xlsx:precisly it contains " '[Workbook 2.xlsx] " which should be attached to Sheet1'!$B$4:$E$39.
When I analyse the #REF! error the result is:
VLOOKUP("Name";INDIRECT( "[Workbook 2.xlsx]Sheet1'!$B$4:$E$39;4");FALSE) but instead of getting the result from column 4 it just returns #REF!.
Thank you for your help!
I'm trying to use VLOOKUP to search on a table in a different Workbook (which is also open, say Workbook 2.xlsx on it's Sheet 1) than the current (say Workbook 1.xlsx). I want to write the name "Workbook 2.xlsx" in a cell of Workbook 1.xlsx Sheet 2 and then just use INDIRECT to take the name from there and use it with my VLOOKUP.
This is how my VLOOKUP looks: VLOOKUP(F12;INDIRECT('Sheet 2'!F2&"Sheet1'!$B$4:$E$39;4");False).
The Result I get is #REF!.
Could you guys help me and tell me what I'm doing wrong?
Just for background to make an easier understanding of what I'm trying to do:
The cell F12 of Workbook 1.xlsx Sheet 1 contains a name which should be looked up in Workbook 2.xlsx Sheet 1 and if there is an "ok" written in the 4th column of the table i have in Workbook 2.xlsx Sheet 1 then it should write the name in the cell where I'm using the VLOOKUP function. My function is longer with IFs and ORs but I just need help on this INDIRECT which is giving me headaches

'Sheet 2'!F2 is the cell which contains the name of my Workbook 2.xlsx:precisly it contains " '[Workbook 2.xlsx] " which should be attached to Sheet1'!$B$4:$E$39.
When I analyse the #REF! error the result is:
VLOOKUP("Name";INDIRECT( "[Workbook 2.xlsx]Sheet1'!$B$4:$E$39;4");FALSE) but instead of getting the result from column 4 it just returns #REF!.
Thank you for your help!