Excel - IF is error with 2 cells match

Ask a question


Issue


If I have 2 cell that i need to match to 2 array row and print "W" or "L" if both of the cell match.

This is what i have

=IF(ISERROR(MATCH(C13&D13,8:8&9:9,0)),"W","L") 


example C13: Mike
D13: 9

Row 8 is name, if Mike is there and Row 9 is age, if age match print "W".

But my formula only seems to compared the first match.

Solution


Instead of
=IF(ISERROR(MATCH(C13&D13,8:8&9:9,0)),"W","L") 


try
=IF(MATCH(C13,8:8,FALSE)=MATCH(D13,9:9,FALSE),"W","L") 

Note


Thanks to Excelguru for this tip on the forum.
Jean-François Pillou

CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jeff Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.

Learn more about the CCM team

Related