I need to compare two strings in excel and determine if they are equal, the strings are in adjacent cells. For example, given:

apple   apple
water   water
pear    carrot
apple   water
dog     dog
pear    carrot

the formula on the third column should give me:

true
true
false
false
true
false

Any help appreciated, Ted

link|improve this question

53% accept rate
feedback

2 Answers

If case is not important, =A1=B1. If case matters, =IF(A1=B1,"true","false").

link|improve this answer
feedback

use the built in 'exact' function which is exact-ly for this purpose. =exact(A1, B1)

will return true if the strings are identical.

link|improve this answer
I never noticed that equals was case insensitve before. Thanks. – Kevin Manning May 16 '11 at 12:48
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.