Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dyt
 
Posts: n/a
Default Excel TRIM() can't handle   in pasted HTML

Has anyone seen this kind of misbehavior?

1. Create a table in HTML like:
<table<tr
<td align="right" nowrap214,074&nbsp;</td
<td align="right" nowrap55,859&nbsp;</td
<td align="right" nowrap26.09&nbsp;</td
<td align="right" nowrap267,102&nbsp;</td
<td align="right" nowrap71,365&nbsp;</td
<td align="right" nowrap26.72&nbsp;</td
</tr</table
(this is actually created by a very silly application
we bought)

2. Display it in your favorite browser
3. Copy it into an Excel spreadsheet
4. try to trim() or value() any of the values to get a
number. Doesn't work! What works is '=value(a1,len(a1)-
1)

!!!!



  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

=substitute(a1,CHAR(160),"")

--

HTH

RP
(remove nothere from the email address if mailing direct)


"dyt" wrote in message
...
Has anyone seen this kind of misbehavior?

1. Create a table in HTML like:
<table<tr
<td align="right" nowrap214,074&nbsp;</td
<td align="right" nowrap55,859&nbsp;</td
<td align="right" nowrap26.09&nbsp;</td
<td align="right" nowrap267,102&nbsp;</td
<td align="right" nowrap71,365&nbsp;</td
<td align="right" nowrap26.72&nbsp;</td
</tr</table
(this is actually created by a very silly application
we bought)

2. Display it in your favorite browser
3. Copy it into an Excel spreadsheet
4. try to trim() or value() any of the values to get a
number. Doesn't work! What works is '=value(a1,len(a1)-
1)

!!!!





  #3   Report Post  
Fredrik Wahlgren
 
Posts: n/a
Default


"dyt" wrote in message
...
Has anyone seen this kind of misbehavior?

1. Create a table in HTML like:
<table<tr
<td align="right" nowrap214,074&nbsp;</td
<td align="right" nowrap55,859&nbsp;</td
<td align="right" nowrap26.09&nbsp;</td
<td align="right" nowrap267,102&nbsp;</td
<td align="right" nowrap71,365&nbsp;</td
<td align="right" nowrap26.72&nbsp;</td
</tr</table
(this is actually created by a very silly application
we bought)

2. Display it in your favorite browser
3. Copy it into an Excel spreadsheet
4. try to trim() or value() any of the values to get a
number. Doesn't work! What works is '=value(a1,len(a1)-
1)

!!!!


Why not simply open the html page in notepad and do a find and replace on
&nbsp?

/Fredrik


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
How do I isolate my Excel server (automation) from other Excel instances? Joseph Geretz Excel Discussion (Misc queries) 5 July 19th 13 03:18 PM
Using Excel to analyze HTML GreggRoberts Excel Discussion (Misc queries) 2 January 1st 05 04:41 PM
VB Automation is Whacking out my Excel Environment Joseph Geretz Excel Discussion (Misc queries) 2 December 29th 04 03:49 PM
HTML to Excel Billing Goddess Excel Discussion (Misc queries) 5 December 10th 04 05:11 PM
excel CSV is interpreted as HTML MikeDb Excel Discussion (Misc queries) 6 December 10th 04 10:35 AM


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