sparky2205
Well-known Member
- Joined
- Feb 6, 2013
- Messages
- 507
- Office Version
- 365
- 2016
- Platform
- Windows
Hi folks,
I have 2 pieces of data that are both amalgamations of data from other sheets on the same workbook in the following way: =A1&"/"&B1&"/"&C1
The data is:
A1 FOC01/FOCAL POINT/C and B1 FOC01/Focal Point /C
The difference being the extra space in B1
This is just a sample of the data. There are a couple of hundred lines.
What I am trying to achieve:
Compare both columns of data for differences in the data but ignore spaces and case.
What I've done:
=SUBSTITUTE(A1,CHAR(32),"")=SUBSTITUTE(B1,CHAR(32),"")
Basically remove the spaces and compare what's left. But it always returns FALSE.
I've checked and that extra space is definitely Char(32)
But I've also tried:
=SUBSTITUTE(A1,CHAR(160),"")=SUBSTITUTE(B1,CHAR(160),"") - same result i.e. FALSE
TRIM does not work and all data is formatted as General.
Any ideas?
I have 2 pieces of data that are both amalgamations of data from other sheets on the same workbook in the following way: =A1&"/"&B1&"/"&C1
The data is:
A1 FOC01/FOCAL POINT/C and B1 FOC01/Focal Point /C
The difference being the extra space in B1
This is just a sample of the data. There are a couple of hundred lines.
What I am trying to achieve:
Compare both columns of data for differences in the data but ignore spaces and case.
What I've done:
=SUBSTITUTE(A1,CHAR(32),"")=SUBSTITUTE(B1,CHAR(32),"")
Basically remove the spaces and compare what's left. But it always returns FALSE.
I've checked and that extra space is definitely Char(32)
But I've also tried:
=SUBSTITUTE(A1,CHAR(160),"")=SUBSTITUTE(B1,CHAR(160),"") - same result i.e. FALSE
TRIM does not work and all data is formatted as General.
Any ideas?