Forum Discussion
Vlookup in multiples worksheet in another workbbok
Rajesh_Sinha Thank you so much for helping! And sorry for the late response, my account wouldn't connect.
I actually need to lookup for a value in D1 in another workbook and multiple sheets (the name of the sheet being in a dropdown menu in B3).
So I need both, the value to look for and the name of the sheet.
When I try your formula I get a #REF error.
I have wrote the following formula and it works, but only when the other workbook is open. Do you know how to make this work when the workbook is closed?
=(VLOOKUP($D1,INDIRECT("'[Book1.xlsm]"&B$3&"'!$C$7:$D$12"),2,FALSE)
Thanks
Simon
SimonD90 ,,
Since you are working with closed workbook then, need to add the File path, it may be like this.
=VLOOKUP(D1,'C:\My Documents\Temp\[Demo.xlsx]Sheet'!C1:D20,2,FALSE)
My suggestion is,, use the method I've shown is better & faster also. and no need to use/write workbooks separately.
Replace cell value with this:
'C:\Users\User\Desktop\Folder Name\[book1.xlsm]Sheet1'
Note: You need to adjust Drive, Folder, Workbook, Sheet & Range as needed.