I have three columns:
E: ContainsL
F: ContainsR
G: Match
ContainsL:
=MATCH("*"&LEFT(B2,5)&"*",C2,0)
ContainsR:
=MATCH("*"&RIGHT(B2,5)&"*",C2,0)
Match:
=IF(E2+F2=2,"Yes", IF(E2+F2=1,"Yes","No"))
-----------------------------------------------------
ContainsL and ContainsR returns either a "1" or "#N/A"
I would like the Match column to read Yes IF the sum of ContainsL and ContainsR equals EITHER 1 or 2, No if it does not, but the #N/A value complicates this.
To get around the #N/A issue I know that I should be using the IF(ISNA(F2),"Yes","No")) (or something similar) formula but I'm not sure how to nest it properly.
Please help.
Thanks.
E: ContainsL
F: ContainsR
G: Match
ContainsL:
=MATCH("*"&LEFT(B2,5)&"*",C2,0)
ContainsR:
=MATCH("*"&RIGHT(B2,5)&"*",C2,0)
Match:
=IF(E2+F2=2,"Yes", IF(E2+F2=1,"Yes","No"))
-----------------------------------------------------
ContainsL and ContainsR returns either a "1" or "#N/A"
I would like the Match column to read Yes IF the sum of ContainsL and ContainsR equals EITHER 1 or 2, No if it does not, but the #N/A value complicates this.
To get around the #N/A issue I know that I should be using the IF(ISNA(F2),"Yes","No")) (or something similar) formula but I'm not sure how to nest it properly.
Please help.
Thanks.