Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default deleting space in cell behind text

I have a list over data of over 2000 rows per worksheet.
Now I have to sort this data.
However, because in a large number of the cells which are used to sort the
data, behind the text is "space", these rows are not being sorted.
How can the space in the cell behind the text be deleted all at once.
So it does not have to be deleted one cell at the time.
to note: the space behind the text is not present in all the cells.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default deleting space in cell behind text

Put this in a helper column:

=TRIM(A1)

and copy down - this will remove all leading and trailing spaces, as
well as multiple spaces between words. Then highlight the column,
click <copy then Edit | Paste Special | Values (check) | OK then
<Esc. This will have fixed the values, so that you can now copy them
over the original values and delete the helper column.

Sometimes, though, those "spaces" are the non-breaking space character
(160) which TRIM doesn't work on, so to get rid of those highlight the
column, then CTRL-H (Find & Replace) and:

Find what: ALT-0160
Replace with: leave blank
Replace All

ALT-0160 means to hold the Alt key down and type 0160 on the numeric
keypad.

Hope this helps.

Pete

On May 15, 12:41*pm, RickJB wrote:
I have a list over data of over 2000 rows per worksheet.
Now I have to sort this data.
However, because in a large number of the cells which are used to sort the
data, behind the text is "space", these rows are not being sorted.
How can the space in the cell behind the text be deleted all at once.
So it does not have to be deleted one cell at the time.
to note: the space behind the text is not present in all the cells.


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 a space infront of text in a cell? GAC Excel Discussion (Misc queries) 7 October 10th 06 01:41 AM
deleting unused space at the end of a worksheet beckyz Excel Worksheet Functions 3 October 9th 06 08:21 PM
Location of space in a text in a cell Rasoul Khoshravan Excel Worksheet Functions 1 October 1st 06 10:01 AM
Deleting a space between a group of Numbers & Letters in a cell Melissa New Users to Excel 6 May 1st 06 01:35 PM
Function to remove a space from text in cell WITHOUT macro?? [email protected] Excel Worksheet Functions 5 May 28th 05 02:28 AM


All times are GMT +1. The time now is 11:18 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"