Reputation: 21
Is there a way that I can get a FALSE from an if statement testing if one cell is equal to the other
Example table for the test:
Thanks,
Joe
Upvotes: 0
Views: 1515
Reputation: 1
Yes, excel has an ISBLANK function that returns TRUE if a cell is blank. In your case, you could write your formula like this:
=IF(AND(A2=B2, NOT(ISBLANK(B2))), "Match", "No match")
Upvotes: 0
Reputation: 152585
You can use EXACT, which will compare the string text and not the numbers:
=IF(EXACT(A2,B2),"Match","No Match")
Upvotes: 1