Retrieve Data from a Password-Protected Web Page in Excel
Question details
The user needs to retrieve data from a password-protected web page in Excel without allowing unauthorized people to read it.

- 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.
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.
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.
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.
In Excel, select Data > Get Data > From Other Sources > From Web. Menu names can vary by version.
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.
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.
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.

Get help with unsupported website authentication
Use this option if the site requires a login flow, cookies, or headers that Excel cannot handle directly.
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.

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.




