CHAPTER 9 Excel More Skills 12 Create Web Queries and Clear Hyperlinks Web queries are requests that are sent to web pages to retrieve and display data in Excel workbooks. Web queries work best when retrieving data formatted as HTML tables. To complete this document, you will need the following file: e09_census You will save your workbook as: Lastname_Firstname_e09_Census 1. Start Excel, and open the student data file e09_census. Save the workbook in your Excel Chapter 9 folder with the name Lastname_Firstname_e09_Census 2. Display the Home tab, and then display the Data Link worksheet. Select cell A1. In the formula bar, select all of the text. In the Clipboard group, click Copy. 3. Display the Census Information worksheet, and select cell A1. Display the Data tab, and then in the Get External Data group, click From Web. If an Internet Explorer warning box displays, read the message, and then click Yes. In the New Web Query dialog box, in the Address box, select all of the existing text, right-click, and then click Paste. Click Go. Compare your screen with Figure 1. If the page has moved or is unavailable, go to http://www.census.gov and use the links to find a similar page. The web query opens the web page and searches the page for HTML tables that can be imported into Excel. From Web button Address box Go button Figure 1 Import Data, Create PivotTable Reports and PivotChart Reports Microsoft Excel Chapter 9 More Skills: Skill 12 Page 1 of 5
4. In the New Web Query dialog box, scroll down to locate the hyperlink with the text Download this table as an XLS. Below the hyperlink, scroll to view the first three table rows. If necessary, enlarge the New Web Query dialog box so that the data is visible. 5. Below the hyperlink Download this table as an XLS, click the Select table button so that the displays as shown in Figure 2. Check box indicates that the table is selected Figure 2 Import Data, Create PivotTable Reports and PivotChart Reports Microsoft Excel Chapter 9 More Skills: Skill 12 Page 2 of 5
6. Click Import. If a Microsoft Office Excel message displays, read the message, and then click OK. 7. In the Import Data dialog box, select the Existing worksheet option button, verify that the Existing worksheet box displays $A$1, and then click OK. Compare your screen with Figure 3. The data is downloaded from the web page, and after a few moments, the data displays in the spreadsheet. Data imported from web page Figure 3 Import Data, Create PivotTable Reports and PivotChart Reports Microsoft Excel Chapter 9 More Skills: Skill 12 Page 3 of 5
8. Set the width of columns A:I to 12. Select row 2, and display the Home tab then click Wrap Text. Select row 2. In the Cells group, click Format, and then click Row Height. In the Row Height box, type 60 Click OK. Select cell A1, and compare your screen with Figure 4. Imported data Figure 4 Import Data, Create PivotTable Reports and PivotChart Reports Microsoft Excel Chapter 9 More Skills: SKILL 12 Page 4 of 5
9. Display the Data Link worksheet tab, and select cell A1 then display the Insert tab, and then in the Links group, click Hyperlink. Compare your screen with Figure 5. Hyperlink Edit Hyperlink dialog box Remove Link Figure 5 10. On the Edit Hyperlink dialog box, click Remove Link. 11. Select all of the worksheets, and add the file name in the left footer. Display the Census Information worksheet tab. Click cell A1. Switch to Normal view. Ungroup the worksheets. 12. Save the workbook, and then print or submit electronically as directed by your instructor. Exit Excel. You have completed More Skills 12 Import Data, Create PivotTable Reports and PivotChart Reports Microsoft Excel Chapter 9 More Skills: SKILL 12 Page 5 of 5