Presentation is loading. Please wait.

Presentation is loading. Please wait.

Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row.

Similar presentations


Presentation on theme: "Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row."— Presentation transcript:

1 Database Features

2 Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row of the list represents a record. n Each column contains the values of the different fields in the database.

3 n Excel treats any rectangular array of nonempty cells surrounded by empty rows and columns as a list. n The top row of the list contains the field names. n Throughout, we consider this example:

4

5 n To add, modify, or delete data, you could simply work in the worksheet itself. n Or, you could do Data => Form…, which brings up a dialog box from which you could do any of these:

6

7 n Note that the Service value (meaning years of service) cannot be modified. n This is because it is computed from the hire date using a formula like =(TODAY()-E2)/365

8 n Another useful feature is the ability to sort the list according to values in from one to three fields. n Here we do Data => Sort… and fill out the resulting dialog box as follows:

9

10 n What we get has all the Atlanta employees, then all the Boston employees, etc. n And within each location, the employees appear in alphabetical order of their names.

11

12 Filtering n If we want to see only a subset of the records satisfying some criteria, we can apply an appropriate filter. n If we do Data => Filter => AutoFilter, a drop-down menu button appears at each column heading. n Here we click the button on the Title field:

13

14 n If we select Manager from this drop-down menu, our worksheet displays only the records for managers:

15

16 n To see all the records, select (All) from the drop-down menu on the Title column heading. n If we want to see only those records for employees making at least $50,000, we can do this by selecting (Custom…) from the Salary drop-down menu.

17 Criteria: Advanced Filter and database functions n The Advanced Filter feature and the database functions like DSUM, DAVERAGE, DCOUNT, DMAX, and DMIN use criteria specified in a range of cells on the worksheet itself. n In this example, we will use A16:F17 as our criteria range:

18

19 n We can compute the average salary of Chicago account reps and store it in cell C19 by first clicking in that cell, then clicking the Paste Function button and selecting the DAVERAGE function:

20

21

22 n This brings up the Formula Palette for the DAVERAGE function. n We can enter its first and third arguments by clicking and dragging in the worksheet.

23

24

25 Subtotals n Suppose we would like to see the average salary for each category of employee. n We first sort according to the Title field to group records together according to their title. n Then we do Data => Subtotals… and specify in the resulting dialog box that we want to use the AVERAGE function on the Salary field. n This is what we get:

26

27 Pivot tables and pivot charts n A pivot table displays summarized values (sums, counts, or averages) of one field in a list, grouped by one set of field values along the rows and another set of field values along the columns of the worksheet. n A pivot chart displays the same information graphically.

28 n To create a pivot table and/or a pivot chart, do Data => PivotTable and PivotChart Report… and use the PivotTable Wizard. n Here is an example of a pivot table and corresponding pivot chart:

29

30

31 Importing data from other sources n You can import data in text form and make it an Excel list by using the Text Import Wizard. n To run this, either open the file (a.txt file) or do Data => Get External Data => Import Text File… n You can also convert an Excel list to a text file by doing File => Save As… and specifying the type of file as text.

32 n You can also import data from an Access database and make it into an Excel list by doing Data => Get External Data => New Database Query… n This brings up the Query Wizard.


Download ppt "Database Features. Lists n An Excel worksheet can be used like a table in a relational database. n In Excel, such a table is called a list. n Each row."

Similar presentations


Ads by Google