PC Review


Reply
Thread Tools Rate Thread

Adding third lookup value to index/match

 
 
J.W. Aldridge
Guest
Posts: n/a
 
      3rd Oct 2007
I understand how Index/Match works with double lookups... But I cant
quite get the third lookup down.

Looking to add a third lookup value and range to this formula (range
z)

=INDEX(table, MATCH(x,range x,0), MATCH(y,range y,1))

Data is laid out like so... (Vertical column range is x)

A B C D E F G H
1 range yyyyyyyyyyyyyy ->
2 range zzzzzzzzzzzzzz ->
x
x
x
x
x
x


any suggestions...?

 
Reply With Quote
 
 
 
 
T. Valko
Guest
Posts: n/a
 
      3rd Oct 2007
How does the 3rd range relate?

Need more specific details.

--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I understand how Index/Match works with double lookups... But I cant
> quite get the third lookup down.
>
> Looking to add a third lookup value and range to this formula (range
> z)
>
> =INDEX(table, MATCH(x,range x,0), MATCH(y,range y,1))
>
> Data is laid out like so... (Vertical column range is x)
>
> A B C D E F G H
> 1 range yyyyyyyyyyyyyy ->
> 2 range zzzzzzzzzzzzzz ->
> x
> x
> x
> x
> x
> x
>
>
> any suggestions...?
>



 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      4th Oct 2007
Thanx...!

The first range will be x (vertical). (contains 4 letter codes)
The first range will be y (horizontal) (contains dates).
The first range will be z (horizontal) (contains times)




 
Reply With Quote
 
T. Valko
Guest
Posts: n/a
 
      4th Oct 2007
Ok, so you probably want a specific time for a specific date.

What does the setup look like? Can you post a sceencap?

Is there a different date in every cell in range Y? What about the times in
range Z?

How are the times associated with a date?

This should be no problem but I can't suggest something without knowing how
the data is setup.


--
Biff
Microsoft Excel MVP


"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanx...!
>
> The first range will be x (vertical). (contains 4 letter codes)
> The first range will be y (horizontal) (contains dates).
> The first range will be z (horizontal) (contains times)
>
>
>
>



 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      4th Oct 2007
X Search value is = FRUIT (cell g20)
Y Search value is = 09:00 (cell g21)
Z Search value is = Oct-4 (cell g22)

Desired result = 16

Need to add criteria and range z.

=INDEX(table, MATCH(x,range x,0), MATCH(y,range y,1))


Table starts with cell A1.

B C
D E
A1 08:00 09:00 10:00
11:00
A2 Oct-4 Oct-4 Oct-3
Oct-3
APPLES 10 20 30 40
BANANAS 20 30 40 50
CHERRIES 60 70 80 90
DUNG 91 92 93
94
EGGPLANT 11 12 13 14
FRUIT 15 16 17
18
GRAPES 19 20 21
22

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      4th Oct 2007
This works for me

=INDEX(A1:I20,MATCH("fruit",A1:A20,0),MATCH(1,(A1:I1=TIME(9,0,0))*(A2:I2=DATE(2007,10,4)),0))


change the cell references accordingly to fit your size

It needs to be entered with ctrl + shift & enter


--


Regards,


Peo Sjoblom



"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>X Search value is = FRUIT (cell g20)
> Y Search value is = 09:00 (cell g21)
> Z Search value is = Oct-4 (cell g22)
>
> Desired result = 16
>
> Need to add criteria and range z.
>
> =INDEX(table, MATCH(x,range x,0), MATCH(y,range y,1))
>
>
> Table starts with cell A1.
>
> B C
> D E
> A1 08:00 09:00 10:00
> 11:00
> A2 Oct-4 Oct-4 Oct-3
> Oct-3
> APPLES 10 20 30 40
> BANANAS 20 30 40 50
> CHERRIES 60 70 80 90
> DUNG 91 92 93
> 94
> EGGPLANT 11 12 13 14
> FRUIT 15 16 17
> 18
> GRAPES 19 20 21
> 22
>



 
Reply With Quote
 
J.W. Aldridge
Guest
Posts: n/a
 
      4th Oct 2007
Thanx.

Since I have cell references for the criteria I am searching for,
could something like this work?

=INDEX(A1:E13,MATCH(K2,A1:A13,0),MATCH(1,(A1:E1=K3)*(B2:E2=K4),1))

 
Reply With Quote
 
Peo Sjoblom
Guest
Posts: n/a
 
      4th Oct 2007
Yes if you put those values in K2 - K4 and enter the formula with ctrl +
shift & enter it should work
If it doesn't then there is no match meaning that somehow what you put in K3
and K4 might differ. You can easily check that by direct comparison like
=K3=C1 where K3 holds 9:00 and presumably C1 does too. If it returns FALSE
you will need to find if the values in A1:E1 are text, do the same for
K4 and C2


--


Regards,


Peo Sjoblom



"J.W. Aldridge" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanx.
>
> Since I have cell references for the criteria I am searching for,
> could something like this work?
>
> =INDEX(A1:E13,MATCH(K2,A1:A13,0),MATCH(1,(A1:E1=K3)*(B2:E2=K4),1))
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
index match lookup =?Utf-8?B?cnBscDgx?= Microsoft Excel New Users 1 15th Nov 2006 08:23 PM
lookup/index/match - help! =?Utf-8?B?RWxsZW4gRy4=?= Microsoft Excel Misc 3 13th Feb 2006 09:10 PM
Lookup/Index/Match HELP! =?Utf-8?B?RWxsZW4gRy4=?= Microsoft Excel Misc 1 13th Feb 2006 03:15 PM
Re: Lookup / Index / Match Frank Kabel Microsoft Excel Worksheet Functions 2 1st Apr 2004 05:18 PM
Lookup/Index/Match help! Kirsty Microsoft Excel Worksheet Functions 1 28th Nov 2003 05:03 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:55 AM.