#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Spacing

i have about 300 fields in 1 column and there is a space
before most words that doesn't allow me to sort the
column properly as the words with spaces before them are
shown first and then it starts with the alphabets A-Z. Is
there a way to get rid of the spaces infron of the words
collectivelly rather then wasting time to do it 1 by 1.
Thankyou
Hasan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Spacing

=trim(a1) gets rid of spaces before and after the contents of a1.
If there are otherwise no spaces in your cells, just do a find/replace. Find
a space and replace with nothing. Replace all.
<-*-<-*-<-*-<-*-<-*-<-*-<-*-<-*-
Hope this helps!
Anne Troy (better known as Dreamboat)
Web: www.VBAExpress.com
<-*-<-*-<-*-<-*-<-*-<-*-<-*-<-*-
"Hasan" wrote in message
...
i have about 300 fields in 1 column and there is a space
before most words that doesn't allow me to sort the
column properly as the words with spaces before them are
shown first and then it starts with the alphabets A-Z. Is
there a way to get rid of the spaces infron of the words
collectivelly rather then wasting time to do it 1 by 1.
Thankyou
Hasan



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Spacing

Thanks alot mate it works a treat.
-----Original Message-----
=trim(a1) gets rid of spaces before and after the

contents of a1.
If there are otherwise no spaces in your cells, just do

a find/replace. Find
a space and replace with nothing. Replace all.
<-*-<-*-<-*-<-*-<-*-<-*-<-*-<-*-
Hope this helps!
Anne Troy (better known as Dreamboat)
Web: www.VBAExpress.com
<-*-<-*-<-*-<-*-<-*-<-*-<-*-<-*-
"Hasan" wrote in

message
...
i have about 300 fields in 1 column and there is a

space
before most words that doesn't allow me to sort the
column properly as the words with spaces before them

are
shown first and then it starts with the alphabets A-Z.

Is
there a way to get rid of the spaces infron of the

words
collectivelly rather then wasting time to do it 1 by 1.
Thankyou
Hasan



.

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
Spacing between characters FJ Excel Discussion (Misc queries) 5 May 23rd 07 02:44 AM
Spacing problems Heine Excel Worksheet Functions 7 March 6th 07 03:13 PM
CELL SPACING scsobgyn Excel Discussion (Misc queries) 1 September 13th 06 05:24 PM
Common spacing RAJEEV CHADHA Excel Worksheet Functions 0 April 26th 05 01:29 PM
SPACING RAJEEV CHADHA Excel Worksheet Functions 5 April 18th 05 02:11 PM


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