Excel can pull data directly from websites, which saves time compared with copying and pasting tables by hand. This is useful for prices, schedules, public datasets, product lists, and other information that appears on a webpage in a structured format.
The exact steps depend on your version of Excel and on how the website is built, but the built-in web import tools in modern Excel can usually handle most common cases without any extra add-ins.
What Excel Can Import From the Web
Excel works best with web pages that contain clear tables or lists. It can often detect those automatically and turn them into editable worksheet data.
- HTML tables on public web pages
- Lists of records, such as directories or product listings
- Data feeds or pages with simple, structured layout
- Pages that can be reached with a normal URL and do not require unusual sign-in steps
Import Web Data in Modern Excel
In recent versions of Excel for Windows, the easiest method is usually the Power Query web import feature.
- Open Excel and create a new workbook or open the workbook where you want the data to appear.
- Go to the Data tab.
- Choose Get Data, then select From Other Sources or From Web, depending on your version of Excel.
- Paste the webpage URL into the box and confirm.
- If Excel asks for authentication, choose the correct sign-in method or select Anonymous if the page is public and does not require login.
- When the Navigator window appears, select the table or list you want to import.
- Preview the data, then choose Load to place it into a worksheet or Transform Data if you want to clean it first.
Use Transform Data When the Table Needs Cleaning
If the imported data includes extra headers, blank rows, merged-looking columns, or repeated text, choose Transform Data instead of loading it immediately. That opens Power Query, where you can clean the data before it reaches the worksheet.
- Remove unwanted rows at the top of the import
- Keep only the columns you need
- Split combined values into separate columns
- Change text to numbers, dates, or other proper data types
- Filter out rows you do not want
Refresh the Imported Data Later
One of the biggest advantages of importing from the web is that the query can often be refreshed later. If the website changes, you can update the worksheet without starting over.
- Click anywhere inside the imported table.
- Go to the Data tab.
- Select Refresh All or Refresh.
- Wait for Excel to fetch the latest version of the webpage and update the query.
Import Data From a Web Page Using Older Excel Versions
Older versions of Excel may still support web imports, but the menu names and workflow can be different. In some cases, you may see options such as From Web under the Data tab or a legacy import wizard.
- Use the Data tab and look for From Web or Get External Data
- Enter the page URL in the connection dialog
- Select the table you want from the available web tables
- Choose where the data should be placed in the workbook
Common Problems and How to Fix Them
If Excel does not import the data you expected, the issue is usually with the structure of the webpage rather than Excel itself.
- The page uses JavaScript to load content after the page opens, which Excel may not capture properly
- The data is inside a sign-in protected area
- The webpage has several tables and Excel selected the wrong one
- The table layout is irregular, with merged cells or unusual formatting
- The site blocks automated access or changes layout frequently
- Try the page again using the full, exact URL of the page that contains the data.
- Look for a simpler page or an alternate source, such as a downloadable CSV or spreadsheet.
- Choose Transform Data and inspect the query if the table imported partially or incorrectly.
- If the site requires login, make sure your credentials are entered through Excel's authentication prompt.
- If the site blocks access, check whether the publisher offers a public data export instead.
Best Practices for Working With Web Imports
A few habits make web-based Excel imports much easier to manage over time.
- Import only from trusted websites
- Verify the data source before using it in reports
- Keep the source URL documented in the workbook notes or query name
- Clean and format the data after import, not before
- Refresh the query only when you know the source page still uses the same layout
When to Use a Different Method
Web import is not always the best choice. If the website offers a CSV, Excel file, or API, those options are often more stable and easier to maintain than scraping a page directly.
- Use a CSV or Excel download when available
- Use an API for structured, repeatable data collection
- Use web import when the data only exists on a webpage and is reasonably well organized
A Simple Workflow to Follow
If you want the quickest path from a webpage to a usable spreadsheet, this order usually works best:
- Check whether the website offers a direct download first.
- If not, open Excel and start a From Web import.
- Select the correct table in Navigator.
- Use Transform Data if the page needs cleanup.
- Load the result into the worksheet.
- Refresh the query whenever you need updated data.