(Ebook) Excell 50 Tutorial
(Ebook) Excell 50 Tutorial
0 Database Functions
Student Guide
Simon Dupernex
Aston Business School
Preface
This document is an introduction to the database functions contained within the spreadsheet program
Excel 5.
It tells you how to construct your own database from scratch.
It is specifically tailored for students at Aston University but will be of use to anyone who has a copy
of Excel version 5.0 for Windows.
It assumes that you already know how to work with Windows on a PC.
CONTENTS
1 INTRODUCTION 4
4 DATA FORMS 6
8 SUMMARY 16
1 INTRODUCTION.
Excel has available a simple database function called a list. A list is a way of storing
data on a worksheet where a series of labelled rows contain similar data. An example
of a list could be a set of results from a series of questionnaires, or the university
telephone directory.
An Excel list contains certain common features:
∗ Cells in the same column contain like data.
∗ The first row of the list contains the column labels.
∗ Rows in a list contain similar sets of data.
So a list is a simple database where rows are records and columns are fields.
Excel provides a powerful set of commands to make it easy to manage a list or a
database. You can use a Data Form to see, change, add, and delete records from a
list, or to find specific records based on criteria you specify. You can Sort the data to
arrange rows in a list according to the contents of selected columns. You select the
data and the sort order you want, or you can create and use a custom sort order. You
can Filter the data to find and work with a subset of the data in your list. A filtered list
displays only the rows that contain a certain value or rows that meet a set of criteria,
while temporarily hiding the other rows.
When you create a list, bear in mind the following guidelines:
∗ Avoid having more than one list on a worksheet.
∗ Leave at least one blank column and one blank row between your list and
other data on the worksheet.
∗ Create column labels in the fist row of your list.
∗ Design your list so that all the rows have similar items in the same column.
∗ Don’t insert extra spaces at the beginning of a cell; this will affect sorting
and searching.
Exercise.
• Enter the following fictitious personnel data.
Note that cells A1 through F1 inclusive are the column labels and that cells
A2 through F9 inclusive contain the relevant data.
• Now save your spreadsheet on your floppy disk using Save As from the
File menu.
4 DATA FORMS.
Once a list has been created, you can add, find, edit, and delete records using a Data
Form. The Form command on the Data menu displays a data form, which is a dialog
box that you can use to see, change, add, and delete records from a list, or to find
specific records based on criteria you specify. The column labels of your list become
the field names in the data form.
Exercise.
Select any cell within your database (e.g. cell B3) and choose the Form
command from the Data menu. The Data Form dialogue box will be
displayed, containing the details of the first record in the list. Your screen
should look like the one below. Practice scrolling through the records in
your list.
To move around on the data form, press the TAB key to move ahead one
field at a time, and then through the command buttons. Press SHIFT+TAB
to move back one field or button at a time.
The scroll bar enables you to scroll through the records in your list and
shows the approximate position of the displayed record in the list. Move
forward and back through the list by using the scroll box and the up and
down scroll arrows on the scroll bar.
The New button clears the fields in the Data Form dialog box.
The Delete button deletes the displayed record; the other records shift up in
the list.
The Restore button restores edited fields in the displayed record, removing
your changes.
The Find Prev button displays the previous record in the list.
The Find Next button displays the next record in the list.
The Close button closes the data form.
When you have successfully added the details, close the Data Form dialogue box by
choosing the Close button.
• Select any cell within your database (e.g. cell D1) and select the Advanced
Filter command from the Filter submenu from the Data menu.
Your screen should then look like this:
• Check that Filter the List in-place box is selected and the List Range is
from cell A1 to F10 inclusive.
• Specify the Criteria Range as cells H1 through I2 inclusive, either by
directly entering the cell range, or by selecting the cells with the mouse.
Your screen should then look like this:
• When you are satisfied that your filter criteria are correct, choose the OK
button to select the matching records.
• To restore the database, select the Show All command from the Filter
submenu from the Data menu.
8 SUMMARY.
In this exercise you have learned to:
∗ Construct a simple database (list)
∗ Add Data to the database
∗ Use Data Forms to Add, Change and Delete items on the database
∗ Change the sequence of the database using the Sort command
∗ Filtered the database using the Auto Filter and Advanced Filter options
The AutoFilter command applies drop-down arrows directly to column
labels in the list, so you can select the item you want to display. For
example, you can display all the rows containing a specified unique value
in a column, such as "all rows that contain Robinson in the Surname
column." You can also use custom comparison criteria to filter the data
in your list. When you hide rows using the AutoFilter, your worksheet is
in Filter mode. In Filter mode, many Excel commands operate only on
visible cells. After you filter a list to display the rows you want, you can
copy the subset of your data to another location for further analysis. Use
AutoFilter to filter the data in place, then use the Copy command and the
Paste command to place the filtered data wherever you want it, even on
another worksheet.
Use Advanced Filter to apply complex criteria to filter your list, then
automatically copy the filtered data to a location you specify. To copy
the filtered data to another worksheet, it is easiest to filter the list by
using AutoFilter. Then cut and paste the filtered data where you want it.