How do I remove spaces

  • Thread starter Thread starter lovebaby
  • Start date Start date
L

lovebaby

I have data as such - (space)number(space)

How do I remove the spaces via a formula or macro?

I have 40,000 entries so I would rather not do it manually.

thanks
 
Hi

If you have all your entries in one column, use the TRIM function. Let's
say you have your data in Col A, then in Col B enter the formula = TRIM(A1).
That will remove the spaces, but leave your numbers as text, not numbers
 
For some reason, Trim does not work!
Kassie said:
Hi

If you have all your entries in one column, use the TRIM function. Let's
say you have your data in Col A, then in Col B enter the formula =
TRIM(A1).
That will remove the spaces, but leave your numbers as text, not numbers
 
try this

=VALUE(TRIM(CLEAN(A1)))


try this you may succeed

=VALUE(TRIM(CLEAN(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

Back
Top