Pasting HTML Columns into Spreadsheet - html

Suppose you have a webpage that is displaying data in columns. I'm currently separating them using &nbsp - just to put a nice little white gap in between them. But if you do it this way and paste it into Excel or OOSpreadsheet it will put them all in one column.
Is there a way to format the HTML in such a way that will allow a space to exist in a browser AND can be pasted directly into a spreadsheet?

Use tables. And if the URL is not protected, using IE you can export any table to Excel directly.

Use divs or tables.

Put a tab break between the columns. The browser will not render whitespace if it's not inside <pre> tags:
Foo \tBar \tEtc
That should make excel behave. Of course, you do not have to write \t, you can just press the TAB key :)
For some reason, I have noticed that even this might not work, but if you paste the data first into Notepad and then into Excel, it will format properly. Beats me.

Have you thought about embedding a google or zoho spreadsheet? You can then just download the excel file.

Related

HTML form with fields & values: issue when copying into Microsoft Word

I have an issue when I copy a HTML form from the Web and paste it into Microsoft Word. When I try to paste it, the form fields don't appear in Word, neither the fields, nor the values. The field appears like a box with a red "x" inside.
In other PCs, I donĀ“t have this problem. I copy and paste HTML forms from the Web into a Word document. When I save those "correct" documents and open them in the first PC, the one with the issue, they can be opened without any trouble. But if I paste the form directly in MS Word, the issue appears.
Any idea ... thank you!!!

Simulate an Excel worksheet on HTML page

I am working on a page where visitors need to copy-paste hundreds of rows from an Excel spreadsheet on to the page. The easier way to do it is to display a text area and parse the different columns.
But is there a way to display something like a spreadsheet? That will be more user friendly. I tried CKEditor for an option like this, but it doesn't appear to exist.
You can display a excel spreedsheet in asp code either c# or vb.
Try this link for displaying Spreedsheets,
Displaying Spreedsheet on webpage

Tabs are converted to column breaks... unless those tabs are copied from a web browser

Tabs are converted to column breaks when pasted into most spreadsheet programs... but not when those tabs are copied from a web browser. What's going on here?
Steps to reproduce:
Copy some tab-delimited data (example) from a browser into your clipboard
Open a Google Sheet
Click once on any cell
Paste the contents of your clipboard
Expected result:
The tabs are converted to column breaks. Pieces of text that were separated by tabs now reside in their own cells.
Actual results:
The tabs are not converted to column breaks. All text is pasted into one cell.
However... and this is where things get weird... if the tab-delimited data is first copied into a textarea (example), and then that same tab-delimited data is copied from the textarea into a Google Sheet, the tabs are converted to column breaks as expected.
Very strange indeed. Can anyone offer insight into why this happens?
Insight, yes. An explanation of why this feature has been broken for years, even with the "New Sheets"? Sorry, no.
The tab-delimited text from the pastebin example appears in the Windows clipboard like this, in "49407: HTML Format":
Contrast this with the text copied from a textarea (or a text editor; I tried the same with wordpad), which is plain "1: CF_TEXT" format:
Since there is no option to "paste as plain text" into Sheets, the HTML version of the clipboard is used (when there is one). That's nice if the HTML includes formatting that might be retained - but isn't so handy in this case.

How to grab a column from a web browser

In a .txt file, I can hold down the "Option" button and select one or more columns.
Is there an equivalent for grabbing column information on a web page?
I am currently copying-and-pasting the website material into a .txt file, and then started to wonder if that step could be eliminated.
I'm not sure if I understand the question, but maybe this information will help anyways.
If you are just looking for a client tool, the following should be helpful (in chrome): https://chrome.google.com/webstore/detail/columncopy/lapbbfoohlcmlbdaakldmmallcbcbpjb
If you are looking to add a copy button to a web page that will copy text maybe the following will help How to create "Copy" button?
Good luck!
If it's data in an HTML <table> you can copy it and paste it into an Excel file. That should make it a lot easier to grab by columns.

Disable Auto HTML Parsing in Excel 2007

I'm trying to paste some HTML code into Excel. I have a SQL query that generates HTML and inserts image and text at certain points. I then need to paste this into a single field in Excel 2007.
The problem is that Excel automatically parses the HTML and displays a full on web page, complete with styles and pictures. It also tries to spread everything over several rows and columns. This is no good, and I'd like to turn the feature off. I just need it in plain text, no formatting. I've tried paste special, formatting the cells beforehand and searching Excel options, but came up with nothing.
I've searched the net but have found surprisingly little information on the issue. Any ideas?
Thanks