Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default How do I delete spaces that follows data

I have an Excel spreadsheet containing numerous columns/rows of data. I want
to remove any spaces that follow the data. For example in column A2 the word
Marianne is followed with spaces. Each row varies in the length
of text and the spaces that follow. I tried using =CLEAN(Sheet1!A2) but that
didn't work when I pasted special value back into the field. Please help!
Thank you. Susan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default How do I delete spaces that follows data

Try the trim function:
=Trim(Sheet1!A2)
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"ILoveMyCorgi" wrote:

I have an Excel spreadsheet containing numerous columns/rows of data. I want
to remove any spaces that follow the data. For example in column A2 the word
Marianne is followed with spaces. Each row varies in the length
of text and the spaces that follow. I tried using =CLEAN(Sheet1!A2) but that
didn't work when I pasted special value back into the field. Please help!
Thank you. Susan

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 55
Default How do I delete spaces that follows data

Thank you! You've made my weekend. Have a good one yourself. Susan

"Michael Arch" wrote:

Try the trim function:
=Trim(Sheet1!A2)
--
If this posting was helpful, please click on the Yes button.
Regards,

Michael Arch.




"ILoveMyCorgi" wrote:

I have an Excel spreadsheet containing numerous columns/rows of data. I want
to remove any spaces that follow the data. For example in column A2 the word
Marianne is followed with spaces. Each row varies in the length
of text and the spaces that follow. I tried using =CLEAN(Sheet1!A2) but that
didn't work when I pasted special value back into the field. Please help!
Thank you. Susan

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default How do I delete spaces that follows data

You could try:

Select the column
Data|text to columns (in xl2003 menus)
Fixed width
Remove any lines that excel guessed and don't add any of your own.
and plop the results in the original range.

ILoveMyCorgi wrote:

I have an Excel spreadsheet containing numerous columns/rows of data. I want
to remove any spaces that follow the data. For example in column A2 the word
Marianne is followed with spaces. Each row varies in the length
of text and the spaces that follow. I tried using =CLEAN(Sheet1!A2) but that
didn't work when I pasted special value back into the field. Please help!
Thank you. Susan


--

Dave Peterson
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
Delete spaces rexmann Excel Discussion (Misc queries) 4 March 7th 08 02:38 PM
delete spaces abugoli Excel Programming 4 June 27th 07 09:06 AM
how do I delete the last two spaces in a cell brantty Excel Discussion (Misc queries) 2 July 27th 06 01:14 AM
DELETE SPACES In part Juan Excel Programming 2 February 24th 06 10:55 PM
delete spaces CHARI Excel Worksheet Functions 2 September 9th 05 10:38 AM


All times are GMT +1. The time now is 06:00 AM.

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"