TRIM

Tyre

Board Regular
Joined
Feb 17, 2002
Messages
79
is there a way to apply TRIM to a whole column instead of cell by cell?
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
On 2002-02-19 06:22, Tyre wrote:
is there a way to apply TRIM to a whole column instead of cell by cell?
What are you trying to do? How about using Data|TextToColumns and specifying Fixed Length for you data type? You could then trim off what you want.
 
Upvote 0
thanks that worked
what I was doing was trying to sort data from 2 sheets (combined into one)
1 sheet (I think was converted from Lotus123), and tho the data looked the same, it acted like there were preceedign spaces in the one column of data. I know TRIM applied to the data in the cell will eliminate the problem, but I had 1000 cells to trim.
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,695
Members
448,979
Latest member
DET4492

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top