ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   how can i work on information copied off the web on a worksheet? (https://www.excelbanter.com/excel-worksheet-functions/226468-how-can-i-work-information-copied-off-web-worksheet.html)

jyu

how can i work on information copied off the web on a worksheet?
 
Copied and pasted bank statements online to a worksheet and can't get the sum
functions to work. Excel doesn't recognize the characters. It either sums
up 0 or gets an error.

Dave Peterson

how can i work on information copied off the web on a worksheet?
 
Lots of times, when you copy|paste from a web site, you'll get those HTML
non-breaking spaces (char(160)).

You can clean them up with formulas, but if you have to do it lots of times (or
with lots of data), you may want to use a macro.

David McRitchie has a macro that can help clean this:
http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros:

Debra Dalgleish has some notes how to implement macros he
http://www.contextures.com/xlvba01.html

David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm

(General, Regular and Standard modules all describe the same thing.)

jyu wrote:

Copied and pasted bank statements online to a worksheet and can't get the sum
functions to work. Excel doesn't recognize the characters. It either sums
up 0 or gets an error.


--

Dave Peterson


All times are GMT +1. The time now is 08:30 AM.

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