#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default TRIM

How do I Trim extra space in a column?
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 14
Default TRIM

Move your mouse up near the column header, on the right side. When it changes
into the <-|- symbol, double click, and Excel will auto-size your column
for you.
--
Best Regards,

Luke Moraga


"s99drf" wrote:

How do I Trim extra space in a column?

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 11,501
Default TRIM

=trim(a1) and drag down

"s99drf" wrote:

How do I Trim extra space in a column?

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 22,906
Default TRIM

Without entering a formula and copying down, try a macro to TRIM the entire
column in place.

Sub TRIM_EXTRA_SPACES()
Dim cell As Range
For Each cell In Selection
If (Not IsEmpty(cell)) And _
Not IsNumeric(cell.Value) And _
InStr(cell.Formula, "=") = 0 _
Then cell.Value = Application.Trim(cell.Value)
Next
End Sub


Gord Dibben MS Excel MVP

On Fri, 27 Apr 2007 06:38:10 -0700, s99drf
wrote:

How do I Trim extra space in a column?


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
Trim if? John Excel Worksheet Functions 6 June 26th 06 04:44 PM
Trim and Mid with VBA Jeff Excel Discussion (Misc queries) 1 April 19th 06 05:24 PM
Trim stapleton2308 Excel Discussion (Misc queries) 4 February 15th 06 06:09 PM
Trim help please Dave New Users to Excel 8 September 1st 05 07:18 PM
trim geza Excel Worksheet Functions 2 June 8th 05 07:03 PM


All times are GMT +1. The time now is 05:09 AM.

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"