remove space

C

capreecorn

How can i remove single space between two values by putting formula ie 2 2
into 22.
 
S

Shane Devenshire

hi,

first if you use SUBSTITUTE the cell contains a text entry and you say value.

second to remove trailing and leading spaces use:

=TRIM(A1)

It also removes extra spaces between characters (extra being more than 1)

In both case your results are text, to change them to values the easiest way
is to

=--TRIM(A1)
or
=--SUBSTITUTE(A1," ","")

You can combine both of these

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

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