Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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_ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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_ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
referenced cells | Excel Discussion (Misc queries) | |||
is referenced | Excel Programming | |||
Referenced File | Excel Programming | |||
can it be copied instead of referenced | Excel Worksheet Functions | |||
Vlookup, table array is referenced in another cell | Excel Programming |