# index/match formula problem in excel

the yellow coloured cell in t4 has a formula that should return the value from c4. it works for finish, but not for stop1, stop2 and stop3. any idea how to fix this? thanks!
time-trial-calculator.xls
###### Who is Participating?

Microsoft MVP ExcelCommented:
Since you apparently try to look up the value in the same row, you don't really need the first Match in the formula. A shorter alternative would be

=INDEX(\$A\$3:\$P\$333,ROW(A2),MATCH(\$R\$2,\$A\$3:\$P\$3,0)+1)

or

=INDEX(\$A4:\$P4,,MATCH(\$R\$2,\$A\$3:\$P\$3,0)+1)

cheers, teylyn
0

Commented:
The second MATCH function should have a zero as third argument - for an exact match - like this

=INDEX(\$A\$3:\$P\$333,MATCH(\$A4,\$A\$3:\$A\$333,0),MATCH(\$R\$2,\$A\$3:\$P\$3,0))

regards, barry

0

Author Commented:
thanks barry that looks much better. now it display value from b4, but it shou c4?
0

Microsoft MVP ExcelCommented:
Hello,

You are looking up the value for the column headed "Stop1", but going by the description of the expected result, you want one column to the right of that, so you will need to amend the second Match by 1

=INDEX(\$A\$3:\$P\$333,MATCH(\$A4,\$A\$3:\$A\$333,0),MATCH(\$R\$2,\$A\$3:\$P\$3,0)+1)

cheers, teylyn
0

Author Commented:
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.