Microsoft Office Forums


Reply
Thread Tools Display Modes

vlookup -- table_array as reference to named range

 
 
Janet Panighetti
Guest
Posts: n/a
 
      09-14-2007, 04:16 PM
Dear geniuses,

I have price sheets coming from several sources with the same format and
products, but containing difference prices.

I am trying to build a dataset (table) from these sources which I could then
link to Access for querying.

Given each price sheet source is a seperate worksheet in a workbook, I have
given each sheet the named range of its pricing rate. For example, RATE_165
represents the pricing sheet which contains the prices for the "165" rate;
RATE_180 represents the pricing sheet which contains the prices for the "180"
rate.

I want to be able to build another sheet called "PricingData" and have it
look something like this:

PricingData:

A B C
1 Price Sheet Product Price
2 RATE_165 Widget $5.98
3 RATE_165 Gadget $10.00
4 RATE_180 Widget $8.45
5 RATE_180 Gadget $14.95

Where the formula in C2 would be something like:

=vlookup(b2,<value of a2 for the table_array>, 5,false)

And would bring back the price from the range "RATE_165" for a "Widget" in
that range.

Is it possible to convert the value in A2 into a reference for the named
range "RATE_165" within the vlookup function?

Thanks in advance!

Janet




 
Reply With Quote
 
 
 
 
Janet Panighetti
Guest
Posts: n/a
 
      09-14-2007, 04:46 PM
This is also posted as subject VLOOKUP -- DYNAMIC TABLE_ARRAY VALUE.

Apologies for the duplicate postings. Answer either or both if you like.

Janet

"Janet Panighetti" wrote:

> Dear geniuses,
>
> I have price sheets coming from several sources with the same format and
> products, but containing difference prices.
>
> I am trying to build a dataset (table) from these sources which I could then
> link to Access for querying.
>
> Given each price sheet source is a seperate worksheet in a workbook, I have
> given each sheet the named range of its pricing rate. For example, RATE_165
> represents the pricing sheet which contains the prices for the "165" rate;
> RATE_180 represents the pricing sheet which contains the prices for the "180"
> rate.
>
> I want to be able to build another sheet called "PricingData" and have it
> look something like this:
>
> PricingData:
>
> A B C
> 1 Price Sheet Product Price
> 2 RATE_165 Widget $5.98
> 3 RATE_165 Gadget $10.00
> 4 RATE_180 Widget $8.45
> 5 RATE_180 Gadget $14.95
>
> Where the formula in C2 would be something like:
>
> =vlookup(b2,<value of a2 for the table_array>, 5,false)
>
> And would bring back the price from the range "RATE_165" for a "Widget" in
> that range.
>
> Is it possible to convert the value in A2 into a reference for the named
> range "RATE_165" within the vlookup function?
>
> Thanks in advance!
>
> Janet
>
>
>
>

 
Reply With Quote
 
JW
Guest
Posts: n/a
 
      09-14-2007, 06:28 PM
Have a look at the INDIRECT function. Should allow you to use the A2
value as a reference name.
Janet Panighetti wrote:
> This is also posted as subject VLOOKUP -- DYNAMIC TABLE_ARRAY VALUE.
>
> Apologies for the duplicate postings. Answer either or both if you like.
>
> Janet
>
> "Janet Panighetti" wrote:
>
> > Dear geniuses,
> >
> > I have price sheets coming from several sources with the same format and
> > products, but containing difference prices.
> >
> > I am trying to build a dataset (table) from these sources which I could then
> > link to Access for querying.
> >
> > Given each price sheet source is a seperate worksheet in a workbook, I have
> > given each sheet the named range of its pricing rate. For example, RATE_165
> > represents the pricing sheet which contains the prices for the "165" rate;
> > RATE_180 represents the pricing sheet which contains the prices for the "180"
> > rate.
> >
> > I want to be able to build another sheet called "PricingData" and have it
> > look something like this:
> >
> > PricingData:
> >
> > A B C
> > 1 Price Sheet Product Price
> > 2 RATE_165 Widget $5.98
> > 3 RATE_165 Gadget $10.00
> > 4 RATE_180 Widget $8.45
> > 5 RATE_180 Gadget $14.95
> >
> > Where the formula in C2 would be something like:
> >
> > =vlookup(b2,<value of a2 for the table_array>, 5,false)
> >
> > And would bring back the price from the range "RATE_165" for a "Widget" in
> > that range.
> >
> > Is it possible to convert the value in A2 into a reference for the named
> > range "RATE_165" within the vlookup function?
> >
> > Thanks in advance!
> >
> > Janet
> >
> >
> >
> >


 
Reply With Quote
 
Janet Panighetti
Guest
Posts: n/a
 
      09-14-2007, 06:42 PM
Thanks. I tried indirect but it wasn't working.

I think maybe I hadn't saved the workbook first.

*blush*

Thanks!

Janet

"JW" wrote:

> Have a look at the INDIRECT function. Should allow you to use the A2
> value as a reference name.
> Janet Panighetti wrote:
> > This is also posted as subject VLOOKUP -- DYNAMIC TABLE_ARRAY VALUE.
> >
> > Apologies for the duplicate postings. Answer either or both if you like.
> >
> > Janet
> >
> > "Janet Panighetti" wrote:
> >
> > > Dear geniuses,
> > >
> > > I have price sheets coming from several sources with the same format and
> > > products, but containing difference prices.
> > >
> > > I am trying to build a dataset (table) from these sources which I could then
> > > link to Access for querying.
> > >
> > > Given each price sheet source is a seperate worksheet in a workbook, I have
> > > given each sheet the named range of its pricing rate. For example, RATE_165
> > > represents the pricing sheet which contains the prices for the "165" rate;
> > > RATE_180 represents the pricing sheet which contains the prices for the "180"
> > > rate.
> > >
> > > I want to be able to build another sheet called "PricingData" and have it
> > > look something like this:
> > >
> > > PricingData:
> > >
> > > A B C
> > > 1 Price Sheet Product Price
> > > 2 RATE_165 Widget $5.98
> > > 3 RATE_165 Gadget $10.00
> > > 4 RATE_180 Widget $8.45
> > > 5 RATE_180 Gadget $14.95
> > >
> > > Where the formula in C2 would be something like:
> > >
> > > =vlookup(b2,<value of a2 for the table_array>, 5,false)
> > >
> > > And would bring back the price from the range "RATE_165" for a "Widget" in
> > > that range.
> > >
> > > Is it possible to convert the value in A2 into a reference for the named
> > > range "RATE_165" within the vlookup function?
> > >
> > > Thanks in advance!
> > >
> > > Janet
> > >
> > >
> > >
> > >

>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
VLOOKUP -- DYNAMIC TABLE_ARRAY VALUE Janet Panighetti Excel Newsgroup 4 09-14-2007 06:56 PM
VLOOKUP WITH DYNAMIC TABLE_ARRAY VALUE Janet Panighetti Excel Newsgroup 0 09-14-2007 03:40 PM
Edit named range reference brian@intabanet.co.za Excel Newsgroup 2 10-04-2006 12:22 PM
use cell reference for named range elf21 Excel Newsgroup 5 02-20-2006 12:32 AM
use a formula to reference a named range ryanb. Excel Newsgroup 1 07-06-2004 09:51 PM



All times are GMT. The time now is 02:46 PM.
Microsoft Office Forums is not affiliated with Microsoft Corporation.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92