logo
search
Power Query Problems

How to Fix Excel Power Query Importing Google Sheets as HTML

Khadija KhanKhadija Khan Oct 15, 2026 871 views

Question details

The user wants to import data from a Google Sheet into Excel 2021 using Power Query but receives an HTML page instead of the actual data table.

How to Fix Excel Power Query Importing Google Sheets as HTML
Product
Microsoft Excel 2021
Device & OS
not provided
Scenario
Importing a shared Google Sheets web link into Excel via the From Web Power Query feature.
Observed behavior
Excel imports the Google Sheets web page interface as an HTML document rather than extracting the raw spreadsheet data.
Before you start

Ensure you have the exact sharing link for your Google Sheet and that its permissions are set to 'Anyone with the link' so Excel can access the data without requiring a Google login.

Solution 1Recommended

Use the Google Sheets Export URL Format

Changing the standard Google Sheets sharing link into a direct .xlsx export URL forces Power Query to read the file as a spreadsheet rather than a web page.

By default, Google Sheets URLs point to a web interface. Power Query reads this as an HTML webpage. By modifying the link to point to an export format, you bypass the web interface and allow Power Query to download and transform the raw Excel-compatible data directly.

1
Share the Google Sheet

Open your Google Sheet, click 'Share' in the top right corner, and change the general access setting to 'Anyone with the link'.

2
Identify the Spreadsheet ID

Copy the sharing link. Look at the URL and find the SPREADSHEET_ID, which is the long string of letters and numbers located between '/d/' and '/edit'.

3
Create the Export URL

Construct a new URL using this exact format: https://docs.google.com/spreadsheets/d/SPREADSHEET_ID/export?format=xlsx (replace SPREADSHEET_ID with the code you found in the previous step).

4
Import into Excel

Open Excel 2021, navigate to the 'Data' tab on the ribbon, and select 'From Web' in the Get & Transform Data group.

5
Load the Data

Paste your newly created export URL into the dialog box and click 'OK'. Power Query will now connect directly to the workbook data instead of an HTML page.

Use the Google Sheets Export URL Format
Connection Established: Using the export URL ensures Power Query connects directly to the spreadsheet data table, making it easy to refresh and transform your data seamlessly.
Free Microsoft Office alternative

Try WPS Office for Seamless Spreadsheet Management

If you frequently encounter complex data connection errors or find Excel's advanced features difficult to navigate, WPS Office offers a free, lightweight alternative. The WPS Spreadsheet tool provides an intuitive interface that makes managing, viewing, and organizing data simpler without the steep learning curve.

Fully compatible with Microsoft Excel formats including .xlsx, .xls, and .csv.Lightweight installation with fast startup times and low memory usage.Free to use with a familiar, easy-to-navigate tabbed user interface.Seamless migration of your existing spreadsheets with no formatting loss.
microsoft office alternative - wps office

Frequently Asked Questions

Why does Excel 'From Web' show an HTML table instead of my Google Sheets data?

When you use a standard Google Sheets viewing link, Excel connects to the web page wrapper (the HTML interface) rather than the raw data file. Modifying the URL to an export format bypasses the HTML wrapper and delivers the actual spreadsheet file.

Do I need to make my Google Sheet public to import it into Excel?

Yes, the sharing settings must be set to 'Anyone with the link' can view. If the sheet is restricted, Power Query will not be able to authenticate automatically and will fail to fetch the data.

Can I use this export URL method to auto-update data in Excel?

Yes. Once the connection is established using the .xlsx export URL, you can simply click 'Refresh All' on the Data tab in Excel to pull the latest updates directly from your Google Sheet.