View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Using the If function for text

Are there are leading trailing spaces. Try

=IF(TRIM(A1)=TRIM(B1),...

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"ranwadischool" wrote in message
...
I am having trouble with the if function for comparing two cells with the
same text. The function will not recognize the two cells as the same text
and sends back false than true. Does anyone knows why this is happening.
Thanks