Here is a case that might not prove anything more than the idiocy of how Microsoft developers are instructed to spend their efforts to improve Excel. I am trying to copy a table of data from
this web page into excel 2007. Here are the various methods I used, of which none have worked satisfactorily. Yes, these are football statistics for a weekend project I'm screwing around with. The point is still the same regardless of the type of data.
- I tried manual copy and paste, which looked nice at first, but the cells were all HTML formatted and numbers could not be used in formulas.
- I tried copy and paste special, but HTML formatting could not be removed, so numbers were still not being treated as numbers. There was no longer a Paste Values option, just some Unicode/HTML stuff that didn't seem to do anything.
- I tried to import the data, using Data > From Web. This seemed like quite a useful tool. I entered the URL from the above hyperlink. Clicked on the arrow next to the main table on that page. Clicked Import. Clicked Properties.
a) Tried it with "Preserve Cell Formatting" both checked and unchecked and onto the current worksheet with the sheet's cells preformatted to Text. The pre-formatting vanished. All columns containing hyphen separated numbers within date-like range still
came across as dates, i.e. 2-2 is now 2-Feb. There was no "Wizard" to force items to text on the way in.
b) Tried with "Preserve Cell Formatting" both checked and unchecked and onto a new worksheet. Same problem.
- I tried manually copying and pasting into a text file, then saved as a .csv file. I opened with Excel. All the data showed up in the first column, so I selected it, used Data > Text to Columns with Tab delimiting to arrange it into columns, but with
Text pre-formatting in the "Wizard." Guess what? This worked. It was quite a pain to do this for all the different web pages I was interested in extracting data from though. This solution is flat out not practical for larger web queries.
It's unfortunate that Microsoft spent the money and effort developing this "From Web" interfacing option to extract online tables directly into Excel, and I can't use it because of Excel's draconian auto-formatting rule. Instead I was 1 for 4, 1-4, or
maybe I should say 4-Jan, copying and pasting into text files and finding awkward, time-consuming work arounds that might not be sufficient next time around.
There's always Open Office.