I have to import an .xls file which is saved as .*htm, .*html. I attached a link which provides a sample file of that format.
The Actual first row of the table starts from row number 5. But there are data above it.
The file looks as below,
The sample file.
But please make sure to include some rows on top of it with some test values and make it look like the screenshot above.
if there are no rows above it, then the following M Code provided by Alexis Olson works
let
Source = Folder.Files("C:\Users\aolson\Downloads\example-html.xls"),
#"Filtered Rows" = Table.SelectRows(Source, each ([Extension] = ".xls")),
#"C:\Users\aolson\Downloads\example-html xls\_example-html xls" = #"Filtered Rows"{[#"Folder Path"="C:\Users\aolson\Downloads\example-html.xls\",Name="example-html.xls"]}[Content],
#"Imported Excel" = Web.Page(#"C:\Users\aolson\Downloads\example-html xls\_example-html xls"){0}[Data]
in
#"Imported Excel"
When I add rows on top of the sample and click on save in excel - it gives me a warning whether, I want to continue with the same format then I click on "YES".
I tried to play with the children table on the Query Editor. But it is not taking me anywhere.
Source = Table cannot be found inside it at all.
Excel.Workbook
(instead ofWeb.Page
) worked for me until I tried adding text to cell B3 too, in which case it broke. – Alexis Olson