#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Catherine
 
Posts: n/a
Default Lookup Value

Hi,

I would like to see any excel formula (vlookup/ index & match) can help to
return the desired value:


See below -

apple shop A 2/15/2006 ??? < ---- (to be returned as 0.5)
apple shop B 3/27/2006 ??? < ---- (to be returned as 0.6)


Lookup table:
A B C D E
apple shop A 1/1/2006 2/28/2006 0.5
apple shop A 3/1/2006 5/30/2006 0.7
apple shop B 1/1/2006 1/2/2006 1
apple shop B 1/3/2006 3/28/2006 0.6


thanks




  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Catherine
 
Posts: n/a
Default Lookup Value

Thanx Max, it works

"Max" wrote:

Assuming the source data is in sheet: X, cols A to E, within rows 1 - 10

and in sheet: Y,
you have the set-up in row1 down, cols A to C:

apple shop A 2/15/2006 ??? < ---- (to be returned as 0.5)
apple shop B 3/27/2006 ??? < ---- (to be returned as 0.6)


Put in D1, array-enter (press CTRL+SHIFT+ENTER):
=INDEX(X!$E$1:$E$10,MATCH(1,(X!$A$1:$A$10=A1)*(X!$ B$1:$B$10=B1)*(C1=X!$C$1:$C$10)*(C1<=X!$D$1:$D$10 ),0))
Copy D1 down

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Catherine" wrote:

Hi,

I would like to see any excel formula (vlookup/ index & match) can help to
return the desired value:


See below -




Lookup table:
A B C D E
apple shop A 1/1/2006 2/28/2006 0.5
apple shop A 3/1/2006 5/30/2006 0.7
apple shop B 1/1/2006 1/2/2006 1
apple shop B 1/3/2006 3/28/2006 0.6


thanks




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max
 
Posts: n/a
Default Lookup Value

Assuming the source data is in sheet: X, cols A to E, within rows 1 - 10

and in sheet: Y,
you have the set-up in row1 down, cols A to C:

apple shop A 2/15/2006 ??? < ---- (to be returned as 0.5)
apple shop B 3/27/2006 ??? < ---- (to be returned as 0.6)


Put in D1, array-enter (press CTRL+SHIFT+ENTER):
=INDEX(X!$E$1:$E$10,MATCH(1,(X!$A$1:$A$10=A1)*(X!$ B$1:$B$10=B1)*(C1=X!$C$1:$C$10)*(C1<=X!$D$1:$D$10 ),0))
Copy D1 down

Adapt to suit ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Catherine" wrote:

Hi,

I would like to see any excel formula (vlookup/ index & match) can help to
return the desired value:


See below -




Lookup table:
A B C D E
apple shop A 1/1/2006 2/28/2006 0.5
apple shop A 3/1/2006 5/30/2006 0.7
apple shop B 1/1/2006 1/2/2006 1
apple shop B 1/3/2006 3/28/2006 0.6


thanks




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
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup Function Problem seve Excel Discussion (Misc queries) 9 February 28th 05 02:46 AM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 05:12 PM.

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

About Us

"It's about Microsoft Excel"