Pasted HTML Table Data Won't Convert From Text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

When copying a table from a webpage, the numeric data pastes into Excel as
text. Normally, I can easily convert "text digits" by simply clicking in each
cell (as if to edit) or doing a search/replace, looking for one character (a
common digit, decimal point) and replacing it with the same. That method
isn't working with the HTML-originated data, which refuses to convert itself
unless it's re-typed.

What is it about this data type that makes it so stubborn?

TIA
 
It's common for ranges pasted from web pages to contain HTML non-breaking
spaces.

Try this to remove them:
Select the range of "numbers"
<Edit><Replace>
Find What: [Alt]+0160 <-Hold down [Alt]…type 0160…release [Alt]
Replace with: (leave this blank)
Click [Replace All]

Does that help?
***********
Regards,
Ron

XL2002, WinXP
 
I just discovered the spaces before seeing your answer, and wondered why they
were invulnerable to automatic deletion with a find/replace command.
Thanks,works like a charm!

Ron Coderre said:
It's common for ranges pasted from web pages to contain HTML non-breaking
spaces.

Try this to remove them:
Select the range of "numbers"
<Edit><Replace>
Find What: [Alt]+0160 <-Hold down [Alt]…type 0160…release [Alt]
Replace with: (leave this blank)
Click [Replace All]

Does that help?
***********
Regards,
Ron

XL2002, WinXP


Eric said:
When copying a table from a webpage, the numeric data pastes into Excel as
text. Normally, I can easily convert "text digits" by simply clicking in each
cell (as if to edit) or doing a search/replace, looking for one character (a
common digit, decimal point) and replacing it with the same. That method
isn't working with the HTML-originated data, which refuses to convert itself
unless it's re-typed.

What is it about this data type that makes it so stubborn?

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top