Removing spaces from middle of cell

T

TJAC

In my spreadsheet there is a column that contains number, 3 on the left,
space, 3 on the right. I want to remove that space. Rather than doing this
in three steps, taking left, then taking right, then joining those together,
is there an easier way to accomplish the same thing.

It currently looks like this 216 123
I want it to be this 216123

I'm sure there is an easier way, but I only know how in three steps.

Thanks!
 
M

Mike H

Hi,

One way is to use the formula below in a helper column and then copy the
helper column and paste special|Values back over the original data. you can
then delete the helper column

=SUBSTITUTE(A1," ","")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 
R

Ron Rosenfeld

In my spreadsheet there is a column that contains number, 3 on the left,
space, 3 on the right. I want to remove that space. Rather than doing this
in three steps, taking left, then taking right, then joining those together,
is there an easier way to accomplish the same thing.

It currently looks like this 216 123
I want it to be this 216123

I'm sure there is an easier way, but I only know how in three steps.

Thanks!

Another way would be to use FIND/REPLACE
Find what: <space>
Replace with: "just leave this blank"

--ron
 
T

TJAC

Much easier and faster than mine. Thank you!

Mike H said:
Hi,

One way is to use the formula below in a helper column and then copy the
helper column and paste special|Values back over the original data. you can
then delete the helper column

=SUBSTITUTE(A1," ","")
--
Mike

When competing hypotheses are otherwise equal, adopt the hypothesis that
introduces the fewest assumptions while still sufficiently answering the
question.
 

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