#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8
Default Function =Trim()

I've been using Trim to delete extra spaces from fields that contain imported
data. Today I tried to use it on data that I'd copied from a webpage and
inserted into a spreadsheet, but it wouldn't take off the blanks after the
numbers. Am I mis-using the function? These were numbers that I'd copied as
a bulk which 'self-segregated' into individual cells. I then re-copied them
changing from colums to rows using Paste-Special. Then I tried to use Trim,
but it had no effect. I needed to remove the spaces so that I could divide
the numbers by 100.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Function =Trim()

copied from a webpage

More than likely, these are not standard char 32 space characters but are
html non-breaking space characters, char 160. TRIM/CLEAN will not remove
them.

Instead of using a formula on every cell I recommend you try this macro and
do it in bulk. I copy/paste stuff from the web every day and have to deal
with this.

There is a macro at this link that will remove these char 160 space
characters:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Biff
Microsoft Excel MVP


"Dowitch" wrote in message
...
I've been using Trim to delete extra spaces from fields that contain
imported
data. Today I tried to use it on data that I'd copied from a webpage and
inserted into a spreadsheet, but it wouldn't take off the blanks after the
numbers. Am I mis-using the function? These were numbers that I'd copied
as
a bulk which 'self-segregated' into individual cells. I then re-copied
them
changing from colums to rows using Paste-Special. Then I tried to use
Trim,
but it had no effect. I needed to remove the spaces so that I could
divide
the numbers by 100.



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 function exalan New Users to Excel 6 February 16th 09 04:21 AM
TRIM function Chimelle Excel Worksheet Functions 5 March 6th 08 09:45 PM
Trim Function Saxman[_2_] Excel Discussion (Misc queries) 7 August 2nd 07 01:20 AM
TRIM function fitou_learn[_2_] New Users to Excel 2 June 12th 07 11:06 AM
Trim Function Steved Excel Worksheet Functions 5 August 4th 05 11:06 PM


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