Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Authors: Reisner T.
Published year: 2003
Pages: 217-218/279
Buy this book on amazon.com >>

Basic Database Concepts

In your earlier work with Excel, you created worksheets to store and summarize information or data. Often you organize this information so that you can easily find the entries for a series of values, or calculate the totals for a group of numbers .

In Excel, a database is simply a more organized set of data. By organizing the data into a database, you can use the built-in database commands to find, edit, and delete selected data without manually scrolling through the information.

Database graphics/newterm_icon.gif A tool you use to store, organize, and retrieve information. Excel treats the database as a simple list of data. You enter the database information just as you would enter data into a worksheet. When you select a command from the Data menu, Excel recognizes the list as a database.

Suppose you want to save the names and addresses of all the people on your holiday card list. You can create a database for storing the following information for each person: first name, last name , address, and so on. Each piece of information is entered into a separate field (cell) in the list. All the fields for one person in the list make a record. In Excel, a cell is a field, and a row of field entries makes a record. The column headings in the list are called field names in the database.

Figure 21.1 shows the organization of an Excel database.

Figure 21.1. Sample database.

graphics/21fig01.jpg

Before you work with a database, you should know these database terms:

  • File ” A collection of related data.

  • Field ” A column in the database.

  • Field name ” A column heading in a database. Excel uses the term column label.

  • Record ” A row in the database.

After you learn the database terms, here are two more things to think about when creating a database:

  • Designing the database on paper

  • Building the database with the field names and records


Starting with a Plan

Before you consider building a database in Excel, you need to plan how you want to structure the database. Whether you just think about the plan or write it down on paper, it's advisable to have a plan. That way, you'll save yourself a lot of time and effort because you are less likely to build a database that doesn't work for you.

Structuring Your Database

Consider these helpful questions and answers before structuring your database:

What is the size of the database going to be when I'm finished with it? Well, Excel gives you plenty of room on a worksheet. The size of the database can be as large as your worksheet, 256 columns by 65,536 rows.

What should I know about field names in relation to structuring my database? The field names must be placed in the first row of the database and must contain text. You cannot use values as field names. You can use a field name with a maximum of 255 characters ; however, you should try to use shorter names because you can manage the database columns more easily.

How should I handle the records in my database? Each record must have the same number of fields. But you don't have to fill in each field of the record.

How does Excel handle spaces in data that I enter in the database? Excel doesn't deal with spaces at all. First of all, you cannot use spaces in a field name, and you shouldn't use extra spaces in a record entry. That is, don't "pad" an entry with extra spaces at the beginning or end of an entry.

Do I need to be concerned with upper- and lowercase letters? Excel's answer to this question is no. You can use any combination of uppercase and lowercase letters in your field names and records. Excel ignores capitalization when sorting or searching a database.

Can you plan on using formulas to calculate data in your database? Sure you can. You can create computed fields that evaluate other fields in the database, such as a Total field that would be equal to the Cost field times the Quantity field.

Sams Teach Yourself Microsoft Office Excel 2003 in 24 Hours
Authors: Reisner T.
Published year: 2003
Pages: 217-218/279
Buy this book on amazon.com >>