formula not working

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to compare two columns of data to find identical data, i'm using
the formula below and when it is supposed to be same it says different, in
some areas the formula works right in others it doesn't. any ideas on what
the problem is

IF(A1=B1,"SAME","DIFFERENT")

thanks for the help
 
Depends what the data is. Could it be a real number compared to a text
number ? Or maybe trailing spaces. Depends how you get the data.

Regards

Trevor
 
See if this works:

=IF(LOWER(TRIM(A2)) = LOWER(TRIM(B2)), "Same", "Different")
 
I am trying to compare two columns of data to find identical data, i'm using
the formula below and when it is supposed to be same it says different, in
some areas the formula works right in others it doesn't. any ideas on what
the problem is

IF(A1=B1,"SAME","DIFFERENT")

thanks for the help

In the instances where the formula returns "DIFFERENT", A1 is not the same as
B1.

Without access to your data, it is impossible to say further. Possibilities
include text vs number; non-printing characters; trailing spaces; etc.
--ron
 
That formula disregards case and leading or trailing spaces. So be careful
how you use it. You might want to know if there are spaces in a cell since
they have a value in computer speak. If you want to capture those
differences, then eliminate the TRIM portion of the formula.
 
One more thing. Be sure you have your range formatted the same for text and
numbers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top