Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Removing Single Spaces

Is it possible to remove single spaces from a line?
eg a UPC
1 22222 33333 1
to
122222333331
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Removing Single Spaces

On Mon, 24 Nov 2008 13:12:07 -0800, kris
wrote:

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
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Removing Single Spaces

=SUBSTITUTE(A1," ","")

Or Edit/ Replace/ space/ replace with/ nothing
--
David Biddulph

"kris" wrote in message
...
Is it possible to remove single spaces from a line?
eg a UPC
1 22222 33333 1
to
122222333331



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 73
Default Removing Single Spaces

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


"kris" wrote:

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

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 128
Default Removing Single Spaces

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

"Ron Rosenfeld" wrote:

On Mon, 24 Nov 2008 13:12:07 -0800, kris
wrote:

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



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default Removing Single Spaces

On Mon, 24 Nov 2008 13:42:01 -0800, kris
wrote:

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
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
Removing Spaces In Cells Chris Excel Worksheet Functions 9 May 29th 08 05:45 PM
Removing Spaces Gary Excel Discussion (Misc queries) 15 January 9th 08 01:14 PM
removing all spaces jamesea Excel Discussion (Misc queries) 4 May 27th 07 02:18 PM
removing spaces Claus Massmann Excel Discussion (Misc queries) 12 March 30th 06 02:23 AM
Copy column range of "single word" cells with spaces to a single c nastech Excel Discussion (Misc queries) 3 February 15th 06 05:04 PM


All times are GMT +1. The time now is 11:57 PM.

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

About Us

"It's about Microsoft Excel"