Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Double lookup

I can't believe I don't know this. I'll call it a double, or nested, lookup
problem. Basically, based on getting a match in two columns, I want to read
the value in a 3rd column. For example...

Suppose I make a little table in EXCEL where the first column has the type
of fruit, say apple in row 2, orange in row 3, pear in row 4. Then, the
next column has a date, such as April 1st in each of these rows. Then , the
next column has the price of the particular fruit on that date.

Now I copy those three rows down and repeat the exercise using the prices of
the 3 fruit on the next day.

I continue doing this until I have 90 rows corresponding to the prices of
the 3 fruits on the 30 days of a month.

Now, I want to be able to automatically lookup the price of a particular
fruit on a particular date. How would I do this with vlookup(s)? If it
would work better, I could first sort things so that I had the 30 day's
prices of apples at the top, then oranges, then pears.

Thanks!

Dean
price of an apple, then orange, then pear, all at the end of March in the
first row


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 364
Default Double lookup

see if this may help

http://www.contextures.on.ca/xlDataVal02.html


http://www.contextures.on.ca/tiptech.html


--


Gary


"Dean" wrote in message
...
I can't believe I don't know this. I'll call it a double, or nested,
lookup problem. Basically, based on getting a match in two columns, I want
to read the value in a 3rd column. For example...

Suppose I make a little table in EXCEL where the first column has the type
of fruit, say apple in row 2, orange in row 3, pear in row 4. Then, the
next column has a date, such as April 1st in each of these rows. Then ,
the next column has the price of the particular fruit on that date.

Now I copy those three rows down and repeat the exercise using the prices
of the 3 fruit on the next day.

I continue doing this until I have 90 rows corresponding to the prices of
the 3 fruits on the 30 days of a month.

Now, I want to be able to automatically lookup the price of a particular
fruit on a particular date. How would I do this with vlookup(s)? If it
would work better, I could first sort things so that I had the 30 day's
prices of apples at the top, then oranges, then pears.

Thanks!

Dean
price of an apple, then orange, then pear, all at the end of March in the
first row



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 407
Default Double lookup

Thanks but this stuff looks too advanced for what I'm trying to do. It's a
simple problem: find a match of X in column 1, then of Y in column 2, and
return the value in column 3.

One idea I just thought of is to create a column A&B, such as cell C3 =
a3&B3, C4 = A4&b4. Then each column C entry will be unique and I can look
up by that combined variable. But it is a bit tedious that way. Can anyone
suggest a more simple, elegant, way? Almost like a nested conditional
vlookup.

Thanks!
Dean

"Gary Keramidas" wrote in message
...
see if this may help

http://www.contextures.on.ca/xlDataVal02.html


http://www.contextures.on.ca/tiptech.html


--


Gary


"Dean" wrote in message
...
I can't believe I don't know this. I'll call it a double, or nested,
lookup problem. Basically, based on getting a match in two columns, I
want to read the value in a 3rd column. For example...

Suppose I make a little table in EXCEL where the first column has the
type of fruit, say apple in row 2, orange in row 3, pear in row 4. Then,
the next column has a date, such as April 1st in each of these rows. Then
, the next column has the price of the particular fruit on that date.

Now I copy those three rows down and repeat the exercise using the prices
of the 3 fruit on the next day.

I continue doing this until I have 90 rows corresponding to the prices of
the 3 fruits on the 30 days of a month.

Now, I want to be able to automatically lookup the price of a particular
fruit on a particular date. How would I do this with vlookup(s)? If it
would work better, I could first sort things so that I had the 30 day's
prices of apples at the top, then oranges, then pears.

Thanks!

Dean
price of an apple, then orange, then pear, all at the end of March in the
first row





  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,120
Default Double lookup

=INDEX(C1:C100,MATCH(M1&M2,A1:A100&B1:B100,0))

where M1 is your lookup fruit, M2 is your lookup date.

--
HTH

Bob Phillips

"Dean" wrote in message
...
I can't believe I don't know this. I'll call it a double, or nested,

lookup
problem. Basically, based on getting a match in two columns, I want to

read
the value in a 3rd column. For example...

Suppose I make a little table in EXCEL where the first column has the type
of fruit, say apple in row 2, orange in row 3, pear in row 4. Then, the
next column has a date, such as April 1st in each of these rows. Then ,

the
next column has the price of the particular fruit on that date.

Now I copy those three rows down and repeat the exercise using the prices

of
the 3 fruit on the next day.

I continue doing this until I have 90 rows corresponding to the prices of
the 3 fruits on the 30 days of a month.

Now, I want to be able to automatically lookup the price of a particular
fruit on a particular date. How would I do this with vlookup(s)? If it
would work better, I could first sort things so that I had the 30 day's
prices of apples at the top, then oranges, then pears.

Thanks!

Dean
price of an apple, then orange, then pear, all at the end of March in the
first row




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
Double Lookup ryguy7272 Excel Worksheet Functions 5 July 13th 09 09:42 PM
Double Lookup SteveR Excel Worksheet Functions 6 November 14th 08 11:12 AM
Variable Lookup/Double Lookup Ryan[_2_] Excel Worksheet Functions 8 May 14th 07 09:44 PM
double lookup Geir Excel Worksheet Functions 0 November 2nd 05 04:47 PM
Double lookup Gary T Excel Worksheet Functions 3 July 28th 05 12:33 PM


All times are GMT +1. The time now is 01:24 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"