sksanjeev786
Well-known Member
- Joined
- Aug 5, 2020
- Messages
- 1,004
- Office Version
- 365
- 2016
- Platform
- Windows
I pasted this into a blank sheet and it works fine.Hi Team
I have written the Trim function in both the cell still getting false
book1
H I J K L M 22 AFAM W2TF v1 15s AFAM W2TF v1 15s FALSE Sheet2
Cell Formulas Range Formula M22 M22 =TRIM(H22)=TRIM(J22)
Yes! this is only 1 extra space so I have written the Trim so technically it should work.Works fine here, maybe you have non breaking spaces in that string --> char(160)
=search(char(160),H22)
but i am not able to perform the True condition for both data if it sameYes but the Trim function will not remove "non-breaking spaces"
A space is char(32)
Non breaking space is char(160)
so if it machtes with this formula, it is present
Excel Formula:=search(char(160),H22)
=TRIM(SUBSTITUTE(H22,CHAR(160),""))=TRIM(SUBSTITUTE(J22,CHAR(160),""))