Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup with dynamic table_array

I'm trying to use vlookup with multiple worksheets defined by a dynamic
table_array value. I can store the appropriate value in a cell with the
correct format, but the vlookup function returns a REF error.

Example:

=VLOOKUP(DataCollection!B8,'Beds101-200'!A1:I68,7) works fine if I type the
specific table_array name in.

If I build the table_array name in cell o1, like this
=TRIM("'"&TRIM(N1)&"'!B1:I68"), which displays like this:
'Beds101-200'!A1:I68, I can't get the function to work.

Here is the final cell format =vlookup(DataCollection!B8,$o$1,7)
I've also tried =vlookup(DataCollection!B8,"$o$1",7)

Is there a way to get this to work?

--
Jim T
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default vlookup with dynamic table_array

Try it like this:

N1 = Beds101-200 (or whatever sheet name: Beds201-300)

=VLOOKUP(DataCollection!B8,INDIRECT("'"&N1&"'!A1:I 68"),7)

Biff

"Jim Toohey" wrote in message
...
I'm trying to use vlookup with multiple worksheets defined by a dynamic
table_array value. I can store the appropriate value in a cell with the
correct format, but the vlookup function returns a REF error.

Example:

=VLOOKUP(DataCollection!B8,'Beds101-200'!A1:I68,7) works fine if I type
the
specific table_array name in.

If I build the table_array name in cell o1, like this
=TRIM("'"&TRIM(N1)&"'!B1:I68"), which displays like this:
'Beds101-200'!A1:I68, I can't get the function to work.

Here is the final cell format =vlookup(DataCollection!B8,$o$1,7)
I've also tried =vlookup(DataCollection!B8,"$o$1",7)

Is there a way to get this to work?

--
Jim T



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default vlookup with dynamic table_array

Biff:
Worked like a charm. Thanks.
--
Jim T


"Biff" wrote:

Try it like this:

N1 = Beds101-200 (or whatever sheet name: Beds201-300)

=VLOOKUP(DataCollection!B8,INDIRECT("'"&N1&"'!A1:I 68"),7)

Biff

"Jim Toohey" wrote in message
...
I'm trying to use vlookup with multiple worksheets defined by a dynamic
table_array value. I can store the appropriate value in a cell with the
correct format, but the vlookup function returns a REF error.

Example:

=VLOOKUP(DataCollection!B8,'Beds101-200'!A1:I68,7) works fine if I type
the
specific table_array name in.

If I build the table_array name in cell o1, like this
=TRIM("'"&TRIM(N1)&"'!B1:I68"), which displays like this:
'Beds101-200'!A1:I68, I can't get the function to work.

Here is the final cell format =vlookup(DataCollection!B8,$o$1,7)
I've also tried =vlookup(DataCollection!B8,"$o$1",7)

Is there a way to get this to work?

--
Jim T




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default vlookup with dynamic table_array

You're welcome. Thanks for the feedback!

Biff

"Jim Toohey" wrote in message
...
Biff:
Worked like a charm. Thanks.
--
Jim T


"Biff" wrote:

Try it like this:

N1 = Beds101-200 (or whatever sheet name: Beds201-300)

=VLOOKUP(DataCollection!B8,INDIRECT("'"&N1&"'!A1:I 68"),7)

Biff

"Jim Toohey" wrote in message
...
I'm trying to use vlookup with multiple worksheets defined by a dynamic
table_array value. I can store the appropriate value in a cell with
the
correct format, but the vlookup function returns a REF error.

Example:

=VLOOKUP(DataCollection!B8,'Beds101-200'!A1:I68,7) works fine if I type
the
specific table_array name in.

If I build the table_array name in cell o1, like this
=TRIM("'"&TRIM(N1)&"'!B1:I68"), which displays like this:
'Beds101-200'!A1:I68, I can't get the function to work.

Here is the final cell format =vlookup(DataCollection!B8,$o$1,7)
I've also tried =vlookup(DataCollection!B8,"$o$1",7)

Is there a way to get this to work?

--
Jim T






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
dynamic vlookup? Ray Excel Worksheet Functions 3 November 3rd 06 11:49 AM
VLOOKUP in a dynamic setting Liz Excel Worksheet Functions 3 February 10th 06 04:19 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
Dynamic range for Table_array in a VLOOKUP. DaveO Excel Worksheet Functions 8 October 12th 05 04:28 PM
Dynamic Range for Function (Vlookup etc) IshtiaqM Excel Worksheet Functions 4 March 27th 05 09:47 PM


All times are GMT +1. The time now is 03:57 PM.

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"