One of the fundamental uses of a spreadsheet program is to analyze data. Excel provides multiple tools for making analysis easier for novice Excel users, as well as more complex tools for engineers, scientists, and financial analysts.
You can use Excel to create databases or lists of information. Features such as the Data Form enable you to quickly insert, delete, and search database records. You also can easily sort and filter data in a database. Using the outlining or pivot table features, you can manipulate lists to summarize data by using different views . You can use Goal Seek and Solver to find answers to financial problems that require an optimum solution.
Excel's AutoFill, AutoComplete, and Pick From List features enable you to enter data more quickly. You can even use the Template Wizard to create your own professional-looking data entry forms that make it easier for others to enter data. These forms can include controls such as check boxes, scroll bars, and option buttons similar to those used in Excel dialog boxes.
Excel enables you to create and insert a custom list or data series in a worksheet. Suppose that you frequently enter the same company department names in different worksheets. You can define these names as a list, enter the first name, and then have Excel's AutoFill feature fill in the remaining names. (See also "Entering: Data Series" in the section "Getting Started.")
TIP: If you want to create a custom list based on existing text in a worksheet, use the Import List From Cells text box to enter the range containing the list. Then click the Import button to import the list into the dialog box.
The AutoFilter feature enables you to filter, or work with a subset of data in a list, without moving or sorting the list. Each field name at the top of the list becomes a drop-down list, from which you can choose which data you want to view. This feature allows you to easily perform editing and formatting commands on the resulting subset of data. (See "Databases: Creating a Database" before you complete this task.)
Options that are available for displaying data are listed in the following table:
Option | Description |
(All) | Displays all records in this field (the default option). |
(Top 10) | Enables you to filter a specified amount of numeric data from the top or bottom of a list. |
(Custom) | Displays the Custom AutoFilter dialog box, enabling you to create AND or OR criteria. |
(Exact value) | Displays only records with the exact value you specify in this field. |
(Blanks) | Displays all records with blanks in this field. |
(NonBlanks) | Displays all records with nonblanks (records that contain data) in this field. |
NOTE: Data stored to the left or right of the list may be hidden when you filter the list. If other data shares the worksheet with the list, store it in rows above or below the list area.
When you share a worksheet with other users, or if the data you use in a formula changes on a regular basis, you can attach a comment to a cell. Comments are descriptive notes commonly used to explain the data in a particular cell. These comments appear in pop-up text boxes when you move the pointer over the cell containing the comment.
Each comment automatically includes the author's name. Examples of items you may choose to include in a comment are: the date a worksheet (or cell) was last modified, worksheet assumptions, data-entry limits, the significance of a particular value, or the origin of a formula.
TIP: If you frequently use the Auditing toolbar, you may prefer to use the New Comment button on the Auditing toolbar to add comments to the worksheet. To display the Auditing toolbar, choose Tools, Auditing, Show Auditing Toolbar.
NOTE: To turn the comment indicator on or off, choose Tools, Options; then click the View tab. In the Comments area, select None to turn off the indicators, Comment Indicator Only to show just the indicator, or Comment & Indicator to show both the indicator and the comment.
(See also "Comments: Selecting, Finding, Editing, and Printing.")
After you've attached a comment to a cell in the worksheet, you can easily select worksheet comments, find specific text in comments, edit a comment, or print comments. (See "Comments: Adding to a Cell" before you complete this task.)
TIP: To delete a comment, right-click the cell that contains the red indicator. Then choose Delete Comment from the shortcut menu.
One of the most common uses of Excel is to help manage a database. You can use Excel database features to work with a simple list of information, such as a To Do list, or a larger, more complex database that contains several columns of data. In Excel, the terms database and list are often used interchangeably. This book uses the term database to refer to both simple lists and more complex databases.
A database includes information that contains similar sets of data, such as a client database. In an Excel database, the information in one row (such as all the information for one client) is known as a record. In each row, individual items are stored in fields--each field is a column in the database. An example of a field in a client database would be the client's name; another would be the address of the client. When information is organized in a database format, you can easily sort, filter, and summarize data.
NOTE: Your Excel database is actually just a special type of Excel worksheet. You can still use all the familiar worksheet commands to edit and format your database.
(See also "Databases: Inserting Records.")
When you need to delete records from a database, you can delete them directly from the worksheet, or you can use a data form to locate and delete specific records. (See "Databases: Creating a Database" before you complete this task.)
TIP: To delete a record directly from the worksheet, right-click the row number containing the record you want to delete. Then select Delete from the shortcut menu to delete the row containing the record. If you use this method, be sure that you won't lose any data stored in the same row as the record you want to delete. If you want to undo the deletion, immediately choose Edit, Undo.
When you need to locate specific records in a database, you can use a data form to help you find them. You just enter the search criteria, and Excel finds the records corresponding to that criteria. (See "Databases: Creating a Database" before you complete this task.)
TIP: If your database is small, you may prefer to use the data form to browse through the records in the database. Choose Data, Form; then click Find Next or Find Prev to find the desired record.
A data form provides a convenient way to insert records in a database, as well as to search for and delete existing records. You also can insert records directly in the database by inserting rows in the worksheet. (See "Databases: Creating a Database" before you complete this task.)
TIP: To erase the current entry in the data form as you are inserting new records, click the Restore button.
TIP: To insert a record directly in the worksheet, right-click the row number where you want the new row (record) to appear. Then select Insert from the shortcut menu to insert a blank row in the database.
(See also "Databases: Sorting a Database.")
If you want to sort a database but later return it to the original order, you need to add a record index to the database. A record index can assign a number to each record according to the record's position or its date and time of entry. You may want to use a record index, for example, if you need to keep track of the order in which records are entered in a database. You can insert a column or cells to make room for an index. (See "Databases: Creating a Database" and "Databases: Sorting a Database" in this section and "Inserting and Deleting: Columns" in the section "Editing Workbooks" before you complete this task.)
NOTE: When you sort, always make sure that you include the column containing the index numbers. When you want to return the database records to their original order, select the column of index numbers in the Sort By list and select Ascending.
Excel enables you to organize the data in a database to suit your needs. Although sorting works best on databases, you can actually sort any data in your worksheet. You can sort data either alphabetically or numerically, in ascending or descending order. (See "Databases: Creating a Database" before you complete this task.)
TIP: To quickly sort the database on a single field, select any cell in that field. Then click either the Sort Ascending or Sort Descending button on the Standard toolbar.
NOTE: Excel sorts date fields using the serial number created by dates and times entered in cells. Sorting works correctly only on dates and times entered with a date and time format that Excel recognizes. If you enter dates and times that Excel does not recognize, Excel normally stores them as text and sorts them in text order. (See also "Entering: Dates and Times" in the section "Editing Workbooks.")
(See also "Databases: Returning to the Original Sort Order.")
A check box is linked to a cell so that the result of the check box status appears as TRUE or FALSE in the linked cell. Selecting the check box makes the cell TRUE. Deselecting the check box makes the cell FALSE. The check box control is commonly used in a data form and provides an option to the user. (See "Forms: Adding Controls" before you complete this task.)
Excel enables you to place on a worksheet the same type of data-entry controls that you can place in a dialog box run by a macro or Visual Basic procedure. Controls are data-entry objects commonly used in forms, such as scrolling lists or check boxes. When you enter a value in a control or make a selection from a control, the entry appears in a worksheet cell.
TIP: To deselect a control, click a cell or object outside the selected control. To delete the control, select it and then press Delete.
TIP: Double-click a selected control to display the Format Object dialog box. To change the format of the control, select the options you want from the available tabs.
Both a list box and a combo box restrict users to choosing from a defined list of items. Restricting user selections prevents them from typing a mistake, entering incorrect data, or using old data.
List boxes and combo boxes produce the same result, but the appearance of the list in each type of box differs. A list box shows multiple items in the list, while the list stays the same height. A combo box is only one item high and has a drop-down arrow on the right side. Clicking the drop-down arrow displays the list. Combo boxes are commonly used when not enough room exists for a list box. (See "Forms: Adding Controls" and "Databases: Sorting a Database" before you complete this task.)
NOTE: The cell you specify in the Cell Link box returns a value that represents the number of the selected list item, not the actual list item itself. However, you can use this number in a formula to return the selected item in the list. If a combo box is linked to cell B5 and the input range for the list is in the range C5:C10, for example, the following formula returns the value from range C5:C10 based on the selection from the combo box:
=INDEX(C5:C10,B5)
Option buttons are used most frequently when you need to make a single choice from a group of choices. Option buttons are round buttons that come in groups.
If you draw just option buttons on a worksheet, all these buttons will belong to the same group, which means that you can select only one button at a time. You can have multiple groups of buttons, however, by enclosing each group in a group box drawn with the group tool. (See "Forms: Adding Controls" before you complete this task.)
NOTE: When you create additional option buttons, you don't have to enter a cell reference for the Cell Link. Only one linked cell exists for all option buttons in a group.
Scroll bars enable users to enter a number within a wide range while getting a visual impression of where their entry lies within the range. To enter a number, you can click the top or bottom arrow, click the gray part of the scroll bar, or drag the square button in the scroll bar. (See "Forms: Adding Controls" before you complete this task.)
Spin boxes are controls that show two arrow heads--one pointing up and the other pointing down. Each click of an arrow head increases or decreases the amount in the cell linked to the spin box. Holding down the mouse button on a spin box causes the number to change continuously. (See "Forms: Adding Controls" before you complete this task.)
Excel has many features that enable you to create nice-looking and easy-to-use data entry forms. Before you can create a data entry form using the Template Wizard, you need to create a worksheet that will be the basis for your form. Using Excel formatting techniques, you can make worksheets appear more like a paper form. You probably want to start by having the form in the same workbook as the worksheets that do the calculations, which makes it easier to create and maintain links from the controls on the form to the worksheets using the data. (See also "Template Wizard: Creating a Form" and "Forms: Adding Controls.")
In most cases, you probably want the form you create to resemble a paper form rather than a typical worksheet. To do this, you can change several Window Options that appear on the View tab of the Options dialog box. The following table describes the recommended settings for these options when you are creating a form.
Option | Description |
Page Breaks | Deselect so automatic page breaks do not show. |
Formulas | Deselect so results show, not formulas. |
Gridlines | Deselect so gridlines do not show. |
Row & Column Headers | Deselect so row and column headings are hidden. |
Outline Symbols | Deselect unless your form is built in an outline. |
Zero Values | (Optional) Deselect to hide zeros. |
Horizontal Scroll Bar | Deselect to hide the scroll bar at the bottom. |
Vertical Scroll Bar | Deselect to hide the scroll bar on the right edge. |
Sheet Tabs | Deselect to hide the worksheet tabs. |
TIP: Change the background color of a form to light gray to give it a more interesting appearance. Use the Shadow button on the Drawing toolbar to give pictures, charts, or text boxes a more three-dimensional appearance.
After you have drawn a control such as a check box on the worksheet, you can change the appearance of the control. You may want to change the font of the control, for example, so that it conforms with the fonts used in other worksheet data. (See "Forms: Adding Controls" and "Forms: Adding Check Boxes" before you complete this task.)
NOTE: The Format Control dialog box used to format controls on forms may contain a different number and type of tab, depending on the control that you format.
NOTE: This feature's task requires understanding of a complex subject. If you are not familiar with the Goal Seek feature, you will probably want to become acquainted with it by reading Special Edition Using Microsoft Excel 97 for a complete tutorial coverage.
Although Goal Seek is similar to the Solver add-in, it is generally faster and easier to use because it doesn't provide as many options as Solver does. Use Goal Seek if you want to produce a specific value in a formula cell by adjusting one input cell that influences a value; otherwise, if you have one or more input cells and have constraints on the solution, or if you want to maximize or minimize a formula cell, use Solver. (See also "Solver: Using Solver.")
You can use Goal Seek when you want to find an input value that generates the answer you want in a formula cell. To find the level of sales required to break even, for example, the formula cell would contain the net present value, and you would want the NPV function to return a zero value (which represents a break-even figure).
Outlining enables you to expand or contract worksheets or reports so that you see more or less detail. In a sales report, for example, you might need to display various levels of detail depending upon who will read the report. With the outline feature, you can hide or display up to eight levels of detail in rows or columns.
Excel can automatically create an outline, or you can manually create the outline. Manual outlining is necessary if the data is organized in a way that Excel doesn't understand. In general, you should arrange the worksheet so that summary rows are located below the detail rows, and summary columns are to the right of the detail columns. You may want to apply boldface or italic to summary rows or columns for emphasis, although this is not required for the outline feature to work. (See also "Outlines: Excel's Automatic Outlining" and "Outlines: Formatting Outlines.")
NOTE: If you selected an entire row or column in step 1, you don't see the Group dialog box. Excel groups the data by rows if you have rows selected or by columns if you have columns selected.
TIP: If you make a mistake or if you want to undo a grouping, you can use the Ungroup command. Select the section you want to ungroup. Then choose Data, Group and Outline, Ungroup. Select either Rows or Columns; then click OK.
You use the outline symbols to select which levels in an outline you want to display or hide. When you create an outline, the outline symbols appear automatically in a gray area to the left of the row numbers. (See "Outlines: Creating Manually" or "Outlines: Excel's Automatic Outlining" before you complete this task.)
You can have Excel create an outline for you automatically instead of creating the outline manually. Automatic outlining is useful if you haven't created an outline before or your out-line has a consistent layout. (See also "Outlines: Creating Manually.")
If Excel can determine a consistent direction of summarizing, it creates an outline. If Excel doesn't create an outline, it displays a warning message. If this occurs, you need to adjust the layout of your data or create an outline manually. (See "Outlines: Creating Manually.")
If you are creating a new outline, you can apply outline styles when Excel creates the outline. You also can apply outline styles to an existing outline. (See "Outlines: Creating Manually" or "Outlines: Excel's Automatic Outlining" before you complete this task.)
You can choose whether or not you want to display the outline symbols in a worksheet that includes an outline. For example, if your worksheet is outlined, you may choose to hide the outline symbols while showing the worksheet during an on-screen presentation. (See "Outlines: Creating Manually" or "Outlines: Excel's Automatic Outlining" before you complete this task.)
TIP: To toggle between hiding and showing outline symbols, add the Show Outline Symbols button to an existing toolbar. Choose Tools, Customize; then click the Commands tab. In the Categories
list, select Data. Scroll through the Commands list until you see the Show Outline Symbols icon. Drag the icon to the desired location in an existing toolbar; then click Close. To remove the icon, choose Tools, Customize; then drag the icon off the toolbar and click Close.
You can remove either a portion of an existing outline or the entire outline. (See "Outlines: Creating Manually" or "Outlines: Automatic Outlining" before you complete this task.)
Using Excel's AutoComplete feature, you can type the first few letters of an existing column entry, and Excel completes the rest of the entry for you. A similar feature, called Pick from List, enables you to select from a list of entries when you enter text in that column. Excel builds the list from entries that you have already made in the column above the active cell. You will save much time and repetitive typing with these two features. (See also "AutoComplete: Entering Duplicate Data.")
TIP: Use Pick From List when you have many entries in a column where the first several characters are identical. In this case, picking from the list of entries is usually faster than typing the several characters required for autocompletion of your entry.
In some cases, you may want to examine more than one kind of data in an existing pivot table. To do this, you use the PivotTable Wizard to add a second field to the DATA area. (See "Pivot Tables: Creating a Pivot Table" before you complete this task.)
If you want to include more detail in an existing pivot table, you can add more fields to the display of a pivot table. To do this, you use the PivotTable Wizard. (See "Pivot Tables: Creating a Pivot Table" before you complete this task.)
TIP: To remove a row, column, or page field from an existing pivot table, drag the field button outside of the pivot table.
NOTE: This feature's task requires understanding of a complex subject. If you are not familiar with pivot tables, you will probably want to become acquainted with them by reading Special Edition Using Microsoft Excel 97 for a complete tutorial coverage.
A pivot table enables you to summarize, analyze, and manipulate data in lists and tables. When you use the PivotTable Wizard to create a pivot table, you tell Excel which fields in the list you want to arrange in rows and columns. You also can specify a page field that appears to arrange the data in a stack of pages. Pivot tables are called such because you can quickly rearrange the position of pivot table fields to give you a different view of the table.
You can create a pivot table from several sources. The default (and most common) choice is to create a pivot table from an Excel list or database. In addition, you can create the pivot table from data in an external data source, multiple consolidation ranges, or another pivot table.
One useful application of pivot tables is creating summary tables that group large categories of data, with totals displayed for each category. After you create a pivot table, you can also more easily create charts based on data in the summarized table.
Because pivot tables are devices for displaying information, you cannot manually change information in the body of the table. You can, however, change the names of the pivot table fields and items. Excel doesn't allow you to duplicate names. If you enter an existing field or item name inadvertently, Excel rearranges the pivot table, moving the item with that name to the location where you typed the name. (See "Pivot Tables: Creating a Pivot Table" before you complete this task.)
TIP: To change additional options for a specific pivot table field, double-click the field button. Choose the options you want in the PivotTable Field dialog box; then click OK.
You can use the AutoFormat feature to apply a set of predefined formatting choices to a pivot table, just as you can for other tables in a worksheet. This will greatly enhance the appearance and readability of a pivot table. (See "Pivot Tables: Creating a Pivot Table" before you complete this task.)
(See also "Formatting: Tables with AutoFormats" in the "Formatting" section.)
A pivot table does not change automatically when you change the data in the source list or table. You can, however, update or refresh the pivot table for the following types of changes to the source data: changes to data in a data field, new or changed items, or insertions or deletions of fields or items. (See "Pivot Tables: Creating a Pivot Table" before you complete this task.)
You can customize Solver options, such as how you want Solver to find answers, how long Solver works, or the precision of the answer it attempts to find. In most cases, however, the default settings should be appropriate for Solver problems. (See "Solver: Using Solver" before you complete this task.)
Even if you installed the Solver option when you installed Excel, you still need to make the Solver add-in available by selecting it in the Add-Ins dialog box before you can begin to use it. After following this procedure, the Solver add-in will be available whenever you need to use the program.
NOTE: If you can't locate the SOLVER.XLA file, you need to run the Setup program to install the file.
Solver can generate reports summarizing the solution results. These reports enable you to easily compare different solutions to the same problem.
Solver can generate an Answer Report, a Sensitivity Report, and a Limits Report. The Answer Report summarizes the original and final values of the variables, target cell, and the constraints. The Sensitivity Report tells you how sensitive the solution is, based on small changes made to the target cell formula. The Limits Report shows how the solution changes when target and adjustable cells are maximized or minimized while other variables are held constant. (See "Solver: Using Solver" before you complete this task.)
Each report you selected appears on its own worksheet. Select a sheet tab to browse through the reports and the original worksheet.
Excel enables you to save and later reload different Solver settings and results by using the Save Model option in the Solver Options dialog box. This allows you to easily switch between the various models you've created in a Solver problem. (See "Solver: Using Solver" before you complete this task.)
NOTE: This feature's task requires understanding of a complex subject. If you are not familiar with the Solver, you will probably want to become acquainted with it by reading Special Edition Using Microsoft Excel 97 for a complete tutorial coverage.
Unlike Goal Seek, which finds a specific solution to a problem, Solver finds an optimal solution by adjusting input cells while ensuring that other formulas in the worksheet stay within limits you specify. Use the Solver add-in to determine the maximum or minimum value of one cell by changing the adjustable cells--for example, the maximum profit to be generated by changing overhead expenditures. (See also "Goal Seek.")
Before you use Solver, include the following inputs in the worksheet: adjustable cells; the objective formula that you want to maximize or minimize; and the constraints, which place limits on the Solver problem.
NOTE: If Solver has not been installed, the Solver option doesn't appear in the Tools menu. If this is the case, see "Solver: Installing Solver" prior to doing the steps below.
To make it easier for you to set up your own Solver problems in the worksheet, Excel comes with an on-line workbook that shows you specific examples of the types of problems you can use Solver to solve. Open the SOLVSAMP.XLS workbook (usually in the \EXAMPLES\SOLVER folder) to see these examples. If you don't see this workbook, you need to run the Excel Setup program to install it. After you open the workbook, switch to the worksheet containing the example you want to see, then choose Tools, Solver. The target cell, adjustable cells, and constraints for the worksheet are already specified.
TIP: If you want to restore the original values in the worksheet after you use Solver, click the Restore Original Values option in the Solver Results dialog box.
NOTE: The selected cells must be related through formulas in the worksheet. Otherwise, changing one cell will not change the other.
With the Template Wizard, Excel enables you to create professional-looking data entry forms that make it easier for others to enter data into an Excel database. The Template Wizard guides you through the process of converting your worksheet into a data entry form. (See "Forms: Creating a Form" before you complete this task.)
NOTE: To enter data using the data entry form you have created, create a new workbook based on the template you created. The new workbook contains all the formatting, formulas, and data contained in the template, but it must be saved using a different name.
(See also "Templates: Creating and Using a Workbook Template" in the section "Customizing.")
Excel provides several prebuilt templates for your use. Not all of these Excel templates are installed if you used the standard installation, however. To install additional templates, run the Setup program again, and choose the Custom installation option. (See also "Templates: Creating and Using a Workbook Template" in the section "Customizing.")
The Invoice, Expense Statement, and Purchase Order templates provided with Excel are designed for use with the Template Wizard.
TIP: Use the custom toolbar provided with Excel's templates to perform actions on the template. Point to a button on the toolbar and pause to see a brief description of the button's purpose.
©Copyright, Macmillan Computer Publishing. All rights reserved.