ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   TRIM (https://www.excelbanter.com/new-users-excel/140727-trim.html)

s99drf

TRIM
 
How do I Trim extra space in a column?

Luke Moraga

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?


Mike H

TRIM
 
=trim(a1) and drag down

"s99drf" wrote:

How do I Trim extra space in a column?


Gord Dibben

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?




All times are GMT +1. The time now is 03:40 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com