Question : How do I find a value in a third column based on a match between two other columns?

I suspect this is straightforward, but need some help nonetheless.  In the attached table the cells in column H can contain either "Yes" or "No".  There will only be one "Yes" in the H column.  I need to match that "Yes" with the corresponding value in the E column and if the value is "A" return the corresponding value in the F column, otherwise return "N/A".  In the attached table the function would return '5'.  My attempt, without using the 'IF' statement is in the result box. Thanks for any help.
 
 

Answer : How do I find a value in a third column based on a match between two other columns?

=IF(INDEX(E3:E12,MATCH("Yes",H3:H12,0))="A",INDEX(F3:F12,MATCH("Yes",H3:H12,0)),NA())

hth

Dave
Random Solutions  
 
programming4us programming4us