Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Dear Folks,
I have a scenario , where i need to perform cleansing on an excel column.
I believe Location columns contain spaces in it , but when i perform trim, purgechar operations. It fails to remove the spaces.
Have attached the sample files.
Regards,
Vasim
HI
Try like this
KeepChar(Trim(Location),'ABCDEFGHIJKLMNOPQRSTUVWXYZ') as Location,
Use PurgeChar(Location, chr(32) & chr(160))
In location files, sometimes it is used the ascii 160 as space.
As said by Juan, this is because of non-breaking space character represented by ascii 160. So the following should work for you:
Purgechar(Location, chr(160)) as NewLocation.
Thanks a lot mayil, juan and tresesco.
I managed to get rid of non breaking space by using Purgechar(Location, chr(160)).