My sheet's colunm B has text with some extra comma's. I want to know how to remove them?
What I have:
What result I want:Please Login or Register to view this content.
Please Login or Register to view this content.
My sheet's colunm B has text with some extra comma's. I want to know how to remove them?
What I have:
What result I want:Please Login or Register to view this content.
Please Login or Register to view this content.
Hi,
This might do the job for you.
=SUBSTITUTE(TRIM(SUBSTITUTE(B1,","," "))," ",",")
Rule 1: Never merge cells
Rule 2: See rule 1
"Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".
in col c put
=TRIM(SUBSTITUTE(SUBSTITUTE(TRIM(SUBSTITUTE(SUBSTITUTE(B1," ","^"),","," "))," ",","),"^"," ")) fill down
then copy paste back special values
the above formula retains existing spaces
eg
,,,,,,Apple,,Orange box ,,, becomes
Apple,Orange box
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks