Removing Single Spaces

K

kris

Is it possible to remove single spaces from a line?
eg a UPC
1 22222 33333 1
to
122222333331
 
R

Ron Rosenfeld

Is it possible to remove single spaces from a line?
eg a UPC
1 22222 33333 1
to
122222333331

=substitute(A1," ","")

or use the Edit/Find & Replace menu option, putting a <space> in the Find box,
and nothing in the Replace box.
--ron
 
P

porter444

Do you have cases where you want to keep multiple spaces?

If not, I'd use the following approach:

1. Select the range you want to eliminate the spaces from (ex: column A)
2. Choose "Edit", "Replace"
3. Enter a single space in the "Replace What" box, and leave "Replace With"
blank.
4. Click replace all.

--
If my posting was helpful, please click the "Yes" button.

ROCK ON!,

Scott
 
K

kris

Cheers Ron,

I knew about the substitute function but (and still cannot get it to work),
but the find/replace does the trick.

You just saved me alot of time.

Thanks again
 
R

Ron Rosenfeld

Cheers Ron,

I knew about the substitute function but (and still cannot get it to work),
but the find/replace does the trick.

You just saved me alot of time.

Thanks again

Glad to help. Although I'm surprised about the SUBSTITUTE function not working
for you.
--ron
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top