Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Indirect inside a vlookup

Hello,
I am trying to do a Vlookup that would automatically refer to a different
sheet in a workbook. I have a workbook called January08.xlxs with 31 sheets
called 1-1 to 1-31 respectivally. I would like to do a vlookup on cell D7 and
have it return the contents of sheet 1-1in the D8 cell and would like the
contents of sheet 1-2 in cell D9. In a normal vlookup it looks as follows
=VLOOKUP(D7,'[January08.xlsx]1-1'!$A$6:$F$64,2,FALSE) in cell D8. I would
like to automaticcaly reference the next work sheet in the next row to have
the formula =VLOOKUP(D7,'[January08.xlsx]1-2'!$A$6:$F$64,2,FALSE) in Cell D9
and so forth. I put a reference in column A with the sheet reference in each
row. Cell A8 has the text of 1-1, cell A9 has 1-2 and cell A38 has 1-31.I
tried using the INDIRECT function inside the Vlookup but have had no luck.
The formula I tried was
=VLOOKUP(D7,INDIRECT("[January08.xlxs]"&A8&"!$A6:$F64"),2,FALSE) Any help
would be greatly appreciated. Thanks

chris
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Indirect inside a vlookup

Check you file name in your formula. In one formula you have the extention
as ".xlsx", and then in the another you have as ".xlxs". In my formula
below, I'm assuming it is supposed to be ".xls". Additionally, your formula
appeard to be missing the apostrophe before the open bracket "[" and before
the exclamation mark "!".

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$F$64"),2,FALSE)

It appears that your only returning a value in column 2 of your table. So
why not limit your range to two columns?

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$B$64"),2,FALSE)

HTH,
Paul

--

"Diggsy" wrote in message
...
Hello,
I am trying to do a Vlookup that would automatically refer to a different
sheet in a workbook. I have a workbook called January08.xlxs with 31
sheets
called 1-1 to 1-31 respectivally. I would like to do a vlookup on cell D7
and
have it return the contents of sheet 1-1in the D8 cell and would like the
contents of sheet 1-2 in cell D9. In a normal vlookup it looks as follows
=VLOOKUP(D7,'[January08.xlsx]1-1'!$A$6:$F$64,2,FALSE) in cell D8. I would
like to automaticcaly reference the next work sheet in the next row to
have
the formula =VLOOKUP(D7,'[January08.xlsx]1-2'!$A$6:$F$64,2,FALSE) in Cell
D9
and so forth. I put a reference in column A with the sheet reference in
each
row. Cell A8 has the text of 1-1, cell A9 has 1-2 and cell A38 has 1-31.I
tried using the INDIRECT function inside the Vlookup but have had no luck.
The formula I tried was
=VLOOKUP(D7,INDIRECT("[January08.xlxs]"&A8&"!$A6:$F64"),2,FALSE) Any help
would be greatly appreciated. Thanks

chris



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default Indirect inside a vlookup

Thank You very Much.My mistake...Actually the the worksheet extension was
xlxs. It works great Thank you. I needed a larger range because I am looking
at many colums with the vlookup. I was just referencing the 2nd cloumn (The B
column) as just a part of the example. Thanks Again

"PCLIVE" wrote:

Check you file name in your formula. In one formula you have the extention
as ".xlsx", and then in the another you have as ".xlxs". In my formula
below, I'm assuming it is supposed to be ".xls". Additionally, your formula
appeard to be missing the apostrophe before the open bracket "[" and before
the exclamation mark "!".

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$F$64"),2,FALSE)

It appears that your only returning a value in column 2 of your table. So
why not limit your range to two columns?

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$B$64"),2,FALSE)

HTH,
Paul

--

