Data Management Resources in Excel
Data Management Resources in Excel
10.1 Introduction
As we have seen in several examples throughout this volume, Excel can hold tables of
data for calculations, analysis, and charting purposes. Excel can also hold data for refer-
ence and processing purposes. When there is a need to keep data, calculations, analyses,
and charts together, worksheets and tables within an Excel workbook make an excellent
choice. There are, however, times when the data may not be available for inclusion in an
Excel workbook or may be better referenced from an external data source.
In addition to supporting various methods for storing and accessing data, Excel has
numerous capabilities for managing and processing data, over and above the analyses
and charting capabilities discussed thus far. This chapter aims to outline many of these
capabilities and methods, which the reader is then encouraged to employ in his/her day-
to-day work.
1. Highlight the column headings and all the rows of the data which will become the
table named Contacts.
2. Press the key sequence CTRL+t or click on HOME/STYLES/Format As Table and
pick a style.
3. Upon performing step 2, a dialog box will appear as in Figure 10.2. Verify the
information and click OK.
199
200 What Every Engineer Should Know About Excel
FIGURE 10.1
FIGURE 10.2
4. The resulting table will have either the default coloring (by pressing CTRL+t) or
the coloring chosen (clicking on HOME/STYLES/Format As Table), and it will
have auto- ltering enabled so that the user can sort and lter the columns of the
table (Figure 10.3).
Data Management Resources in Excel 201
FIGURE 10.3
FIGURE 10.4
5. To give the table the custom name Contacts, place the cursor on a cell in the table
and the Table Tools menu will appear on the ribbon bar. Navigate to the Table
Tools Design menu and note the upper-left corner of the ribbon bar. It should
appear as in Figure 10.3. To change the name of the table to Contacts, type over the
term Table 1 with the term Contacts. Navigate away from the table and back to it
to ensure that the name is preserved (Figure 10.4).
data by either zip code or country and then hide the rows that don’t t with what you
seek. Alternatively, using Excel’s built-in ltering capabilities can automatically accom-
plish these steps.
The simplest way to engage ltering is to use the Auto-Filter facility of Excel. Highlight
the column headings and data you want to lter and navigate to DATA/SORT & FILTER
and click on Filter. Excel will enable a drop-down lter on each column from which you
can perform several actions. These potential actions include the following:
Consider the data in Figure 10.1. Enabling ltering on that data set and then selecting the
drop-down menu on the Street Address eld would appear as in Figure 10.5.
By unchecking the Select All value and then checking the 12345 North Main Street value,
the table of data will be reduced to only two rows with 12345 North Main Street as a value
for the Street Address column.
FIGURE 10.5
Data Management Resources in Excel 203
10.3.2 Sorting
As seen from the menu choices above, sorting can be accomplished using the ltering
drop-down menus on each column. If, however, nested sorting (sorting by value A, then
value B within value A, etc.) is needed, an alternative approach is needed.
Consider the data in Figure 10.6. Imagine that these data need to be sorted rst by Last
Name, then by First Name, and then by Middle Initial. To create a nested sort for these
data, perform the following steps:
FIGURE 10.6
204 What Every Engineer Should Know About Excel
FIGURE 10.7
FIGURE 10.8
10.3.3 Subtotals
Subtotals can be used in Excel to perform several operations on subgroups of data.
The data must be sorted by a value on which the data are grouped, and then subto-
tals can be employed on various other data elements. The operations that can be per-
formed on a subgroup of data are Sum, Count, Average, Minimum, Maximum, and
Product. Product is a multiplication operation, minimum is the identi cation of the
minimum value of a subgroup, and maximum is the identi cation of a maximum value
in a subgroup.
Consider the data in Figure 10.10. The data consist of a list of spare parts that might be
on hand with a present-day IT group for quick repair of problematic devices. Let’s say, for
example, that management would like to know how many devices are held per category
as well as the dollar value of that inventory. Using subtotals for summing the number of
items on hand as well as the value of those items would be very handy.
To perform such an operation on this sample data, perform the following steps:
1. Start by highlighting the data and column headings for which subtotals will be
created.