9780135100509 XLS C09 MS12

5
Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved. From Skills for Success with Microsoft® Excel 2010 Comprehensive Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: Skill 12 | Page 1 of 5 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. Excel CHAPTER 9 More Skills 12 Create Web Queries and Clear Hyperlinks Figure 1 From Web button Go button Address box

Transcript of 9780135100509 XLS C09 MS12

Page 1: 9780135100509 XLS C09 MS12

Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved.From Skills for Success with Microsoft® Excel 2010 Comprehensive

Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: Skill 12 | Page 1 of 5

� 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, andthen in the Get External Data group, click From Web. If an Internet Explorer warning boxdisplays, read the message, and then click Yes. In the New Web Query dialog box, in theAddress 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 tohttp://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.

ExcelCHAPTER 9

More Skills 12 Create Web Queries and Clear Hyperlinks

Figure 1

From Web button

Go button

Address box

Page 2: 9780135100509 XLS C09 MS12

Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved.From Skills for Success with Microsoft® Excel 2010 Comprehensive

Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: Skill 12 | Page 2 of 5

4. In the New Web Query dialog box, scroll down to locate the hyperlink with the textDownload 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 thatthe displays as shown in Figure 2.

Figure 2

Check boxindicates that the

table is selected

Page 3: 9780135100509 XLS C09 MS12

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 withFigure 3.

The data is downloaded from the web page, and after a few moments, the data displaysin the spreadsheet.

Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved.From Skills for Success with Microsoft® Excel 2010 Comprehensive

Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: Skill 12 | Page 3 of 5

Figure 3

Data importedfrom web page

Page 4: 9780135100509 XLS C09 MS12

8. Set the width of columns A:I to 12. Select row 2, and display the Home tab then click WrapText . Select row 2. In the Cells group, click Format, and then click Row Height. In theRow Height box, type 60 Click OK. Select cell A1, and compare your screen with Figure 4.

Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved.From Skills for Success with Microsoft® Excel 2010 Comprehensive

Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: SKILL 12 | Page 4 of 5

Figure 4

Imported data

Page 5: 9780135100509 XLS C09 MS12

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.

Copyright © 2011 by Pearson Education Inc. publishing as Prentice Hall. All rights reserved.From Skills for Success with Microsoft® Excel 2010 Comprehensive

Import Data, Create PivotTable Reports and PivotChart Reports | Microsoft Excel Chapter 9 More Skills: SKILL 12 | Page 5 of 5

Figure 5

Hyperlink

Remove Link

Edit Hyperlinkdialog box

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 CensusInformation 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