0
Thanks

A few words of thanks would be greatly appreciated.

Excel - IF is error with 2 cells match



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.
0
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
This document, titled « Excel - IF is error with 2 cells match », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).

0 Comments