Data Import & Export

Retrieve Data from a Password-Protected Web Page in Excel

Amos GikundaAmos Gikunda Nov 22, 2026 868 views

Question details

The user needs to retrieve data from a password-protected web page in Excel without allowing unauthorized people to read it.

Retrieve Data from a Password-Protected Web Page in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Import web data from a site that may use a login form, cookies, or custom request headers.
Observed behavior
Excel may be unable to retrieve the HTML data when the website requires authentication that its web connector cannot handle.
Before you start

Ask the website owner whether a secure data endpoint is available and which authentication method it supports. Confirm that your Excel version has the Get Data or From Web connector.

Solution 1Recommended

Import data from a supported secure endpoint

Use this approach when the website owner can provide an authorized endpoint that Excel can access.

A browser login form or session cookie may not work with Excel's web connector. A supported endpoint can provide the same data without making it publicly accessible.

1
Request an endpoint

Ask the website owner for a secure URL, the required authentication method, and permission to access the data. Do not ask for confidential results to be made public.

2
Open the web connector

In Excel, select Data > Get Data > From Other Sources > From Web. Menu names can vary by version.

3
Enter the secure URL

Paste the endpoint URL into the From Web dialog and select OK. If the endpoint requires custom headers, check whether the Advanced option supports the required request.

4
Authenticate and load

Choose a supported authentication method in the credentials dialog, enter your authorized credentials, and select Connect. In Navigator or Power Query, select the returned data and choose Load or Close & Load.

5
Refresh when needed

Select Data > Refresh All to request updated data. If authentication or the request fails, ask the website owner whether the endpoint supports Excel's connector.

Import data from a supported secure endpoint
Keep imported data confidential: Once loaded, the data can be stored in the workbook and read by people who have access to it. Restrict access to the file and, where available, use File > Info > Protect Workbook > Encrypt with Password.
Free Microsoft Office alternative

Work with exported web data in WPS Spreadsheets

WPS Office is a free, lightweight alternative with a familiar interface for opening and working with spreadsheet exports. It can help you move existing files between office suites, but it does not resolve Excel's website authentication limitations.

Open and analyze authorized spreadsheet data exportsCompatible with Microsoft Excel formats such as XLSX and XLSFamiliar spreadsheet interface for an easier transitionFree and lightweight office suite
microsoft office alternative - wps office

Frequently Asked Questions

Why can't Excel retrieve data after I sign in through my browser?

The website may rely on a login form or browser session cookie that Excel's web connector cannot use. Ask the site owner for an endpoint with an authentication method supported by Excel.

Can I keep the source data private while importing it?

Yes. Use an access-controlled endpoint or export rather than publishing the data. Also restrict access to the resulting workbook, because imported data may be stored in the file.

Where can I change saved web credentials in Excel?

In versions with Power Query, open Data > Get Data > Data Source Settings, select the relevant source, and use Edit Permissions or Clear Permissions. Menu names may vary by version.

What if the website has no endpoint that Excel supports?

Ask the website owner or IT team for a secure API or access-controlled CSV export. You can also describe the authentication issue in Microsoft Q&A without sharing credentials or confidential data.