18.11.2014 Views

Microsoft Office

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Part V<br />

Analyzing Data with Excel<br />

FIGURE 33.3<br />

An Access table, imported into Excel.<br />

Retrieving Data with Query: An Example<br />

This section discusses <strong>Microsoft</strong> Query, an application that ships with Excel. Use Query to import a subset<br />

of a database.<br />

To perform queries using external databases, <strong>Microsoft</strong> Query must be installed on your system.<br />

(This program is included with Excel.) If Query isn’t installed, you’re prompted to install<br />

it when you first choose Data ➪ Get External Data ➪ From Other Sources ➪ From <strong>Microsoft</strong> Query.<br />

NOTE<br />

The best way to become familiar with <strong>Microsoft</strong> Query is to walk through an example. In the following sections,<br />

you learn how to use Query to open a database file and import a specified set of records.<br />

ON the CD-ROM<br />

The database file used in this example is available on the companion CD-ROM. It’s an Access<br />

2007 file named budget data.accdb.<br />

The database file<br />

The database file used in this example is a single-table Access file that consists of 31,680 records. This table<br />

contains the following fields:<br />

n<br />

n<br />

n<br />

n<br />

Sort: A numeric field that holds record sequence numbers.<br />

Division: A text field that specifies the company division (either Asia, Europe, N. America, Pacific<br />

Rim, or S. America).<br />

Department: A text field that specifies the department within the division. Each division is organized<br />

into the following departments: Accounting, Advertising, Data Processing, Human Resources,<br />

Operations, Public Relations, R&D, Sales, Security, Shipping, and Training.<br />

Category: A text field that specifies the budget category. The four categories are Compensation,<br />

Equipment, Facility, and Supplies & Services.<br />

578

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!