Extract Data from a Web Page into an Excel Spreadsheet

Published in: microsoft excel

Web Queries are simple but extremely powerful feature of Microsoft Excel that help you import live data from external websites into your Excel sheets - all you have to do is visually select portions of a web page in the browser and Excel will do the rest.

With Excel web queries, you can import information like Google search results, the latest CNN headlines, stock quotes, currency exchange rates or even monitor regular websites for changes.


Getting data from Web Pages into Excel

As shown in the figure above, click the “From Web” menu under Data -> Get External Data group. A new Web Query Dialog popus up - type the web URL here (see example for Google News below).

Click the Yellow Arrows next to the tables that would like to bring into Excel and Import.

You can do a similar thing using IE - just navigate to the web page that has the data and select “Export to Excel” from the Internet Explorer contextual menu.

Once the data is inside Excel, you can do all sort of complex things like conditional formatting, sorting, create charts, etc. You can either keep that data static or set it to auto-refresh so Excel will automatically update the worksheet whenever the source web page changes.


Microsoft also provides another Web Data add-in for Excel 2007 (link) that’s even more intelligent.   You make a few selections on a web page and it will automatically recognize other portions that match your pattern.

For instance, I just selected the top result in Google Web search page and clicked the “Select Similar” button.   It recognized all titles of other web pages appearing in the search results and imported them into Excel.

Now I can just open that Google - Excel spreadsheet, click refresh and will know almost instantly if the rankings of web pages have changed. Like RSS and Yahoo! Pipes, there could be many creative uses of Excel Web Queries.


📮  Subscribe to our Email Newsletter for Google tips and tutorials!
Published in: microsoft excel

Looking for something? Find here!

Meet the Author

Web Geek, Google Developer Expert
Amit Agarwal

Amit Agarwal is a Google Developer Expert in Google Workspace and Google Apps Script. He holds an engineering degree in Computer Science (I.I.T.) and is the first professional blogger in India. He is the developer of Mail Merge for Gmail and Document Studio. Read more on Lifehacker and YourStory

Get in touch

Google Add-ons

Do more with your Gmail and GSuite account

We build bespoke solutions that use the capabilities and the features of Google Workspace for automating business processes and driving work productivity.

  1. Mail Merge with Attachments
    Send personalized email to your Google Contact with a Google Sheet and Gmail
  2. Save Emails and Attachments
    Download email messages and file attachments from Gmail to your Google Drive
  3. Google Forms Email Notifications
    Send email notifications to multiple people when a new Google Form is submitted
  4. Document Studio
    Create beautiful pixel perfect documents merging data from Google Sheets and Google Forms
  5. Creator Studio for Google Slides
    Turn your Google Slides presentations into animated GIFs and videos for uploading to YouTube