Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
ALoecher
 
Posts: n/a
Default Macro Question

I am a new Excel user and I am having some trouble. I split a column of data
seperated by semicolons into several columns. Now I have a bunch of cells
with a leading space and it is screwing things up when i try to sort
alphabetically. How can i create a macro do delete the leading space in cells
that have such a space??
  #2   Report Post  
Posted to microsoft.public.excel.newusers
Gary''s Student
 
Posts: n/a
Default Macro Question

The TRIM() function will do exactly what you want
--
Gary''s Student


"ALoecher" wrote:

I am a new Excel user and I am having some trouble. I split a column of data
seperated by semicolons into several columns. Now I have a bunch of cells
with a leading space and it is screwing things up when i try to sort
alphabetically. How can i create a macro do delete the leading space in cells
that have such a space??

  #3   Report Post  
Posted to microsoft.public.excel.newusers
ALoecher
 
Posts: n/a
Default Macro Question

I feel dumb but I cannot figure out how to automate the TRIM function to get
rid if the spaces in all the cells

"Gary''s Student" wrote:

The TRIM() function will do exactly what you want
--
Gary''s Student


"ALoecher" wrote:

I am a new Excel user and I am having some trouble. I split a column of data
seperated by semicolons into several columns. Now I have a bunch of cells
with a leading space and it is screwing things up when i try to sort
alphabetically. How can i create a macro do delete the leading space in cells
that have such a space??

  #4   Report Post  
Posted to microsoft.public.excel.newusers
Bob Phillips
 
Posts: n/a
Default Macro Question

Select them all and Find and Replace, Ctrl-H, and replace " " with nothing

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"ALoecher" wrote in message
...
I feel dumb but I cannot figure out how to automate the TRIM function to

get
rid if the spaces in all the cells

"Gary''s Student" wrote:

The TRIM() function will do exactly what you want
--
Gary''s Student


"ALoecher" wrote:

I am a new Excel user and I am having some trouble. I split a column

of data
seperated by semicolons into several columns. Now I have a bunch of

cells
with a leading space and it is screwing things up when i try to sort
alphabetically. How can i create a macro do delete the leading space

in cells
that have such a space??



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
Quick Macro question - How to delete two rows then skip one - and repeat David Smithz Excel Discussion (Misc queries) 3 March 3rd 06 02:58 PM
Excel Macro Question billrl34 Excel Worksheet Functions 1 December 19th 05 10:38 PM
using a macro question revisited Adam Kroger Excel Discussion (Misc queries) 4 December 16th 05 03:37 PM
Excel Macro Question about Conditional Formatting David Britton via OfficeKB.com New Users to Excel 3 February 10th 05 02:23 PM
Attn: Dave P. Question re Pix Calls via Macro DocuMike Excel Discussion (Misc queries) 1 January 10th 05 01:38 AM


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