Good afternoon, I'm having trouble with data I have been sent as I need to find an exact match in Column A but am being defeated by what appear to be leading and trailing spaces. So I started off with:
I did some research and then tried:
If I try to manually delete these "spaces" directly, in the formula bar, they still appear to be present but the final letters in the cell are removed instead. It's really weird because just trying to highlight these "spaces" appears to encroach on the next adjacent letter.
If I change the cell format Text direction from "Context" to "Left-to-Right" it appears to lose the trailing spaces. And the leading spaces if I choose "Right-to-Left".
If I search on Column A by just copying the cell and not by copying the contents of that cell, the Find box displays:
Copying the contents of the cell gives:
I have managed to replace " Prompted awareness" with "Prompted awareness" but I'd really like to find a fix for this in case it occurs with other entries. Has anyone seen this before?
Many thanks,
D€$
Code:
=TRIM(A1)
I did some research and then tried:
Code:
=TRIM(SUBSTITUTE(A1,(CHAR(160)),""))
If I try to manually delete these "spaces" directly, in the formula bar, they still appear to be present but the final letters in the cell are removed instead. It's really weird because just trying to highlight these "spaces" appears to encroach on the next adjacent letter.
If I change the cell format Text direction from "Context" to "Left-to-Right" it appears to lose the trailing spaces. And the leading spaces if I choose "Right-to-Left".
If I search on Column A by just copying the cell and not by copying the contents of that cell, the Find box displays:
" Prompted awareness"
Copying the contents of the cell gives:
Prompted awareness
I have managed to replace " Prompted awareness" with "Prompted awareness" but I'd really like to find a fix for this in case it occurs with other entries. Has anyone seen this before?
Many thanks,
D€$