Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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_
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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_



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default 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 -


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
referenced cells Michaeld Excel Discussion (Misc queries) 2 June 16th 08 09:02 PM
is referenced sali[_2_] Excel Programming 2 September 6th 07 07:38 AM
Referenced File Shawn Excel Programming 2 September 12th 06 04:07 AM
can it be copied instead of referenced D.R. - Help Excel Worksheet Functions 2 July 12th 05 08:28 PM
Vlookup, table array is referenced in another cell edsox5 Excel Programming 7 March 6th 04 12:03 AM


All times are GMT +1. The time now is 07:28 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"