Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / September 2007

Tip: Looking for answers? Try searching our database.

VLOOKUP -- DYNAMIC TABLE_ARRAY VALUE

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Janet Panighetti - 14 Sep 2007 16:54 GMT
I am trying to build a dataset (table) of values compiled from the contents
of many input worksheets.

I would like to know if there is a way to pass the table_array argument to
vlookup based upon a text value stored in a cell (which represents a named
range) on another worksheet.

For example, the name DW_160 contains the range of the data stored in the
worksheet "BOOK 160", the name DW_185 contans the range of the data stored in
the worksheet "BOOK 185".  Each of these sheets contain various products and
their prices.  Each of these sheets is in identical format.

I want to build another sheet that compiles this data into a table which I
can then link to microsoft access for querying.  

The page I am building let's call PriceData, And I am trying to get a table
that looks like the following:

PriceData:
         A              B              C
1   Price List     Product     Price
2   DW_160     Widget      $120.00
3   DW_160     Gadget      $132.00
4   DW_185     Widget      $128.00
5   DW_185     Gadget      $145.00

In this table, I only enter the Price List name and the Product and want
vlookup to bring back the price.  So, I want something like this in the price
field:

   Formula in C2:
       =vlookup(A2,<value of A1 for the table_array>,4,false)

How can I express <value of A1 for the table_array> into something vlookup
understands?

Thank you,

Janet
Janet Panighetti - 14 Sep 2007 17:42 GMT
Sorry for the multiple postings.  It's hectic around here and I couldn't tell
if the first one went through.  I apologize.

> I am trying to build a dataset (table) of values compiled from the contents
> of many input worksheets.
[quoted text clipped - 35 lines]
>
> Janet
Don Guillett - 14 Sep 2007 19:23 GMT
try this idea
=IF(ISNUMBER(D18),VLOOKUP($A18,INDIRECT("Data!B1:X1000"),5,0),"")
=IF(ISNUMBER(D18),VLOOKUP($A18,INDIRECT(a1),5,0),"")
Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

>I am trying to build a dataset (table) of values compiled from the contents
> of many input worksheets.
[quoted text clipped - 39 lines]
>
> Janet
Janet Panighetti - 14 Sep 2007 19:42 GMT
Well, I though I had tried that before and it wasn't working.

I tried it this time and it worked.

:)

Perhaps I hadn't saved the workbook before.

Thanks!

> try this idea
> =IF(ISNUMBER(D18),VLOOKUP($A18,INDIRECT("Data!B1:X1000"),5,0),"")
[quoted text clipped - 42 lines]
> >
> > Janet
Don Guillett - 14 Sep 2007 19:56 GMT
Glad to help

Signature

Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com

> Well, I though I had tried that before and it wasn't working.
>
[quoted text clipped - 61 lines]
>> >
>> > Janet

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.