Getting a bunch of quotation marks in my data (HTML) when I copy it from Excel to other programs.

greenmonster15

Board Regular
Joined
Aug 28, 2012
Messages
70
I have webpage html source code save in a .txt file from IE.
I'm opening up the .txt in excel in order to extract the information I need.
Everything looks fine until I copy and paste the data into Word, or Notepad.

I get a bunch of quotation marks all over the place. An I opening up the .txt incorrectly somehow in Excel or do I need to write a script to remove all these buggers?

Sample from Excel:

<p align="left"><span class="body"></span></p>
</td>
</tr>
</table>
</div>
<div align="left">
<table border="0" cellpadding="0" cellspacing="0" width="450" class="body">
<tr><td class="Cat_Title">
</td></tr>
<tr>
<td valign="top">

<colgroup><col width="64" style="width: 48pt;"></colgroup><tbody>
</tbody>

Sample after pasted:

</p>
" <p align=""left""><span class=""body""></span></p>"
" </td>"
" </tr>"
" </table>"
" </div>"
" "
" <div align=""left"">"


<table border="0" cellpadding="0" cellspacing="0" width="450" class="body">


<tr><td class="Cat_Title">


</td></tr>


" "
" <tr>"
" <td valign=""top"">"
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
I was able to use =CLEAN() in order to remove all of these and then do a PasteSpecial to paste back only the Values to the original cells. Hope this helps someone else!
 
Upvote 0
I was able to use =CLEAN() in order to remove all of these and then do a PasteSpecial to paste back only the Values to the original cells. Hope this helps someone else!

That's interesting - it implies they were not really quotes (as CLEAN doesn't remove quotes AFAIK). Thanks for posting back with your solution!
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,264
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top