![]() |
HELP - Vlookup with referenced tab name
Hi all,
I have a question regarding Vlookup, here is the code =VLOOKUP($B111,('[MainFile.xls]Sheet1'!$A$8:$D$150),3,0) I have about 30 sheets, and I want to replace the "Sheet1" in that formula with a cell reference, which correspond to the heading of each column. For example, Column C5 contains Sheet1, D5 contains Sheet2, D6 = Sheet3...So that when I copy the fomula accross the sheet, the formular will change accordingly. I know the following formular is wrong, can some one help please. As you can see, all I want is to replace "Sheet1" with a cell reference. =VLOOKUP($B111,('[MainFile.xls] & C$5 & '!$A$8:$D$150),3,0) Thanks, V_ |
HELP - Vlookup with referenced tab name
Try:
=VLOOKUP($B111,INDIRECT('[MainFile.xls] & C$5 & '!$A$8:$D$150),3,0) Tim "nxqviet" wrote in message ... Hi all, I have a question regarding Vlookup, here is the code =VLOOKUP($B111,('[MainFile.xls]Sheet1'!$A$8:$D$150),3,0) I have about 30 sheets, and I want to replace the "Sheet1" in that formula with a cell reference, which correspond to the heading of each column. For example, Column C5 contains Sheet1, D5 contains Sheet2, D6 = Sheet3...So that when I copy the fomula accross the sheet, the formular will change accordingly. I know the following formular is wrong, can some one help please. As you can see, all I want is to replace "Sheet1" with a cell reference. =VLOOKUP($B111,('[MainFile.xls] & C$5 & '!$A$8:$D$150),3,0) Thanks, V_ |
HELP - Vlookup with referenced tab name
This Code works Perfectly!!!!! Thank you very much for your help.
V_ On Jan 3, 8:32*pm, "Tim Williams" <timjwilliams at gmail dot com wrote: Try: =VLOOKUP($B111,INDIRECT('[MainFile.xls] & C$5 & '!$A$8:$D$150),3,0) Tim "nxqviet" wrote in message ... Hi all, I have a question regarding Vlookup, here is the code =VLOOKUP($B111,('[MainFile.xls]Sheet1'!$A$8:$D$150),3,0) I have about 30 sheets, and I want to replace the "Sheet1" in that formula with a cell reference, which correspond to the heading of each column. For example, Column C5 contains Sheet1, D5 contains Sheet2, D6 = Sheet3...So that when I copy the fomula accross the sheet, the formular will change accordingly. I know the following formular is wrong, can some one help please. As you can see, all I want is to replace "Sheet1" with a cell reference. =VLOOKUP($B111,('[MainFile.xls] & C$5 & '!$A$8:$D$150),3,0) Thanks, V_- Hide quoted text - - Show quoted text - |
All times are GMT +1. The time now is 05:27 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com