Remove trailing space

N

NusratRahman

I am comparing two names column(A&B) I using

=IF(A1=B1,0,1) or Exact(A1,B1) But in every case my
results comes false because even though the two coulms
have same value but their lenths are difference.

Q: How to remove trailing space to both coulm have same
lentgh.

Thanks.
 
P

Peo Sjoblom

Try

=IF(TRIM(A1)=TRIM(B1),0,1)

if that doesn't work then you don't have trailing spaces but most likely
trailing HTML characters
then try

=IF(SUBSTITUTE(TRIM(A1,CHAR(160),""))=SUBSTITUTE(TRIM(B1,CHAR(160),"")),0,1)
 

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

Top