Hi,
How do I remove the spaces around a character. If A1 contains " B " I would like to create a formula in c1 so that it would remove the spaces around the "B". Please help Thanks.
Hi,
How do I remove the spaces around a character. If A1 contains " B " I would like to create a formula in c1 so that it would remove the spaces around the "B". Please help Thanks.
There are several options
If there are no other spaces in your range, highlight the range and do a search and replace on blanks.
If you want initial and final blanks removed, in another cell/column tryTRIM removes excess blanks and CLEAN removes unprintable characters (which are often mistaken for blanks by the user).Please Login or Register to view this content.
Then you can paste special>values back on top of the original cells
ChemistB
janjan_376,
I'm the 2nd mod today to move one of your threads to the correct forum. Please do read the rules below as I have requested (when you duplicate posted) as next time you may find the thread locked.
VBA Noob
_________________________________________
Credo Elvem ipsum etian vivere
_________________________________________
A message for cross posters
Please remember to wrap code.
Forum Rules
Please add to your signature if you found this link helpful. Excel links !!!
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks