Hello,
I have a situation where I would normally use a combination of the INDEX and MATCH functions to look-up a value in a cell range along the lines of
For example, if I have the data,
, I can use a singe MATCH to find the weight of the horse on a certain date because all of the entries are for the horse. But if I have more than one kind of animal:
, then I need to specify a date and an animal. Is there a way to do this?
If possible, I would like to be able to keep the data in the columns separate (that is, not create a unique value by concatenating Animal and Date) and be able to separate the columns from being next to each other, too (like, have the animals in column A and the dates in column F).
To put it a different way, is it possible to use the INDEX and MATCH combination from the top, but find matches (to different values) in two or more columns first, and then find the match in the row? (I have attached a workbook with the example I used above.)
Thank you very much!
I have a situation where I would normally use a combination of the INDEX and MATCH functions to look-up a value in a cell range along the lines of
=INDEX(range, MATCH(some_value, column, 0), MATCH(another_value, row, 0))
The first MATCH returns the row number of its match and second MATCH returns the column letter of its own match. But my problem now is that, for the first MATCH, I want to use two MATCH functions.For example, if I have the data,
Code:
Animal Date Weight
Horse 1/1/2000 504.9
Horse 1/1/2001 511.9
Horse 1/1/2002 523.0
Horse 1/1/2003 556.1
Horse 1/1/2004 562.2
Horse 1/1/2005 570.0
Code:
Animal Date Weight
Fish 1/1/2000 1.1
Hippo 1/1/2000 1356.2
Horse 1/1/2000 504.9
Monkey 1/1/2000 23.7
Fish 1/1/2001 1.4
Hippo 1/1/2001 1401.1
Horse 1/1/2001 511.9
Monkey 1/1/2001 23.4
Fish 1/1/2002 1.3
Hippo 1/1/2002 1396.5
Horse 1/1/2002 523.0
Monkey 1/1/2002 24.8
Fish 1/1/2003 1.6
Hippo 1/1/2003 1389.7
Horse 1/1/2003 556.1
Monkey 1/1/2003 24.2
Fish 1/1/2004 2.1
Hippo 1/1/2004 1392.9
Horse 1/1/2004 562.2
Monkey 1/1/2004 24.2
Fish 1/1/2005 1.7
Hippo 1/1/2005 1407.6
Horse 1/1/2005 570.0
Monkey 1/1/2005 24.6
If possible, I would like to be able to keep the data in the columns separate (that is, not create a unique value by concatenating Animal and Date) and be able to separate the columns from being next to each other, too (like, have the animals in column A and the dates in column F).
To put it a different way, is it possible to use the INDEX and MATCH combination from the top, but find matches (to different values) in two or more columns first, and then find the match in the row? (I have attached a workbook with the example I used above.)
Thank you very much!