#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Spaces in cells

When I copy and paste information from a website to excel - the data that I
have copied from the website was center justified so spaces are copied. One
of the columns of data is currency so the $12.50 has three spaces before the
$. I cannot apply any formatting to the cells with the spaces in there.
When I delete the spaces everything is fine and my colums total correctly.
I want to remove all leading spaces form all cells in the worksheet.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Spaces in cells

See this:

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

If you're copy/pasting from the web those spaces may not be standard char 32
spaces. They may be char 160 spaces.

The macro at the above link will take care of both. If you copy/paste alot
from the web this macro is a real time saver. I have it attached to a button
and is on one of my toolbars.

Biff

"Brian" wrote in message
...
When I copy and paste information from a website to excel - the data that
I have copied from the website was center justified so spaces are copied.
One of the columns of data is currency so the $12.50 has three spaces
before the $. I cannot apply any formatting to the cells with the spaces
in there. When I delete the spaces everything is fine and my colums total
correctly. I want to remove all leading spaces form all cells in the
worksheet.



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
need to paste link from 4 vertical cells to 4 horizontal cells? cioangel Excel Discussion (Misc queries) 6 June 8th 09 06:44 PM
how do i protect cells in a shared worksheet Debi Excel Discussion (Misc queries) 3 September 30th 05 11:15 PM
requires that merged cells must be identically sized? Catt Excel Discussion (Misc queries) 11 July 3rd 05 12:36 PM
Help adding text values Texas-DC_271 Excel Worksheet Functions 7 January 15th 05 11:14 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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