Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
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 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
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 "CM" wrote in message ... 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 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
See if this works:
=IF(LOWER(TRIM(A2)) = LOWER(TRIM(B2)), "Same", "Different") "CM" wrote: 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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
On Tue, 6 Nov 2007 14:41:02 -0800, CM wrote:
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 |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
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. "CM" wrote: 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 |
#6
Posted to microsoft.public.excel.programming
|
|||
|
|||
formula not working
One more thing. Be sure you have your range formatted the same for text and
numbers. "CM" wrote: 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 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IF formula not working | Excel Worksheet Functions | |||
A formula not working as the result of a previous formula? | Excel Discussion (Misc queries) | |||
IF OR formula not working | Excel Discussion (Misc queries) | |||
Formula not working | Excel Discussion (Misc queries) | |||
Formula not working for me now | Excel Worksheet Functions |