Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
lovebaby
 
Posts: n/a
Default How do I remove spaces

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



  #2   Report Post  
Kassie
 
Posts: n/a
Default How do I remove spaces

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
--
ve_2nd_at. Stilfontein, Northwest, South Africa


"lovebaby" wrote:

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




  #3   Report Post  
lovebaby
 
Posts: n/a
Default How do I remove spaces

For some reason, Trim does not work!
"Kassie" wrote in message
...
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
--
ve_2nd_at. Stilfontein, Northwest, South
Africa


"lovebaby" wrote:

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






  #4   Report Post  
R.VENKATARAMAN
 
Posts: n/a
Default How do I remove spaces

try this

=VALUE(TRIM(CLEAN(A1)))


try this you may succeed

=VALUE(TRIM(CLEAN(A1)))





"lovebaby" wrote in message
.. .
For some reason, Trim does not work!
"Kassie" wrote in message
...
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
--
ve_2nd_at. Stilfontein, Northwest, South
Africa


"lovebaby" wrote:

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








  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default How do I remove spaces

Perhaps they are HTML non-breaking spaces. Try Dave McRitchie's TrimALL,
http://www.mvps.org/dmcritchie/excel/join.htm#trimall


--

HTH

RP
(remove nothere from the email address if mailing direct)


"lovebaby" wrote in message
. ..
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







Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I remove all spaces in a text string dn Excel Discussion (Misc queries) 3 April 2nd 23 07:20 PM
Remove spaces between words Heather Tavitian Excel Discussion (Misc queries) 2 October 1st 05 01:47 AM
how do I remove empty spaces trailing a text string? Need_Help Excel Worksheet Functions 2 June 7th 05 12:13 AM
How do you remove excess spaces from an Excel field? sarah_jane Excel Discussion (Misc queries) 1 June 1st 05 08:15 AM
remove spaces in text in excel GnarlyCar Excel Discussion (Misc queries) 3 February 1st 05 05:02 PM


All times are GMT +1. The time now is 07:30 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"