"Diggsy" wrote in message
...
Hello,
I am trying to do a Vlookup that would automatically refer to a different
sheet in a workbook. I have a workbook called January08.xlxs with 31
sheets
called 1-1 to 1-31 respectivally. I would like to do a vlookup on cell D7
and
have it return the contents of sheet 1-1in the D8 cell and would like the
contents of sheet 1-2 in cell D9. In a normal vlookup it looks as follows
=VLOOKUP(D7,'[January08.xlsx]1-1'!$A$6:$F$64,2,FALSE) in cell D8. I would
like to automaticcaly reference the next work sheet in the next row to
have
the formula =VLOOKUP(D7,'[January08.xlsx]1-2'!$A$6:$F$64,2,FALSE) in Cell
D9
and so forth. I put a reference in column A with the sheet reference in
each
row. Cell A8 has the text of 1-1, cell A9 has 1-2 and cell A38 has 1-31.I
tried using the INDIRECT function inside the Vlookup but have had no luck.
The formula I tried was
=VLOOKUP(D7,INDIRECT("[January08.xlxs]"&A8&"!$A6:$F64"),2,FALSE) Any help
would be greatly appreciated. Thanks

chris




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,311
Default Indirect inside a vlookup

Your welcome.

--

"Diggsy" wrote in message
...
Thank You very Much.My mistake...Actually the the worksheet extension was
xlxs. It works great Thank you. I needed a larger range because I am
looking
at many colums with the vlookup. I was just referencing the 2nd cloumn
(The B
column) as just a part of the example. Thanks Again

"PCLIVE" wrote:

Check you file name in your formula. In one formula you have the
extention
as ".xlsx", and then in the another you have as ".xlxs". In my formula
below, I'm assuming it is supposed to be ".xls". Additionally, your
formula
appeard to be missing the apostrophe before the open bracket "[" and
before
the exclamation mark "!".

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$F$64"),2,FALSE)

It appears that your only returning a value in column 2 of your table.
So
why not limit your range to two columns?

=VLOOKUP(D7,INDIRECT("'[January08.xls]" & A8 & "'!$A$6:$B$64"),2,FALSE)

HTH,
Paul

--

"Diggsy" wrote in message
...
Hello,
I am trying to do a Vlookup that would automatically refer to a
different
sheet in a workbook. I have a workbook called January08.xlxs with 31
sheets
called 1-1 to 1-31 respectivally. I would like to do a vlookup on cell
D7
and
have it return the contents of sheet 1-1in the D8 cell and would like
the
contents of sheet 1-2 in cell D9. In a normal vlookup it looks as
follows
=VLOOKUP(D7,'[January08.xlsx]1-1'!$A$6:$F$64,2,FALSE) in cell D8. I
would
like to automaticcaly reference the next work sheet in the next row to
have
the formula =VLOOKUP(D7,'[January08.xlsx]1-2'!$A$6:$F$64,2,FALSE) in
Cell
D9
and so forth. I put a reference in column A with the sheet reference in
each
row. Cell A8 has the text of 1-1, cell A9 has 1-2 and cell A38 has
1-31.I
tried using the INDIRECT function inside the Vlookup but have had no
luck.
The formula I tried was
=VLOOKUP(D7,INDIRECT("[January08.xlxs]"&A8&"!$A6:$F64"),2,FALSE) Any
help
would be greatly appreciated. Thanks

chris






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
Can you use HLOOKUP inside VLOOKUP to tell it what column 2 return Otter Excel Worksheet Functions 1 February 8th 08 03:43 PM
Indirect address inside "" Khoshravan Setting up and Configuration of Excel 2 June 26th 06 12:31 AM
vlookup inside an if statement? carlosgdlf Excel Discussion (Misc queries) 3 August 4th 05 02:36 AM
vlookup inside an if statement? carlosgdlf Excel Worksheet Functions 3 August 3rd 05 11:38 PM
Using Concatenate inside a vlookup bmclean Excel Worksheet Functions 3 July 5th 05 09:29 PM


All times are GMT +1. The time now is 01:16 AM.

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

About Us

"It's about Microsoft Excel"