PC Review


Reply
Thread Tools Rate Thread

copy and paste data from website

 
 
Brian
Guest
Posts: n/a
 
      3rd Mar 2007
I need to copy and paste large quantity of text and numerical data
(currency) from a website into an excel worksheet. When I paste the data
into the excel worksheet, the columns have leading spaces and the column
with the numerical data has leading spaces so it is not recognized at a
number and will not calculate when I add a formula to add the sum of the
column IE: =SUM(B5:I5). I have to manually go into each cell and remove the
leading spaces and the $ from the number of each cell and then the formula
will sum the totals of the referenced cells. It is like the value in the
cells $45.61 etc.. are not recognized as a number until I remove the
leading spaces and the dollar sign. The data that I ap copying from the
website is center justified so the formatting from the website is causing
problems when I paste.


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      3rd Mar 2007
Hi Brian

You don't have to edit manually. Use the TRIM, CLEAN and SUBSITUTE functions to clean the data automatically.
There may be non-breaking spaces in the numbers: they can be removed with David McRitchie's TRIMALL function:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Brian" <(E-Mail Removed)> wrote in message news:2p8Gh.1502$(E-Mail Removed)...
|I need to copy and paste large quantity of text and numerical data
| (currency) from a website into an excel worksheet. When I paste the data
| into the excel worksheet, the columns have leading spaces and the column
| with the numerical data has leading spaces so it is not recognized at a
| number and will not calculate when I add a formula to add the sum of the
| column IE: =SUM(B5:I5). I have to manually go into each cell and remove the
| leading spaces and the $ from the number of each cell and then the formula
| will sum the totals of the referenced cells. It is like the value in the
| cells $45.61 etc.. are not recognized as a number until I remove the
| leading spaces and the dollar sign. The data that I ap copying from the
| website is center justified so the formatting from the website is causing
| problems when I paste.
|
|


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I copy a website page and paste into powerpoint? remjop Microsoft Powerpoint 2 16th May 2010 05:36 PM
Macro to Copy data from e-mail and paste it into a field on a website joebobcletusjr Microsoft Excel Programming 0 16th Feb 2005 05:19 PM
Copy and Paste from e-mail or website =?Utf-8?B?Zm9jdXNwdWxsZXI=?= Microsoft Word Document Management 5 14th Nov 2004 04:30 AM
click on Url used to open website, now have to copy URL and paste. =?Utf-8?B?Ym5jMTIx?= Microsoft Outlook Discussion 3 14th Oct 2004 06:16 PM
click on Url used to open website, now have to copy URL and paste. =?Utf-8?B?Ym5jMTIx?= Microsoft Outlook Discussion 1 12th Oct 2004 07:11 PM


Features
 

Advertising
 

Newsgroups
 


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