Convert HTML file to Excel or CSV


  1. Posts : 394
    Home Premium 64 bit
       #1

    Convert HTML file to Excel or CSV


    Hi there! Can anyone direct me to a way to convert HTML files to Excel or CSV, freeware o ron-line? Please!

    Here's a short example of the files' contents
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    
    -<CRC>
    
    
    +<Sample Number="0">
    
    
    -<Sample Number="1">
    
    <Time>20/03/2014 11:02:42</Time>
    
    <Downstream>0.0</Downstream>
    
    <Upstream>0.0</Upstream>
    
    <DrawBlank>False</DrawBlank>
    
    </Sample>
    
    
    -<Sample Number="2">
    
    <Time>20/03/2014 11:03:42</Time>
    
    <Downstream>0.0</Downstream>
    
    <Upstream>0.0</Upstream>
    
    <DrawBlank>False</DrawBlank>
    
    </Sample>
    
    
    -<Sample Number="3">
    
    <Time>20/03/2014 11:04:42</Time>
    
    <Downstream>0.0</Downstream>
    
    <Upstream>0.0</Upstream>
    
    <DrawBlank>False</DrawBlank>
    
    </Sample>
    
    
    -<Sample Number="4">
    
    <Time>20/03/2014 11:05:42</Time>
    
    <Downstream>0.0</Downstream>
    
    <Upstream>0.0</Upstream>
    
    <DrawBlank>False</DrawBlank>
      My Computer


  2. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #2

    Rename file


    On my machine all that's required is to rename a copy of the .html file with the .csv extension.

    I say a "copy" so that you're not changing the properties of the original file!

    Default software for reading html files on my machine is Cyberfox 64 bit.

    Default software for reading csv files on my machine is SoftMaker FreeOffice (Planmaker)

    I have other browsers and office suites that can handle the same files!
    .
      My Computer


  3. Posts : 394
    Home Premium 64 bit
    Thread Starter
       #3

    OOps! I meant xml files! Does that make a difference? Also not sure how to alter file extension!
      My Computer


  4. Posts : 4,776
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #4

    Rename a file's extension


    rundwald said:
    OOps! I meant xml files! Does that make a difference? Also not sure how to alter file extension!
    The same works for xml files on my machine/

    First you need to have file extensions shown (if they are not already set to be shown). Here's how:

    File Extensions - Hide or Show

    Then make a copy of your .xml file and rename the copy.

    Let's suppose that the original is named test.xml - right click the file and choose rename then delete everything after the dot and replace xml with csv so the new file will be named test.csv

    Open the new file with your office program that can handle csv files - usually your spreadheet application.

    If you're lucky enough to see a preview window try different options until you get the display details that you require.

    Convert HTML file to Excel or CSV-text-import.jpg
    Last edited by Callender; 23 Mar 2014 at 14:37. Reason: change text
      My Computer


  5. Posts : 394
    Home Premium 64 bit
    Thread Starter
       #5

    I tried the advised method, but the output was such that it could not be set in columns e.g. date, time, downsstrem
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <CRC>
      <Sample Number="0">
        <Time>22/03/2014 08:46:19</Time>
        <Downstream>1.0</Downstream>
    
    
        <Upstream>0.0</Upstream>
        <DrawBlank>False</DrawBlank>
      </Sample>
      <Sample Number="1">
        <Time>22/03/2014 08:47:19</Time>
        <Downstream>0.0</Downstream>
        <Upstream>0.0</Upstream>
        <DrawBlank>False</DrawBlank>
    Finally I found an online converter, that produced columnar output as text, so all is OK now.
      My Computer


  6. Posts : 3
    Windows 7 Ultimate x64
       #6

    i think the discontinued MS expression web can handle that (i think the installer is still available )
    all you need to do is save the html to xml then right click to see if your xml is well formed if it... then save it and open the file to excel
    Last edited by sffaospark; 25 Mar 2014 at 22:03. Reason: corrections
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 15:31.
Find Us