S
SGT Buckeye
=INDEX(B1:B10,
IF(ISNUMBER(MATCH(C1,A1:A10,0)),MATCH(C1,A1:A10,0),
1+MATCH(C1,A1:A10,1)))
I put my table in A1:B10, the value to lookup in C1.
I found this formula in another post. I entered some data into these
cells to see if it worked and it worked perfectly. The credit goes to
Dave Peterson, not me. I am trying to modify this formula to look up
a value that is dependent on multiple criteria. On the worksheet that
contains the formula, a person's sex is in cell C4, age in cell D4,
and run time in cell I4. It will need to look in a range (cell
A1:U141) called "2MI DATA" on a separate worksheet called 2 Mile Run.
In the following sample of the "2MI DATA" below, "AGE" is in cell a1.
AGE 17-21 17-21 22-26 22-26 27-31 27-31
Time M F M F M F
12:48 100 100 100 100 100 100
12:54 100 100 100 100 100 100
13:00 100 100 100 100 100 100
13:06 99 100 99 100 100 100
13:12 97 100 98 100 100 100
13:18 96 100 97 100 100 100
13:24 94 100 96 100 99 100
13:30 93 100 94 100 98 100
Can the match/index formula above be modified to do the following:
For a 20 year old male who runs 13:26, the formula should return a
value of 93.
Thanks for any help you can provide.
IF(ISNUMBER(MATCH(C1,A1:A10,0)),MATCH(C1,A1:A10,0),
1+MATCH(C1,A1:A10,1)))
I put my table in A1:B10, the value to lookup in C1.
I found this formula in another post. I entered some data into these
cells to see if it worked and it worked perfectly. The credit goes to
Dave Peterson, not me. I am trying to modify this formula to look up
a value that is dependent on multiple criteria. On the worksheet that
contains the formula, a person's sex is in cell C4, age in cell D4,
and run time in cell I4. It will need to look in a range (cell
A1:U141) called "2MI DATA" on a separate worksheet called 2 Mile Run.
In the following sample of the "2MI DATA" below, "AGE" is in cell a1.
AGE 17-21 17-21 22-26 22-26 27-31 27-31
Time M F M F M F
12:48 100 100 100 100 100 100
12:54 100 100 100 100 100 100
13:00 100 100 100 100 100 100
13:06 99 100 99 100 100 100
13:12 97 100 98 100 100 100
13:18 96 100 97 100 100 100
13:24 94 100 96 100 99 100
13:30 93 100 94 100 98 100
Can the match/index formula above be modified to do the following:
For a 20 year old male who runs 13:26, the formula should return a
value of 93.
Thanks for any help you can provide.