Skip to main content

How to Create a Web Query in Microsoft Excel

 - You create a web query in Excel when you want to pull data from an internet page and pop it into a spreadsheet. You can retrieve text from a web page, data in tables, and data that is preformatted on the web page.
To see how all this works, do the following:
  • Open a new Excel spreadsheet
  • Connect to the internet, if you're not already
  • When you are connected, click inside cell A1 of your spreadsheet
  • From the Excel menu bar, click on Data
  • From the drop down menu, select Get External Data
  • A sub menu appears
  • From the sub menu, click on New Web Query
  • A dialogue box pops up like the one below:
the Web Query dialogue box
There are three sections to the dialogue box. The first section is where you type in the address of the internet page that you are trying to pop into Excel; the second section is where you specify which part of the web page you want to insert into your spreadsheet; and the third section sounds a bit technical, but basically you are choosing the type of formatting to use: do you want to keep the colour scheme, or strip it bare?
In the first section, you need to type in the name of our internet page. The internet page contains a table with some product information and some prices. By all means, load it into your browser and have a look at it. But first, you need the address. So:
  • In the text box right at the top of the dialogue box, type in this internet address. Make sure you spell it exactly as it is below:
http://www.homendlrn.co.uk/ME/webq1.htm
  • When you have typed the address in the text box, Select "The entire page" from section 2 of the dialogue box.
  • From section 3 of the dialogue box, select "None"
  • Click OK when you're done
When you click the OK button, another dialogue pops up. This time your are asked where in your spreadsheet you want to put the data. You only need to specify the starting cell. The dialogue box looks like this:
The dialogue box is already set up to put your data into the spreadsheet starting at cell A1. But you could change that, if you wanted. Cell A1 is fine for us, so just click the OK button.
Excel will now look for the internet address you typed. When it finds the web page, it will then take the text and the contents from the table and put them into your spreadsheet.
If the Web Query seems to be taking too long, you can Refresh it. To do that, click on View > Toolbars > External Data. A toolbar pops up on your page. Click the Refresh icon, as shown below:
If everything goes well, you should have a spreadsheet that looks like the following one:
As you can see, Excel has imported the data from a web page on the internet into a spreadsheet. You now have a way to get the latest prices from Head Office!
 
In the next part, we'll import a web page with better formatting.

Comments

Popular posts from this blog

PRATYUSHA HOME

Hi interesting readers, Prathysha NGO, Chennai. Bala gurukul orphange, chennai. Pratyusha support, Hyderbad. Krr oldage home, Vizag. Disa foundation.......................................................... so on..................... Join hands with us for a good cause. Thank you all. Contact  us on our  whatsapp no:  8939374254    for the more details. You can pay through Paytm scanner. for each donor we will give an online PDF book as a gift. Thank you Pratyusha Home
Java Contents  -This free course is for those wishing to learn the Java programming language. It is aimed at complete beginners to the subject, and no knowledge is assumed. The software you need to do the course is set out below, in the "What you need to get started" link. Once you have downloaded everything you need, you can make start by following the links on this page. Good luck! Home Page > Section 1: Getting Started with Java 1. What you need to get started 2. The Netbeans Software 3. Java Comments 4. The Structure of Java Code 5. How to Run your Java Programmes 6. Printing to the Output Window 7. Sharing your programmes with others > Section 2: Variables 1. Integer Variables in Java 2. Double Variables 3. Short and Float 4. Operator_Precedence 5. Java String Variables 6. Getting Input from the User 7. Option Panes > Section 3: Control Flow 1. If Statements in Java 2. If Else Statements 3...
Microsoft Word  -This is a full and free computer course for Microsoft Word 2007 to 2016. It is designed for complete beginners. If you're not sure whether or not you're in the right place take a look at Section 1.1 below, How to Open Microsoft Word. For those who have older versions of Word (versions up to 2003) then your tutorials are here:  Word 2000 to 2003 (Older versions) Home Page > Section One - Get Started with Microsoft Word   1.1 How to Open Microsoft Word 1.2 Finding Your Way Around 1.3 Typing Your First Letter 1.4 How to Save Your Work 1.5 Highlighting Techniques 1.6 Opening Word Documents 1.7 Add an Address To A Letter 1.8 Spelling and Grammar Checking > Section Two - Document Formatting   2.1 Crime Statistics Document 2.2 Bold Text 2.3 Italics and Underline 2.4 Seting Tab Stop Positions 2.5 Creating Bulleted Lists 2.6 Working With Fonts 2.7 Setting Up Page Margins > Section Three - C...