excel_text
excel_text
Throughout the book you will find references that look like this:
Click Home ⇒ Cells ⇒ Clear. This means to look on the Home tab,
the Cells group of commands, and click the Clear button.
The book includes both background information and activity steps
to complete. Activity steps are printed with a distinctive background
color, as illustrated below.
iii
1. This is step one.
While this book is useful in its current form, I will continually up-
date it based on my students’ experiences and my own research. It
is my hope that students can use this book to learn about Excel and
other instructors can adapt it for their own classes.
— George Self
iv
BRIEF CONTENTS
i basic excel 1
1 fundamental skills 3
2 mathematical computations 75
3 formulas 141
iv appendix 509
a function quick reference 511
b dynamic arrays 531
v
CONTENTS
i basic excel 1
1 fundamental skills 3
1.1 Overview of Microsoft Excel 3
1.1.1 Making Decisions With Excel 3
1.1.2 Starting Excel 4
1.1.3 The Excel Workbook 5
1.1.4 Navigating Worksheets 6
1.1.5 The Excel Ribbon 8
1.1.6 Quick Access Toolbar and Right-Click Menu 10
1.1.7 The File Tab 11
1.1.8 Saving Workbooks (Save As) 13
1.1.9 The Status Bar 14
1.1.10 Excel Help 15
1.2 Entering, Editing, and Managing Data 17
1.2.1 Entering Data 17
1.2.2 Editing Data 20
1.2.3 Auto Fill 21
1.2.4 Deleting Data and the Undo Command 25
1.2.5 Adjusting Columns and Rows 28
1.2.6 Hiding Columns and Rows 32
1.2.7 Inserting Columns and Rows 35
1.2.8 Moving Data 38
1.2.9 Deleting Columns and Rows 39
1.3 Formatting and Data Analysis 41
1.3.1 Formatting Data and Cells 42
1.3.2 Data Alignment (Wrap Text, Merge Cells, and
Center) 49
1.3.3 Entering Multiple Lines of Text 52
1.3.4 Borders (Adding Lines to a Worksheet) 53
1.3.5 Autosum 56
1.3.6 Moving, Renaming, Inserting, and Deleting Work-
sheets 59
1.4 Printing 62
1.4.1 Page Setup 62
1.4.2 Headers and Footers 65
1.4.3 Printing Worksheets and Workbooks 67
1.5 Chapter Practice 68
1.5.1 Basic Monthly Budget for a Medical Office 68
1.6 Scored Assessment 71
1.6.1 Sales and Inventory Items 71
2 mathematical computations 75
2.1 Formulas 75
vii
viii contents
iv appendix 509
a function quick reference 511
a.1 AND 511
a.2 AVERAGE 511
a.3 CONCATENATE 512
a.4 COUNT 513
a.5 COUNTIF 514
a.6 COUNTIFS 514
a.7 DATE 515
a.8 DATEDIF 515
a.9 IF 516
a.10 INDEX 517
a.11 LEFT 518
a.12 LOWER 518
a.13 MATCH 519
a.14 MAX 520
a.15 MID 520
a.16 MIN 521
a.17 NOW 521
a.18 NOT 522
a.19 OR 522
a.20 PMT 523
a.21 PROPER 524
a.22 RANDBETWEEN 524
a.23 RIGHT 525
a.24 ROUND 525
a.25 SEARCH 526
a.26 SUM 526
contents xiii
BASIC EXCEL
Learning Objectives
3
4 fundamental skills
2. Click and hold the left mouse button and drag the
mouse pointer back to cell D5.
3. Release the left mouse button. Several cells are now high-
lighted, as shown in Figure 5.
1.1 overview of microsoft excel 7
Keyboard Shortcuts
Excel’s features and commands are found in the Ribbon, which is the
upper area of the Excel screen that contains several tabs running
across the top. Each tab provides access to a different set of Excel
commands. Figure 6 shows the commands available in the Home tab
of the Ribbon. Table 1, Command Overview for Each Tab of the Ribbon,
provides an overview of the commands that are found in each tab of
the Ribbon.
Tab Description
Also known as the Backstage View of the Excel workbook.
Contains all commands for opening, closing, saving, and
creating new Excel workbooks. Includes print
File
commands, document properties, e-mailing options, and
help features. Excel’s user options are also found in this
tab.
Contains the most frequently used Excel commands.
Formatting commands are found in this tab along with
Home
commands for cutting, copying, pasting, and for
inserting and deleting rows and columns.
Used to insert objects such as charts, pictures, shapes,
Insert
PivotTables, Internet links, symbols, or text boxes.
Contains commands used to prepare a worksheet for
Page
printing. Also includes commands used to show and
Layout
print the grid lines on a worksheet.
Includes commands for adding mathematical functions
Formulas to a worksheet. Also contains tools for auditing
mathematical formulas.
Used when working with external data sources such as
Data Microsoft® Access®, text files, or the Internet. Also
contains sorting commands and access to scenario tools.
Includes Spelling and Track Changes features. Also
Review contains protection features to password protect
worksheets or workbooks.
Used to adjust the visual appearance of a workbook.
View Common commands include the Zoom and Page Layout
view.
Keyboard Shortcuts
• Hold down the Ctrl key and press the F1 key to toggle
between the maximized and minimized view of the
ribbon.
The Quick Access Toolbar is found at the upper left side of the Excel
screen above the Ribbon, as shown in Figure 7. This area provides ac-
cess to the most frequently used commands, such as Save and Undo.
The Quick Access Toolbar can be customized by adding commands that
are extensively used. By placing these commands in the Quick Access
Toolbar, it is not necessary to navigate through the Ribbon to find
them. To customize the Quick Access Toolbar, click the down arrow as
shown in Figure 7. This will open a menu of commonly used com-
mands that can be added to the Quick Access Toolbar. If the desired
command is not on the list, select the More Commands option, which
opens a screen containing every command on the ribbon.
The File tab is also known as the Backstage view of the workbook. It
contains a variety of features and commands related to the workbook
that is currently open, new workbooks, or workbooks stored in other
locations on the computer or network. Figure 9 shows the options
available in the File tab or Backstage view. To leave the Backstage view
and return to the worksheet, click the arrow in the upper left-hand
corner as shown in Figure 9.
12 fundamental skills
Included in the File tab are the numerous Excel settings that can
be accessed and modified by clicking the Options button. Figure 10
shows the Excel Options window, which opens access to settings such
as the default font style, font size, and the number of worksheets that
appear in new workbooks1 .
1 Chapter 9, advanced topics, page 439, has more information about setting com-
mon options.
1.1 overview of microsoft excel 13
1. Click File ⇒ Save As. This will open the Save As dialog.
3. Click in the File Name box near the bottom of the Save As
dialog box. Type the new file name: CH1-GMW Sales
Data
Keyboard Shortcuts
Save As
• Press the F12 key and use the tab and arrow keys to
navigate around the Save As dialog box. Use the Enter
key to make a selection.
• Or press the Alt key on the keyboard and Key Tips,
small letters and numbers, appear on the Ribbon.
Press the F key on the keyboard for the File tab and
then the A key. This will open the Save As dialog box.
Skill Refresher
Saving Workbooks (Save As)
The Status Bar is located below the worksheet tabs on the Excel screen
(see Figure 12). It displays a variety of information, such as the sta-
tus of certain keys on the keyboard (e. g., CAPS LOCK), the available
views for a workbook, the magnification of the screen, and mathemat-
ical functions that can be performed when data are highlighted on a
worksheet. The Status Bar can be customized as follows.
1. Place the mouse pointer over any area of the Status Bar
and right-click to display the Customize Status Bar list of
options (see Figure 12).
2. Select the Caps Lock option from the menu (see Figure
12).
3. Press the Caps Lock key on the keyboard and notice the
Caps Lock indicator on the lower left side of the Status
Bar.
1.1 overview of microsoft excel 15
The Help feature provides extensive information about the Excel ap-
plication. Although some of this information may be stored on the
local computer, the Help window will automatically connect to the
Internet if there is a live connection to provide resources that can
answer most questions.
Excel 2016 To access help, enter a question in the Tell me what you
want to do text box above the ribbon. A drop-down list with links to
several potential answers will appear. Select from the links or click
the question mark to launch the Excel Help window.
Excel 365 The Excel Help window can be opened by clicking the
Help tab. Alternatively, enter a question in the Search text box above
the ribbon. A drop-down list with links to several potential answers
will appear. Select from the links or click the question mark to launch
the Excel Help window.
16 fundamental skills
Keyboard Shortcuts
Excel Help
Key Take-Aways
Overview
Learning Objectives
3. Press the Tab key. This will enter the word into cell A2
and activate the next cell to the right.
5. Repeat the above step for the words Average Price and
then again for Sales Dollars.
Figure 14 shows how the worksheet should appear after the column
headings have been entered into Row 2. Notice that the word Price in
cell location C2 is not visible. This is because the column is too narrow
to fit the entry. This will be corrected in the next section.
18 fundamental skills
Integrity Check
Column Headings
2. Type the number 2670 and press the Enter key. After
pressing the Enter key, cell B4 will be activated. Using
the Enter key is an efficient way to enter data vertically
down a column.
10. When finished, check that the data entered matches Fig-
ure 15.
Integrity Check
Data Entry
Why?
Data that has been entered in a cell can be changed by double clicking
the cell location or using the Formula Bar. The Formula Bar can be
used for initial entry of data into cells as well as for editing data
that already exists in a cell. The following steps provide an example
of entering and then editing data that has been entered into a cell
location.
Figure 16: Using the Formula Bar to Edit and Enter Data
8. Add a space after the word Total and type the word
Sales.
Keyboard Shortcuts
The Auto Fill feature is a valuable tool when manually entering data
into a worksheet. This feature has many uses, but it is most beneficial
when entering data in a defined sequence, such as the numbers 2, 4,
6, 8, and so on, or non-numeric data such as the days of the week or
22 fundamental skills
months of the year. The following steps demonstrate how the Auto
Fill Handle can be used to enter the months of the year in Column A.
5. Left click and drag the Auto Fill Handle to cell A14.
Notice that the Auto Fill Handle tip box indicates what
month will be placed into each cell (see Figure 18). Re-
lease the left mouse button when the tip box reads De-
cember.
1.2 entering, editing, and managing data 23
Figure 18: Using Auto Fill Handle to Enter the Months of the Year
Once the left mouse button is released, all twelve months of the
year should appear in the cell range A3:A14, as shown in Figure 19.
After auto-filling a range, an Auto Fill Options button pops up at the
lower right corner of the filled range, as shown in Figure 19.
Excel 2016 The Auto Fill Options button presents several options for
changing the way that the range is filled.
24 fundamental skills
2. Click the Copy Cells option. This will change the months
in the range A4:A14 to January.
Excel 365 The Auto Fill Options button was replaced with the Quick
Analysis button. That button will apply several possible analysis fea-
tures to the filled range, like highlighting entries that are duplicates.
There are several methods for removing data from a worksheet, a few
of which are demonstrated here. With each method, use the Undo
26 fundamental skills
4. Place the mouse pointer over the Auto Fill Handle. No-
tice that the white block plus sign change to a black plus
sign.
Keyboard Shortcuts
Undo Command
3. Click the Clear All option. This removes the data in the
cell range.
There are a few entries in the worksheet that appear to be cut off.
For example, the last letter of the word September cannot be seen in
cell A11. This is because the column is too narrow for this word. The
columns and rows on an Excel worksheet can be adjusted to accom-
modate the data that is being entered into a cell. The following steps
explain how to adjust the column widths and row heights in a work-
sheet.
2. Click and drag the column to the right so the entire word
September in cell A11 can be seen. As the column sepa-
rator is dragged to the right the column width pops up
in a tip box. This box displays the number of characters
that will fit into the column using the Calibri 11-point
font which is the default setting for font/size.
5. Use the Column Width dialog box to set the width to 13.
30 fundamental skills
Keyboard Shortcuts
Column Width
Keyboard Shortcuts
Column Width
• Press the Alt key on the keyboard, then press the let-
ters H , O , and H one at a time.
Figure 25: CH1-GMW Sales Data with Column A and Row 15 Adjusted
32 fundamental skills
Skill Refresher
Adjusting Columns and Rows
Keyboard Shortcuts
Hiding Columns
Keyboard Shortcuts
Unhiding Columns
Keyboard Shortcuts
Hiding Rows
Keyboard Shortcuts
Unhiding Rows
Skill Refresher
Hiding Columns and Rows
Skill Refresher
Unhiding Columns and Rows
Integrity Check
Keyboard Shortcuts
Inserting Columns
Keyboard Shortcuts
Inserting Rpws
• Press the Alt key and then the letters H , I , and R one
at a time. A row will be inserted above the activated
cell.
38 fundamental skills
Skill Refresher
Inserting Columns and Rows
2. Bring the mouse pointer to the left edge of cell D2. No-
tice that the white block plus sign change to cross ar-
rows (see Figure 30). This indicates that the data can be
dragged to a new location by left-clicking the mouse.
Integrity Check
Moving Data
Keyboard Shortcuts
Deleting Rows
Keyboard Shortcuts
Deleting Columns
Skill Refresher
Deleting Columns and Rows
Key Take-Aways
Learning Objectives
Often, Excel spreadsheet contain values that are both currency and
non-currency in nature. When that is the case, use the guidelines in
Figure 33.
1.3 formatting and data analysis 43
Keyboard Shortcuts
Text Formats
Why?
10. Click the Blue, Accent 1, Darker 25% color from the
palette (see Figure 36). Notice that as the mouse pointer
moves over the color palette, a preview of the color ap-
pears in the highlighted cells. That makes it easy to ex-
periment with various colors.
13. Since the black font is difficult to read on the blue back-
ground, change the font color to be more visible. Click
Home ⇒ Font ⇒ Font Color ⇒ Down Arrow and select
White as the font color for this range (see Figure 34).
Figure 37 shows how the Sheet1 worksheet should appear after the
formatting techniques are applied.
48 fundamental skills
Why
The skills presented in this section show how data is aligned within
cell locations. For example, text and numbers can be centered, left
aligned, right aligned, and so on within a cell. In some cases, multi-
word text entries may need to be stacked vertically instead of expand-
ing the width of a column, which is referred to as wrapping text.
These skills are demonstrated in the following steps.
6. Click the Merge & Center option (see Figure 39). This
will create one large cell location running across the top
of the data set.
Keyboard Shortcuts
Merge Commands
• Wrap Text: Press the Alt key and then the letters H
and W one at a time.
• Merge & Center: Press the Alt key and then the letters
H , M , and C one at a time.
• Merge Cells: Press the Alt key and then the letters H
, M , and M one at a time.
• Unmerge Cells: Press the Alt key and then the letters
H , M , and U one at a time.
Why?
Wrap Text
Figure 40 shows the Sheet1 worksheet with the data alignment com-
mands applied. The reason for merging the cells in the range A1:D1
will become apparent in the next section.
1.3 formatting and data analysis 51
Why?
Skill Refresher
Wrap Text
Skill Refresher
Merge Cells
In the Sheet1 worksheet, the cells in the range A1:D1 were merged for
the purposes of adding a title to the worksheet. This worksheet will
contain both a title and a subtitle. The following steps explain how
to enter text into a cell and determine where the second line of text
should begin.
2. Hold down the Alt key and press the Enter key. This will
start a new line of text in this cell location.
3. Type the text Retail Sales (in millions) and press the
Enter key.
Skill Refresher
Entering Multiple Lines of Text
9. This will open the Format Cells dialog box (see Figure 43).
All Excel formatting commands can be accessed through
this dialog box.
1.3 formatting and data analysis 55
10. In the Style section of the Borders tab, click the thickest
line style (see Figure 43).
11. Click the Outline button in the Presets section (see Figure
43).
12. Click the OK button at the bottom of the dialog box (see
Figure 43).
Skill Refresher
Preset Borders
Custom Borders
1.3.5 Autosum
4. Excel will provide a total for the values in the Unit Sales
column.
2 Chapter 3, formulas, page 141, in this book reviews mathematical formulas and
functions in detail.
58 fundamental skills
Skill Refresher
AutoSum
The default names for the worksheet tabs at the bottom of workbook
are Sheet1, Sheet2, and so on. However, the worksheet names can be
changed to identify the data each worksheet contains. Additionally,
the order that the worksheet tabs appear can be changed. The fol-
lowing steps explain how to rename and move the worksheets in a
workbook.
Integrity Check
Deleting Worksheets
Keyboard Shortcuts
• Press the Shift key and then the F11 key on the key-
board.
Skill Refresher
Renaming Worksheets
Moving Worksheets
Deleting Worksheets
Best Practice
Summary Worksheet
Key Take-Aways
Save
1.4 printing
Learning Objectives
4. On the Page Setup dialog box, click the Page tab, then
select Landscape.
6. Click OK.
Why?
Table 2 lists the various page layout settings and how they would
be used.
1.4 printing 65
name, and so on. The following steps explain how to add headers
and footers to the CH1-GMW Sales Data workbook.
Once the print settings have been adjusted and the headers and foot-
ers added, it is time to print the worksheet. The following steps ex-
plain how to print the worksheet in the CH1-GMW Sales workbook.
Key Take-Aways
3. In the Home tab of the Ribbon, set the font style to Ar-
ial and the font size to 12 points. Then click any cell to
deselect the worksheet.
19. Copy cell C3 and paste the contents into the range
D3:F3.
23. Copy the formula in cell B3 and paste it into the range
B4:B8.
27. Double click the Sheet1 tab at the bottom of the work-
sheet and change its name to Budget, then press the Enter
key.
6. Use the Auto Fill Handle to fill the Item Numbers from
B3 into the range B4:B13. The item numbers should
increase by one as they are filled through the range so
B13 is A1510.
8. Delete Column F.
11. Prepare A1:F1 for the title text by changing the fill color
of the cells in the range A1:F1 to Red, Accent 2, Darker
25%.
12. Make the following font changes to the range A1:F1: set
the font color to white, add italics, and set the font size
to 14.
14. Enter the title for this worksheet in the range A1:F1. The
title should appear on two lines. The first line should
read Status Report and the second line should read
Sales and Inventory by Item.
16. Format the values in the range C3:C13 with dollar signs
and two decimal places.
17. Format the values in the range E3:F13 with comma style,
zero decimal places.
2.1 formulas
Learning Objectives
75
76 mathematical computations
Category Definition
Household Money spent on electricity, heat, and water, cable,
Utilities phone, and Internet access
Food Money spent on groceries, toiletries, and related items
Gasoline Money spent on fuel for automobiles
Clothes Money spent on clothes, shoes, and accessories
Insurance Money spent on homeowners or automobile insurance
Money spent on school and property taxes (this
Taxes example of the personal budget assumes property
ownership)
Entertain- Money spent on entertainment, including dining out,
ment movie and theater tickets, parties, and so on
Vacation Money spent on vacations
Includes any other spending categories, such as
Miscella-
textbooks, software, journals, school or work supplies,
neous
and so on
The first formula added to the Budget Detail worksheet will calcu-
late the Monthly Spend values. The formula will be constructed so that
it takes the values in the Annual Spend column and divides them by
12. This will show how much money will be spent per month for each
of the categories listed in Column A. The following steps creates the
formula.
10. Type the number 12. This divides the value in cell D3
by 12. In this formula, a number, or constant, is used
instead of a cell reference because it will not change. In
other words, there will always be 12 months in a year.
Symbol Operation
+ Addition
− Subtraction
/ Division
∗ Multiplication
∧ Power/Exponent
month for each category because people often get paid and are billed
for these items monthly. This formula helps compare monthly income
to bills paid to determine whether there is enough income to pay the
expenses.
Why?
4. Double click cell C6. Notice that the cell reference in the
formula was automatically changed to D6.
Figure 58 shows the outputs added to the rest of the cell locations
in the Monthly Spend column. For each row, the formula takes the
value in the Annual Spend column and divides it by 12. In the figure,
cell D6 has been double clicked to show the formula. Notice that Ex-
cel automatically changed the original cell reference from D3 to D6.
This is the result of relative referencing, which means Excel automat-
ically adjusts a cell reference relative to its original location when it
is pasted into new cell locations. In this example, the formula was
pasted into eight cell locations below the original cell location. As a
2.1 formulas 81
result, Excel increased the row number of the original cell reference
by a value of one for each row it was pasted into.
Why?
9. Click cell E3. This completes the formula that will calcu-
late the percent change of last year’s actual spent dollars
vs. this year’s budgeted spend dollars (see Figure 59).
10. Press the Enter key. The result of this formula is 0.0%
since the values in Annual Spend and LY Spend are the
same.
12. Place the mouse pointer over the Auto Fill Handle.
13. When the mouse pointer turns from a white block plus
sign to a black plus sign, click and drag down to cell
F11. This pastes the formula into the range F4:F11.
Symbol Operation
Override Standard Order: Any mathematical computations
placed in parentheses are performed first and override the
standard order of operations. If there are layers of
()
parentheses used in a formula, Excel computes the
innermost parentheses first and the outermost parentheses
last.
∧ First: Excel executes any exponential computations first.
Second: Excel performs any multiplication or division
computations second. When there are multiple instances of
∗ or /
these computations in a formula, they are executed in order
from left to right.
Third: Excel performs any addition or subtraction
computations third. When there are multiple instances of
+ or −
these computations in a formula, they are executed in order
from left to right.
Why?
Figure 59 shows the formula that was added to the Budget Detail
worksheet to calculate the percent change in spending. The paren-
theses were added to this formula to control the order of operations.
Any mathematical computations placed in parentheses are executed
first before the standard order of mathematical operations (see Table
5). In this case, if parentheses were not used, Excel would produce an
erroneous result for this worksheet.
Figure 60 shows the result of the percent change formula if the
parentheses are removed. The formula produces a result of a 299900%
increase. Since there is no change between the LY Spend and the bud-
get Annual Spend, the result should be 0%. However, without the
parentheses, Excel is following the standard order of operations. This
means the value in cell E3 is divided by E3 first (3, 000/3, 000), which
is 1. Then, the value of 1 is subtracted from the value in cell D3
(3, 000 − 1), which is 2, 999. Since cell F3 is formatted as a percentage,
Excel expresses the output as an increase of 299900%.
84 mathematical computations
Figure 60: Removing the Parentheses from the Percent Change Formula
Skill Refresher
Formulas
Excel provides a few tools that can be used to review the formulas
entered in a worksheet. For example, instead of showing the outputs
for the formulas used in a worksheet, Excel can be set to show the
formula as it was entered in the cell locations. This is demonstrated
below.
can be seen. The column widths return to their previous width when
Show Formulas is deactivated.
Integrity Check
Skill Refresher
Show Formulas
Keyboard Shortcuts
Show/Hide Formulas
Two other valuable formula tools are Trace Precedents and Trace De-
pendents. These commands are used to trace the cell references used
in a formula. A precedent cell is a cell whose value is used in other
cells. The Trace Precedents command uses an arrow to indicate the
cells or ranges (“precedents”) which affect the active cell’s value. A
dependent cell is a cell whose value depends on the values of other
cells in the workbook. The Trace Dependents command shows where
any given cell is referenced in a formula. The following demonstrates
these commands.
Skill Refresher
Trace Dependents
Skill Refresher
Trace Precedents
Key Take-Aways
Formulas
Learning Objectives
Function Output
ABS The absolute value of a number
AVERAGE The average or arithmetic mean for a group of numbers
The number of cell locations in a range that contain a
COUNT
numeric character
The number of cell locations in a range that contain a
COUNTA
text or numeric character
MAX The highest numeric value in a group of numbers
The middle number in a group of numbers (half the
numbers in the group are higher than the median and
MEDIAN
half the numbers in the group are lower than the
median)
MIN The lowest numeric value in a group of numbers
The number that appears most frequently in a group of
MODE
numbers
The result of multiplying all the values in a range of cell
PRODUCT
locations
SQRT The positive square root of a number
The standard deviation for a group of numbers based on
STDEV.S
a sample
SUM The total of all numeric values in a group
6. Click cell C3 and drag down to cell C11. This places the
range C3:C11 into the function.
8. Press the Enter key. The function calculates the total for
the Monthly Spend column, which is $1,496.
Figure 64: Adding the SUM Function to the Budget Detail Worksheet
As shown in Figure 64, the SUM function was added to cell C12.
However, this function is also needed to calculate the totals in the
Annual Spend and LY Spend columns. The function can be copied and
pasted into these cell locations because of relative referencing, which
serves the same purpose for functions as it does for formulas. The
following demonstrates how the total row is completed.
Figure 65 shows the output of the SUM function that was added to
cells C12, D12, and E12. In addition, the percent change formula was
copied and pasted into cell F12. Notice that this version of the budget
is planning a 1.7% decrease in spending compared to last year.
Figure 65: Results of the SUM Function in the Budget Detail Worksheet
Integrity Check
that the percentages are being calculated in the rest of the cells in the
column and the divide-by-zero error is eliminated.
Skill Refresher
Absolute References
The next function that will be added to the Budget Detail worksheet is
the COUNT function. The COUNT function is used to determine how
many cells in a range contain a numeric entry. The COUNT function
will not work for counting text or other non-numeric entries. For the
Budget Detail worksheet, the COUNT function will be used to count
the number of items that are planned in Annual Spend (Column D).
The following explains how the COUNT function is added to the
worksheet by using the function list.
2.2 statistical functions 97
Figure 70 shows the function list box that appears after typing
the first letter of a function. The function list provides an alterna-
tive method for adding a function to a worksheet. Many users find it
easier to select a function from a list rather than try to remember the
function’s name.
Figure 70: Using the Function List to Add the COUNT Function
Figure 72: Selecting the AVERAGE Function from the Function Library
Figure 74 shows how a range of cells can be selected from the Func-
tion Arguments dialog box once it has been collapsed.
100 mathematical computations
Figure 74: Selecting a Range from the Function Arguments Dialog Box
Figure 75 shows the Function Arguments dialog box after the cell
range is defined for the AVERAGE function. The dialog box shows
the result of the function before it is added to the cell location. This
means that the function output is available before it is added to the
worksheet to determine whether it makes sense.
Figure 75: Function Arguments Dialog Box after a Cell Range Is Defined for
a Function
The final two statistical functions that will be added to the Budget
Detail worksheet are the MAX and MIN functions. These functions
identify the highest and lowest values in a range of cells. The fol-
lowing steps explain how to add these functions to the Budget Detail
worksheet.
Skill Refresher
Statistical Functions
As shown in Figure 78, the COUNT, AVERAGE, MIN, and MAX func-
tions are summarizing the data in the Annual Spend column. There
is also space to copy and paste these functions under the LY Spend
column. This allows a comparison between what was spent last year
and what is expected to be spent this year. Normally, functions would
be simply copied/pasted into the range E13:E16. However, notice the
double-line style border that was used around the perimeter of the
range B13:E16. If a regular Paste command is used the double line on
the right side of the range E13:E16 would be replaced with a single
line since the format for the copied cells will be used. Therefore, one
of the Paste Special commands will be used to paste only the functions
without any of the cell formatting. This is accomplished through the
following steps.
Figure 79 shows the list of buttons that appear when the down ar-
row is clicked below the Paste button in the Home tab of the Ribbon.
One thing to note about these options is that they can be previewed
before they are applied by hovering the mouse pointer over the op-
tions, one at a time. As shown in the figure, when the mouse pointer
is placed over the Formulas button, the function appearance is visible
before selecting. Notice that the double-line border does not change
104 mathematical computations
Skill Refresher
Paste Formulas
2. Click Data ⇒ Sort & Filter ⇒ Sort. This opens the Sort
dialog box, as shown in Figure 80.
many sort levels as necessary may be selected for the data contained
in a worksheet.
Skill Refresher
Sorting Data (Multiple Levels)
Now that the Budget Detail worksheet is sorted, a few key trends
can be easily identified. The worksheet clearly shows that the top
three categories as a percentage of total budgeted spending for the
year are Taxes, Household Utilities, and Food. All three categories are ne-
cessities (or realities) of life and typically require a significant amount
of income for most households. The Percent Change column indicates
how the planned spending is expected to change from last year. This
is perhaps the most important column on the worksheet because it
shows whether the budget plan is realistic. Notice that there are no
2.2 statistical functions 107
changes planned for Taxes and Household Utilities. While Taxes can
change from year to year, it is not too difficult to predict what they
will be. In this case, the assumption is that there are no changes to
the tax costs for the budget. The plan also includes no change in
Household Utilities. While these costs can fluctuate from year to year,
measures can be taken to reduce costs, such as using less electric-
ity, turning off heat when no one is in the house, keeping track of
the wireless minutes to avoid overage charges, and so on. As a result,
there is no change in planned spending for Household Utilities because
any rate increases will be offset with a decrease in usage. The third
item that is planned to not change is Insurance. Insurance policies for
cars and homes can change, but as is true for taxes, the changes are
predictable. Therefore, it is reasonable to assume no changes in the
insurance policy.
The first big change that is noticeable in the worksheet is the Food
and Entertainment categories in Rows 5 and 6 (see the category defi-
nitions in Table 3). The Percent Change column indicates that there is
an 11.1% decrease in Entertainment spending and an 11.1% increase
in Food spending. This is logical because if the plan is to eat in restau-
rants less frequently then eating at home will be more frequent. Al-
though this makes sense in theory, it may be hard to do in practice.
Dinners and parties with friends may be tough to turn down. How-
ever, the entire process of maintaining a budget is based on discipline,
and it certainly takes a significant amount of discipline to plan targets
and stick to them.
A few other points to note are the changes in the Gasoline and Va-
cation categories. Commuting to school or work means that the price
of gas can have a significant impact on the budget. It is important to
be realistic in the budget if gas prices are increasing. To compensate
for the increased spending for gas, the spending plan for vacations
has been reduced by 25%. Budgeting often requires a certain degree
of creativity. Although the Vacation budget has been reduced, there is
still money that can be set aside to make plans for long weekends or
other breaks.
Finally, the budget shows a decrease in Miscellaneous spending of
19.8%. This was defined as a group containing several expenses, such
as textbooks, school supplies, software updates, and so on (see Ta-
ble 3). This spending may be able to be reduced if items like online
textbooks can be used. This reduction in spending can free up funds
for Clothes, a spend category that has increased by 20%. This Personal
Budget workbook will be further developed in Section 2.3: Functions
for Personal Finance.
108 mathematical computations
Key Take-Aways
Statistical Functions
Learning Objectives
Excel functions used to calculate lease payments for a car and mort-
gage payments for a house.
Term Definition
Any item of value that is used to secure a loan to ensure
Collateral
payments to the lender.
The amount of cash paid toward the purchase of a house.
Down
A down payment of 20% means that 20% of the house’s
Payment
cost is being paid in cash and the rest is being borrowed.
Interest The interest that is charged to the borrower as a cost for
Rate borrowing money.
Mortgage A loan where property is put up for collateral.
Principle The amount of money that has been borrowed.
Residual The estimated selling price of a vehicle at a future point
Value in time.
Term The amount of time to repay a loan.
lower number, which reduces the interest charges. Finally, the figure
shows that the sum of the values in the Interest Payment column is
$29, 505. This is how much it costs to borrow this money over 10 years.
It is important to note that to simplify this example, the payments
were calculated on an annual basis. However, most loan payments
are made monthly.
of $25, 000. Because these are common transactions, the next section
uses Excel functions to calculate payments for both leasing a car and
buying a home.
Argument Definition
This is the interest rate the lender is charging the
borrower. The interest rate is usually quoted in annual
Rate
terms, so it must be divided by 12 to calculate monthly
payments.
The argument letters stand for “Number of Periods.”
This is the term of the loan, which is the amount of time
Nper allowed to repay the bank. This is usually quoted in
years, so it must be multiplied by 12 to calculate
monthly payments.
The argument letters stand for “Present Value.” This is
the principal of the loan or the amount of money that is
Pv borrowed. When defining this argument, a minus sign
must precede the cell location or value. For leases, this
argument is used for the price of the item being leased.
The argument letters stand for “Future Value.” The
brackets around the argument indicate that it is not
always necessary to define it. It is used if there is a
[Fv]
lump-sum payment that will be made at the end of the
loan terms. This is also used for the residual value of a
lease. If it is not defined, Excel will assume that it is zero.
This argument can be defined with either a 1 or a 0. The
number 1 is used if payments are made at the beginning
of each period. A 0 is used if payments are made at the
[Type] end of each period. The argument is in brackets because
it does not have to be defined if payments are made at
the end of each period. Excel assumes that this
argument is 0 if it is not defined.
4. In the Search for a function: input box at the top of the In-
sert Function dialog box, type payments (see Figure 84).
6. Scroll down to find and click the PMT option in the Se-
lect a function: box in the lower half of the Insert Function
dialog box.
10. Press the Enter key. This returns the Function Arguments
dialog box to its expanded form. Notice that the Nper
argument is now defined.
14. Press the Enter key. Notice that the Rate, Nper, and Pv
arguments are all defined for the function.
2.3 functions for personal finance 115
Keyboard Shortcuts
Functions
Figure 85: Function Arguments Dialog Box for the PMT Function
Integrity Check
4. Click cell B4. This is the interest rate being charged for
the lease.
9. Click cell B5. This is the term or the length of time for
the lease contract. Since the term is already expressed
in months, just reference cell B5 and move to the next
argument. If the term was defined in years instead of
months, it would need to be multiplied by 12 to convert
the years to months.
10. Press the Enter key. This returns the Function Arguments
dialog box to its expanded form. Notice that the Nper
argument is now defined.
14. Press the Enter key. Notice that the Rate, Nper, and Pv
arguments are all defined for the function.
17. Press the Enter key. Notice that the Rate, Nper, Pv and
Fv arguments are all defined for the function.
18. Click the Collapse Dialog button next to the Type argu-
ment in the Function Arguments dialog box. This is the
fifth and last argument defined in the function.
19. Type the number 1, which assumes that the lease pay-
ments will be due at the beginning of each month. For
payments made at the beginning of the period, a 1 is en-
tered in the Type argument box and for payments made
at the end of the period, a 0 is entered in the Type argu-
ment box.
20. Press the Enter key. Notice that the Rate, Nper, Pv, Fv
and Type arguments are defined for the function (see
Figure 87).
Figure 87: Function Arguments Dialog Box for the PMT Lease Function
Figure 88 shows the result of the PMT function for the car lease.
The monthly payments for this lease are $206.56. This monthly pay-
ment will be displayed in the Budget Summary worksheet.
Figure 88: Results of the PMT Function in the Car Lease Payments Work-
sheet
120 mathematical computations
Skill Refresher
PMT Function
Figure 89 shows how the cell reference appears in the Budget Sum-
mary worksheet. Notice that the cell reference D12 is preceded by the
Budget Detail worksheet name enclosed in apostrophes followed by
an exclamation point (’Budget Detail’!) This indicates that the value
displayed in the cell is referencing a cell location in the Budget Detail
worksheet.
Figure 89: Cell Reference Showing the Total Expenses in the Budget Sum-
mary Worksheet
13. Type the number 12. This multiplies the monthly lease
payments by 12 to calculate the total payments required
for the year.
Figure 90: Formulas Referencing Cells in Mortgage Payments and Car Lease
Payments Worksheets
Figure 91 shows the results of the formulas that were added to the
Budget Summary worksheet. The output for the formula in cell D7
shows that the net income exceeds total planned expenses by $1, 942.
Overall, having the income exceed expenses is a good thing because
the surplus can be saved for future spending needs or unexpected
events.
Now, a few formulas can be added that calculate both the spend-
ing rate and the savings rate as a percentage of net income. These
formulas require the use of absolute references, which were covered
earlier in this chapter. The following steps explain how to add these
formulas.
6. Press the Enter key. The result of the formula shows that
total expenses consume 94.1% of the net income.
Key Take-Aways
Learning Objectives
2. Click Print.
5. Type in 0.5 for the Left Margin and 0.5 for the Right
Margin.
Now that the entire worksheet is printing on one page, add a footer
with information about the date the file was printed along with the
filename. Chapter 1, fundamental skills, page 3, demonstrated
how to create headers and footers using the Insert ribbon tab. Headers
and footers can also be created using the Custom Header/Footer dialog
box.
2. Making sure to leave a space after the word on, click the
Insert Date button.
Key Take-Aways
Save
Running a lawn care business can be an excellent way for young peo-
ple to make money over the summer. It can also be a way to supple-
ment existing income for the purpose of saving money for retirement
or for a college fund. However, managing the costs of the business
will be critical for it to be a profitable venture. In this exercise, a sim-
2.5 chapter practice 133
ple financial plan will be created for a lawn care business by using
the skills covered in this chapter.
3. Leases worksheet.
a) Click cell F3. The PMT function will be used to cal-
culate the monthly lease payment for the first item.
For many businesses, leasing (or renting) equip-
ment is a more favorable option than purchasing
equipment because it requires far less cash. This en-
ables someone to begin a business such as a lawn
care business without having to put up a lot of
money to buy equipment. The PMT function can
be entered using the Insert Function button as seen
in this chapter, or the PMT function can be typed
directly into a cell. For this assignment, type the
function into cell F3 using the following instruc-
tions.
b) Type =PMT(. Define the arguments of the function
as follows.
i. Rate: Click cell B3, type a forward slash / for di-
vision, type the number 12, and type a comma
,. Since monthly payments are being calculated,
the annual interest rate must be converted to a
monthly interest rate by dividing by 12.
ii. Nper: Click cell C3, type *12 and then type a
comma ,. Like the Rate argument, the terms of
134 mathematical computations
5. Investments worksheet.
a) Click cell B10.
b) Enter a COUNT function that counts the number
of investments that currently have a balance in Col-
umn B. Make sure that the additional blank rows
in Row 6 through Row 8 are included in the range
for this function. The function output will automat-
ically change if any new investments are added to
the worksheet. It is important to note, however, that
the Total in cell B9 should not be included in the
Count range.
c) Click cell D3.
d) Type an equal sign =. Click the Annual Plan work-
sheet. Click cell D17 and type a forward slash /
for division. Click the Investments worksheet. Click
cell B10 and press the Enter key. This formula
divides the profit calculated on the Annual Plan
worksheet by the number of investments in the In-
vestments worksheet. This assumes that the profits
from this business will be invested evenly among
the funds listed in Column A of the Leases work-
sheet.
e) Before copying and pasting the formula created
in cell D3, absolute references must be added to
the cell locations in the formula. Edit the formula
in cell D3 on the Investments worksheet so that
cells D17 and B10 are absolute. The formula in
cell D3 should be: =’Annual Plan’!$D$17/ Invest-
ments!$B$10. When the formula is copied down
136 mathematical computations
from cell D3, the cell references will not change, be-
cause they are absolute. The formula will continue
to divide the Operating Income in cell D17 of the
Annual Plan by the Number of Investments in cell
B10 of the Investments sheet.
f) Copy cell D3 and paste it into cells D4 and D5 or
use the Auto Fill Handle to copy down.
g) Click cell B9.
h) Enter a SUM function that adds the current bal-
ance for all investments in Column B. Make sure
that blank rows (Row 6 through Row 8) are added
to the range for the function so additional invest-
ments will automatically be included in the Auto-
sum function output.
i) Copy the SUM function in cell B9 and paste it into
cell D9.
6. Copy the formula in cell E16 and paste it into cell E17.
Make sure cell E17 is formatted as a percentage with
two decimals and bold.
10. Use the Auto Fill Handle to copy the formulas in the
range B3:B5 to the range C3:C5.
11. Format the range B3:B5 for comma format with zero
decimal places. Format cells C3:C5 as percentages with
two decimal places.
Figure 103: Terms for the Purchase vs. Lease of the Car
16. Select the range A4:A8 and click the Increase Indent but-
ton once to indent the labels in Column A.
Learning Objectives
• Use the Quick Analysis Tool to find the Total Points and
Points Possible for all students.
• Write a division formula to find the Percentage for
each student, using an absolute reference to the Total
Points Possible.
• Write an IF Function to determine Pass/Fail where
passing is 70% or higher.
• Write a VLOOKUP to determine the Letter Grade us-
ing a Letter Grades scale.
• Use the TODAY function to insert the current date.
• Review common Error Messages using Smart Lookup
to get definitions of some of the terms in the spread-
sheet.
• Apply Data Bars to the Total Points values.
• Apply Conditional Formatting to the Percentage, Pass/-
Fail, and Letter Grade columns.
• Printing Review – Change to Landscape, Scale to Fit
Columns on One Page and Set Print Area.
141
142 formulas
Learning Objectives
1. Open the data file CH3-Data and save the file as CH3-
Grade Book.
3.1 more on formulas and functions 143
2. Click B25.
By default, the calculations that Excel copies change their cell ref-
erences relative to the row or column they are copied to. That makes
sense. Column N should not display an answer that uses the values
from Column K.
To see all the calculations that were just created, press Ctrl + ‘ (that
is the back-tic near the one on the keyboard, see Figure 106) Ctrl + ‘
displays the calculations (formulas) in each cell. Pressing Ctrl + ‘ a
second time will display calculations as values, which is the default
view for cells.
1. Select B5:N25
Excel searches the web for articles relevant to percentage and lists
links to those articles. Figure 109 illustrates the result of the search
done when this lesson was written, but that result will change de-
pending on what information is available on the web.
Now that the data needed for the Percentage calculation is known,
a formula can be written so Excel will complete the calculation. The
Total Points for each student must be divided by the Total Points Possi-
ble. Notice that there is a different number of points earned for each
student, but there is only one Total Points Possible — the value in cell
O25.
1. Click in P5.
3. Enter /
1. Click in P5.
4. Press Enter .
Skill Refresher
Absolute References
Key Take-Aways
Functions
Learning Objectives
3.2.1 If Function
• Logical test. This is the test to see if the value in a selected cell
expected. A test can be something like “B7 = 14” or “B7 > 12”
or “B7 < 6.”
1. Click in Q5.
• The Lookup value is the value to look up. For this exercise, the
lookup value will be the student’s percentage score in Column
P.
• The Table array is the range (or table) where the lookup values
are located. In this example the table of percentages and cor-
responding letter grades is in the range A28:B32. The lookup
value, or percentage grade in this case, should always be in the
first column in the table array for VLOOKUP to work correctly.
• The Col index num is the column number in the range that
contains the value to return. In this example, A28:B32 is the
Table array range so Column A is the first column (1), Column B
is the second column (2). To return the grade in Column B, the
number 2 would be entered as the Col index num.
• The Range lookup is TRUE for an approximate match or FALSE
for an exact match. If this is left blank the default value is TRUE,
or an approximate match.
Follow these steps to create the VLOOKUP to display the correct
Letter Grade in Column R.
1. Click in R5.
Figure 118 illustrates the grade book when the VLOOUP function
is applied.
154 formulas
Very often dates and times are an important part of Excel data. Num-
bers that are correct today may not be accurate tomorrow, so it is fre-
quently useful to include dates and times on the spreadsheets. Dates
and times fall into two general categories.
For the grade book, the date and time should be displayed in A2,
and it needs to be updated whenever the workbook file is opened.
3. Click OK.
4. The result in the formula bar is: =NOW() and the result
in A2 depends on the current date and time. The NOW
function is a very handy function; it takes no arguments
and is volatile! That is not as alarming as it may seem.
This just means that it does not need any information to
do its job and the results will change frequently.
Excel will update this field automatically whenever the file is saved,
reopened, or printed. It may also happen more frequently than that,
depending on how Excel is set up.
3.2 logical and lookup functions 157
3. Click OK.
7. Click OK.
Keyboard Shortcuts
Key Take-Aways
Date Functions
Learning Objectives
All necessary calculations are now in the CAS 170 Grades spreadsheet.
However, the grade book contains a lot of data. To make it easier to
quickly find the most important pieces of data, Excel provides Condi-
tional Formatting.
Excel places blue bars on top of the values; long blue bars for larger
numbers, shorter ones for smaller numbers. This makes it easier to see
how well each student did in the class immediately without having
to look at the specific numbers.
3.3 conditional formatting 159
3. Select Equal To
5. Click OK.
3.3 conditional formatting 161
Now, highlight students who are passing the class. This time use
the Pass/Fail text in the Pass/Fail column. If the text for a student is
Pass the cell should be formatted with a yellow fill and dark yellow
text.
162 formulas
3. Select Equal To
5. Click OK.
The default styles are a simple way to make specified data stand
out, but any cell formatting can be set. When using custom cell for-
matting, it is probably a good idea to include other styling in addition
to color. Remember that spreadsheets are often printed in black and
white so conditional formatting that relies only on color would be
lost. Next, use conditional formatting to display any Percentages that
are less than 60% with red text formatted in bold and italic.
4. Fill out the Less Than dialog box so that cells that are less
than 0.6 (that is 60%) will have conditional formatting.
Instead of using the default red text on a light red fill,
press the down arrow at the end of the with box and
select Custom Format.
5. On the Font tab of the Format Cells dialog box, in the Font
style box, select Bold Italic. In the Color box, select Red
(see Figure 126).
2. Click the Edit Rule button and change the 0.6 to 0.7 (see
Figure 128).
Next, preview the worksheet in Print Preview to check that the print
area setting worked and to make sure it is printing on one page.
Learning Objectives
The workbook used for this exercise contains data about the national
parks in the western United States. The workbook has been formatted
but needs to be reviewed for consistency and prepared for printing.
Figure 130 shows how the second page of the finished worksheet will
appear in Print Preview.
3.4 preparing to print 167
1. Open the data file named CH3-PTP Data and use the
File/Save As command to save it as CH3-National Parks.
5. Click OK.
Now that the cell and text formatting are corrected, review the work-
sheet in Print Preview. Notice that the worksheet is printing on mul-
tiple pages and it is not possible to know what each column of data
represents on some of the pages.
8. Press the Enter key. This returns the Page Setup dialog
box to its expanded form. Notice that that the Rows to
repeat at top argument is now defined as $1:$3.
9. Click OK.
in the middle of the information for a single park, but that will be
corrected next.
1. Click File ⇒ Print. Notice that the first three rows are
now repeated at the top of each page.
Skill Refresher
Creating Print Titles
• Open the Page Setup dialog box and click the Sheet tab.
• Click in the Rows to repeat at top: box or the Columns to
repeat at left: box.
• Click in the worksheet and select the row(s) or col-
umn(s) to be repeated on each page.
Notice that the data for California is split between the first and second
pages. Since it is desirable to keep all the data for each state on the
same page, the page breaks need to be adjusted. Start by inserting a
page break before the California data to force it to start on the second
page, then move the page break for the third page if needed. To make
these changes work in Page Break Preview.
3. There is now a solid blue line after Row 14, which indi-
cates a manual page break was inserted.
After looking at each page in Print Preview it was decided that the
third page should start with Montana. To make this change, move the
automatic page break that appears after Nevada.
4. Put the pointer over the dotted blue line, and it will
switch to a vertical double-headed arrow. Click on the
dotted blue line and drag it above Row 30 (Montana).
Now that the worksheet is printing on three pages, with page breaks
in appropriate places, it is time to add a header with the current date
and filename. A footer will also be added with the page number and
the total number of pages that will appear as Page 1 of 3.
13. Click File ⇒ Print. Check that the date and file name
are in the header and the page numbers in the footer are
correct.
3.4 preparing to print 175
14. Exit Print Preview by clicking the arrow button at the top
left corner of the preview.
Skill Refresher
Inserting Page Numbers
Key Take-Aways
Preparing to Print
Elijah and Kelly Williams are a recently married couple living in Port-
land, Oregon. Elijah works part time and attends the local community
college. Kelly works as a marketing manager at a clothing company in
North Portland. They are trying to decide if they can afford to move to
a better apartment, one that is closer to work and school. They want
to use Excel to examine their household budget. They have started
their budget spreadsheet, but they need help with it.
5. Select A2:O2.
9. Select A1:O1.
17. Delete the formulas from O7, O17, O24, O32, and O38.
107. Compare the result with the self-check answer key (PR3-
Williams Solution) and then close and submit the PR3-
Williams workbook as directed by the instructor.
on the form. Some of the more complex parts are determining if the
customer will get a discount (based on the customer status) as well
as the shipping charge (orders over $200 get free shipping). Use IF
functions for both of those calculations.
Edwina Copeland
4270 Heron Way Portland, OR 97225
503-779-1873
[email protected]
8. In cell F26, calculate the sum of all of the Item Total cells.
10. Calculate the Discounted Total for this order in cell F28.
Hint: Use a simple subtraction formula.
12. Calculate the Invoice Total in cell F31. Hint: This will be
the total of the Discounted Total and the Shipping Charge.
I N T E R M E D I AT E E X C E L
Learning Objectives
This section reviews the most used Excel chart types. To demon-
strate the variety of chart types available in Excel, it is necessary to
use a variety of data sets. This is necessary not only to demonstrate
the construction of charts but also to explain how to choose the right
type of chart given the data and idea being communicated.
Here are a few key points to consider before creating any chart in
Excel.
187
188 presenting data with charts
• Select the right chart type, based on the data and the message
to communicate.
Step Description
Identify the main idea being communicated. If there is
Define the
no main point or important message that can be
message
revealed by a chart, then do not create a chart.
Once there is a clear message, identify the data on a
Identify the worksheet that is needed to construct a chart. In some
data cases, formulas may be needed to better define the data,
needed or some data items may need to be consolidated into
broader categories.
Select a The type of chart selected will depend on the message
chart type being communicated and the data being presented.
After selecting a chart type, drawing a sketch is often
Identify the helpful in identifying which values should be on the X
values for Axis and Y Axis. In Excel, the axes are: the X, or
the X Axis “category,” axis, which is the horizontal axis, where the
and Y Axis labels are found; and the Y, or “value,” axis, which is the
vertical axis, where the numbers are found.
Figure 138 shows part of the data that will be used to create two
different line charts. The first will show the trend of the NASDAQ
stock index1 .
1 The NASDAQ data was found at http://www.investopedia.com/terms/n/nasdaq.as
p
4.1 choosing a chart type 189
Integrity Check
Why?
1. Click and drag the chart until its upper left corner is
near the top-left corner of cell B30.
4. Click the chart title once and then click in front of the
first letter. This should place a blinking cursor in front
of the letter which allows the title of the chart to be mod-
ified. Type the following in front of the first letter in the
chart title: May 2014-2016 Trend for NASDAQ Sales.
Figure 141 shows the line chart after it is moved and resized. Notice
that the title of the chart has been edited to read May 2014-2016 Trend
for NASDAQ Sales Volume. Notice that the sizing handles do not ap-
pear around the perimeter of the chart since the chart has been deacti-
vated. To activate the chart, click anywhere inside the chart perimeter.
4.1 choosing a chart type 193
Skill Refresher
Inserting a Line Chart
Integrity Check
Category Axis
Y Axis based on the data used to create the chart and the minimum
value is usually set to zero. That is usually appropriate. However,
depending on the data used to create the chart, setting the minimum
value to zero can substantially minimize the graphical presentation of
a trend. For example, the trend shown in Figure 141 appears to be in-
creasing slightly in recent months. The presentation of this trend can
be improved if the minimum value of the Y Axis started at 500, 000
instead of zero. The following steps explain how to make this adjust-
ment to the Y Axis.
3. In the Format Axis pane, click the input box for the Mini-
mum axis option and delete the content of that box. Then
type the number 500000 and press Enter . As soon as this
change is made the Y Axis on the chart adjusts.
Figure 143 shows the change in the presentation of the trend line.
Notice that with the Y Axis starting at 500, 000, the trend for the NAS-
DAQ is more pronounced. This adjustment makes it easier for the
audience to see the magnitude of the trend. Do be careful when ad-
4.1 choosing a chart type 195
Skill Refresher
Adjusting the Y Axis Scale
A second line chart will be created using the data in the Stock Trend
worksheet. The purpose of this chart is to compare two trends: the
change in NASDAQ Volume and Closing Price.
Before creating the chart to compare the NASDAQ Volume and Clos-
ing Price, it is important to review the data in the range B4:D28 on the
Stock Trend worksheet. Even a brief examination reveals that the NAS-
DAQ Volume and Closing Price cannot be used directly on the same
chart because the values are not comparable. That is, the NASDAQ
Volume is in a range of 684, 000 to 3, 711, 000 but the Closing Price is in
a range of $45.00 to $115.00. If these values are used without scaling,
the Closing Price would not be visible at all when compared to the
NASDAQ Volume.
196 presenting data with charts
The process to construct the second line chart will be like the first
one. The X Axis will be the month numbers in B4:D28.
Figure 144 shows the appearance of the line chart comparing the
NASDAQ Volume to the Closing Price before it is moved and resized.
Notice that the red line for Closing Price (labeled as Close in the legend)
appears as a straight line at the bottom of the chart. Also, the chart is
so large that it is covering the data and the title needs to be changed.
3. Edit the Chart Title text box and replace the contents with
24 Month Trend Comparison.
The Closing Price data is just a flat red line at the very bottom of the
chart and cannot be seen very well. That is because the scale for this
chart goes from 0 to 4, 000, 000 so the Closing Price data is compressed
at the bottom of the scale. Complete the following steps to add a
secondary axis to correct this problem.
1. Right click the red line at the bottom of the chart that
represents the Closing Price.
The chart is better; but it would be nice to be able to see that the
values on the right represent prices rather than just numbers.
4. Use the Symbol list box to add the $ (see Figure 146).
198 presenting data with charts
Now the chart makes it easy to compare the sales volume with the
closing price.
2. Hold down the Ctrl key and select D4:D28. Figure 148
shows the top of the two selected columns.
A column chart is used to show trends over time if the data is limited
to no more than twenty points. A common use for column charts is a
frequency distribution, which shows the number of occurrences by es-
tablished categories. For example, a common frequency distribution
used in most academic institutions is a grade distribution. A grade
distribution shows the number of students that achieve each level of a
typical grading scale (A, A-, B+, B, etc.). The Grade Distribution work-
sheet contains final grades for several hypothetical Excel classes. To
show the grade frequency distribution for all the Excel classes in that
year, the numbers of students appear on the Y Axis and the grade cat-
egories appear on the X Axis. The number of students for this chart
is in Column C. The labels for grades are in Column A. The following
steps explain how to create this chart.
The charts that have been created up to this point have been added
to, or embedded in, an existing worksheet (except the Instant Chart
created using F11 ). Charts can also be placed in a dedicated work-
sheet called a chart sheet because it contains only an Excel chart. Chart
sheets are easier to navigate than having multiple charts embedded
in a single worksheet. The following steps explain how to move the
grade frequency distribution chart to a dedicated chart sheet.
This replaces the generic name in the input box (see Fig-
ure 152).
Why?
Figure 153 shows the Final Grades for all Excel Classes column chart
is in a separate chart sheet. Notice the new worksheet tab added to
the workbook matches the name entered into the Move Chart dialog
box. Since the chart is moved to a separate chart sheet, it is no longer
displayed in the Grade Distribution worksheet.
204 presenting data with charts
4. Click E4.
7. Click F4.
4.1 choosing a chart type 205
Next, create a column chart that uses the grade categories in the
range A4:A8 on the X Axis and the percentages in the range E4:F8 on
the Y Axis.
1. Select A3:A8 then hold down the Ctrl key and select
E3:F8.
Figure 155: Completed Data Series for the Class Grade Distribution
Figure 156 shows the final appearance of the column chart. The
column chart is an appropriate type for this data because there are
fewer than twenty data points and it is easy to compare each cate-
gory. A reader can quickly see that the spring class issued fewer A’s
compared to the rest of the academic year, but more B’s and C’s.
4.1 choosing a chart type 207
Integrity Check
A pie chart is used to show a percent of total for a data set at a specific
point in time. The data used to demonstrate a pie chart is related to
enrollment data for Portland Area Community Colleges for Fall of
2014. That data is found on the Enrollment Statistics sheet.
2. Select A2:B6.
5. Click off the slices and then click the white canvas to
deselect the pie and select the entire chart.
6. Click and drag the pie chart, so the upper left corner is
in the middle of cell E2.
8. Click the chart legend once and press the Delete key. A
pie chart typically shows labels next to each slice. There-
fore, the legend is not needed.
9. Right click any of the slices in the pie chart and select
Add Data Labels from the list. This will add the values
for each of the slices in the pie.
10. Now, right click one of the numbers that was just added
to the pie chart and select Format Data Labels from the
list. This will open the Format Data Labels pane on the
right.
12. Click the Close button at the top of the Format Data Labels
pane.
Skill Refresher
Inserting a Pie Chart
The last chart type demonstrated in this chapter is the stacked column
chart. A stacked column chart is used to show a percent of a total.
For example, the data on the Enrollment Statistics worksheet shows
student enrollment by race for several colleges. Suppose that it was
necessary to show all the data for all colleges.
2. Select A2:D6.
Figure 162 shows the column chart that is created after selecting
the 100% Stacked Column format option. As mentioned, the goal of
this chart is to show the enrollment of students by race. However,
notice that Excel places the racial categories on the X Axis. It would
be more useful if the college names were on that axis instead.
212 presenting data with charts
The reason that Excel organized the data this way is that there
are more Race/ethnicity categories (data in Column A) than there are
colleges (data in Row 2). This is not a bad guess on Excel’s part; but
this is not what is wanted in this case. The next steps explain how to
correct this problem and complete the chart.
4. Click the legend one time and press the Delete key on
the keyboard.
Figure 164 shows the final stacked column chart. Notice the sim-
ilarities and differences in the enrollments at the local community
colleges.
Skill Refresher
Inserting a Stacked Column Chart
Key Take-Aways
Save
Learning Objectives
3. Change the font to Arial, the Font Style to Bold, and the
Size to 11 (see Figure 165).
4. Click OK.
7. Change the font to Arial, the Font Style to Bold, and the
Size to 11.
10. Change the font to Arial, the Font Style to Bold, and the
Size to 14.
7. Click the Close button at the top of the Format Axis pane.
Note
Experiment!
Skill Refresher
Formatting the X Axis and Y Axis
Skill Refresher
X Axis and Y Axis Number Formats
6. Click and drag the left sizing handle so the legend is just
touching the horizontal grid lines of the plot area and
the bottom sizing handle, so the entire legend is visible
(see Figure 169).
Skill Refresher
Formatting the Chart Legend
Skill Refresher
Formatting the Chart Title
Titles for the X Axis and Y Axis are necessary for defining the num-
bers and categories presented on a chart. For example, by looking at
the Grade Distribution Comparison chart, it is not clear what the per-
centages along the Y Axis represent. The following steps explain how
to add titles to the X Axis and Y Axis to define these numbers and
categories.
Skill Refresher
X Axis and Y Axis Titles
4. Click the word Fill (if needed) to expand the list of Fill
options.
3. Click on one of the Data Labels for the first data series.
Notice that all the data labels for that data series are
selected.
5. Click on one of the data labels for the second data series.
Using Home ⇒ Font, change the font to Arial, Bold, Size
9.
Figure 176 shows the Grade Distribution Comparison chart with the
completed formatting adjustments and labels added to the data series.
Note that each individual data label can be moved if two data labels
4.2 formatting charts 227
Skill Refresher
Adding Data Labels
Skill Refresher
Formatting a Data Series
Series lines are used in stacked column charts to show the change
from one stack to the next. Annotations are useful for clarifying the
data presented in a chart or for identifying data sources. In addition
to demonstrating these skills, this section will review several of the
formatting skills that were covered earlier.
228 presenting data with charts
3. Select New sheet and type the following in the input box:
Enrollment by Race Chart.
10. Click the border of the Y Axis title to select the entire
title. When active, the title will have a resizing handle at
each of the four corners.
11. Using Home ⇒ Font, change the font to Arial, Bold, size
14.
13. Click the Y Axis title to select it. When active, the title
will have a resizing handle at each of the four corners.
14. In the Format Axis Title pane change the fill color to Blue,
Accent 1, Lighter 80% and the border color to Dark Blue,
Text 2, Lighter 60% .
17. Using Home ⇒ Font, change the font of the chart title
to Arial, Bold, size 20.
20. Right click on any of the series lines added to the chart.
Clicking one line will activate all lines on the chart. (If
the Format pane is open there is no need to right click.
Just left click on any of the series lines to change the
format pane to Format Series Lines.)
21. Select Format Series Lines. This will open the Format
Series Lines pane.
Figure 178 shows the appearance of the chart with the series lines
connecting the two stacks. This formatting enhancement is common
for stacked column charts. The lines help focus the audience’s atten-
tion to changes in the percent of total trend.
1. Select the Plot Area. Place cursor on the top center han-
dle of the Plot Area and drag down about 1/2 inch. (See
Figure 179.)
4.2 formatting charts 231
2. Place the mouse pointer on the left edge of the chart area
approximately one-quarter inch from the top. Click and
drag a rectangle approximately one and a half inches
wide and one-quarter inch high. Do not worry if it is not
exact, it will be moved and resized later.
4. Select all the text in the text box. (The text can be selected
by either dragging over it with the mouse or by clicking
on the border of the text box once).
6. Resize and position the text box, so it fits above the 100%
label on the Y Axis, as in 180
• Mt Hood — 9,276
• Portland — 30,929
• Clackamas — 7,302
9. Check to be sure the text boxes look like Figure 180 and
then save the CH4-Charting workbook.
10. Excel also makes several graphic objects like circles, ar-
rows, and stars available to draw attention to elements
on charts. It is important to keep in mind the purpose
of a chart is to present information to the audience, not
show off the skill of the designer, so do not overdo these
types of graphic objects.
18. Using Home ⇒ Font, change the font to Arial, 12pt, Bold
font.
20. Using the drag handles, resize and position the callout
box so it is like Figure 182.
Skill Refresher
Adding Series Lines
Skill Refresher
Adding Annotations
Integrity Check
Key Take-Aways
Formatting Charts
Learning Objectives
Charts that are created in Excel are used in Microsoft Word® doc-
uments or PowerPoint® presentations and Excel provides options for
pasting a chart’s image into either. Additionally, a link can be estab-
lished between Excel and Word or PowerPoint so that if the data
changes in the Excel file it is automatically updated in the Word or
PowerPoint files. Both methods of sharing a chart are covered in this
section.
Note
Resizing Images
Skill Refresher
Pasting a Chart Image into Word
Linking this chart caused trouble with the text boxes, so delete
them.
1. Select each text box by hovering the mouse over the out-
side edge of the text box until it changes into a four-
headed arrow, then click.
10. Save all files and close PowerPoint. The files will be sub-
mitted at the end of the next section.
Figure 188 shows the appearance of the PowerPoint slide after the
Excel chart was added.
244 presenting data with charts
Skill Refresher
Pasting a Linked Chart Image into PowerPoint
Integrity Check
Key Take-Aways
Integrity Check
Severed Link?
Learning Objectives
The first worksheet, Closing Prices, is a chart sheet. This means that it
contains only a chart with no data; but it still needs to be reviewed in
Print Preview.
The next worksheet (Stock Trend) has data and two charts. To print the
data and the charts, the page setup will need some modification.
6. Notice that there are now five pages. The data and charts
are still splitting across multiple pages, but the numbers
in Column AH are no longer printing.
248 presenting data with charts
The data is still split between Page 2 and Page 3, and the charts are
splitting oddly as well. The first step to fix these issues is to change
the page orientation and scaling.
2. This puts all the data on one sheet, but the charts are
still split between two pages.
Figure 190: Page Break Preview before moving the charts in Step 3
Figure 191: Page Break Preview after moving the charts and text
The data source link text should not print on its own page, but
there is no room to move it onto the same page as the charts. To fix
this, remove the automatic page break between the charts and the text
in M31:M32.
Sometimes a worksheet may have both data and a chart but only
the chart should print. That is the case with the Enrollment Statistics
worksheet.
Since the beginning of the previous century, the United States has set
a minimum wage to set a “floor” beneath which wages cannot fall.
Most states have set their own minimum wages, but none are lower
than the national minimum wage2 .
and thinks that dates are part of the data instead of la-
bels.
7. Click the chart title once and then click in front of the
first letter. A blinking cursor appears in front of the letter.
Type the following in front of the first letter in the chart
title: US National (be sure to leave a space after the word
National).
9. Float the cursor over the available styles to see how each
will affect the chart. Select Style Four, which fills a verti-
cal stripe pattern under the line.
10. The years across the X Axis are a little hard to read. Se-
lect the labels so there is a box surrounding the list of
years.
14. Close the print preview by clicking the arrow at the top
left corner of the preview screen.
254 presenting data with charts
In the past 40 years, between 1970 and 2010, life expectancy for Ore-
gon men improved by 8.7 years and for women by 5.5 years. Ore-
gon’s life expectancy has remained slightly higher than the U.S. aver-
age. The life expectancy will continue to improve for both men and
women; however, the gain for men has been outpacing the gain for
women. Consequently, the difference between men’s and women’s
life expectancies has continued to shrink3 .
The Legend Entries in the large box on the left side of the Select Data
Source box need to be corrected. Also, the Horizontal Axis Labels are
just a series of default numbers, but they need to be the range that
contains the years.
10. Resize the chart using the following values. For each
side of the chart, press the Alt key while dragging the
resize handle on the chart.
12. The green line across the bottom of the chart repre-
sents the difference between men’s and women’s life ex-
pectancy, but it is not helpful as it is. Right click on the
green line to open the context menu. Select Format Data
Series. In the Format Data Series pane, under the Series
Options tab, select the radio button in front of Secondary
Axis.
16. Click Chart Tools Design ⇒ Chart Styles and select the
first style. ( Excel 365 named the tab Chart Design.)
5. Edit the text of the Chart Titles on all three charts and
format the title font: Arial, bold, 18pt.
Learning Objectives
This section reviews the fundamental skills for setting up and main-
taining an Excel table. The objective used for this chapter is the con-
struction of a multi-sheet file to keep track of two cities’ national
weather data for the month of January. Organizing, maintaining, and
reporting data are essentials skills for employees in most industries.
Figure 197 shows the completed workbook that will be created in
this chapter. Notice that this workbook contains four worksheets. The
first worksheet contains weather data for Portland, Maine, the second
contains weather data for Portland, Oregon, the third organizes the
Oregon data by week, and the fourth contains subtotals for the Ore-
gon data.
261
262 tables
• Do not skip columns and rows just to “space out” the infor-
mation. To place white space between information in adjacent
columns and rows, widen columns, heighten rows, or change
the alignment.
• Reserve a single column at the left edge of the table for the
table’s row headings or identifying information.
• Reserve a single row at the top of the table for the table’s column
headings.
• If the table requires a title, put the title in the row(s) above the
column headings.
Following these rules will help ensure that the sorts, filters, totals,
and subtotals applied to the table with return the desired results.
With these rules in mind, begin working on National Weather work-
book.
5.1 basic table skills 263
7. Click OK.
8. Click A5.
After this, the top of the worksheet will look like Figure 199.
264 tables
Notice that a new ribbon tab, Table Tools Design, appears when the
mouse is clicked inside the table. This ribbon tab contains controls
to edit, style, and add functionality to the table. ( Excel 365 . The tab is
named Table Design, not Table Tools Design.)
5. Click OK.
6. Click A5.
Skill Refresher
Create a Table
There are many ways to format an Excel table. One of the easiest to
use is a preset Table Style using Light, Medium, or Dark colors. There
are also a variety of Table Style Options as listed in Table 19.
Over time, new data will need to be added to a table, and that should
be added in a blank row. The easiest way to do this is to enter the
data below the last row in the table, then sort the table to arrange its
data. If data must be added in a specific place in the middle of a table,
insert a blank row and add the data there.
Add the last three days of the months to the Portland ME and Port-
land OR worksheets. The following steps walks through this process.
2. Click on A34 (the left-most cell below the last row in the
table).
2. Click on A34 (the left-most cell below the last row in the
table).
4. In the Find box, type 3.4, and then click Find Next.
Skill Refresher
Finding and Replacing Data
4. Scroll up and down the sheet and notice that the head-
ings are always displayed at the top of the table. Also,
notice that a thin line appears under Row 5 to mark the
bottom of the frozen section.
If this is done correctly, the snowiest day, January 3rd (in Row 6)
with 0.73 inches of snow, will sort to the top of the list. Notice the filter
arrow changes in the snow column to a downward pointing arrow
to indicate that the column is sorted in descending order (largest to
smallest).
Skill Refresher
Sort a Column
6. To add a 2nd level sort, click Add Level at the top left
corner of the dialog box.
9. Click OK.
10. The table sort results should look like Figure 208. Notice
for the two days with 0.08 inches of snow, the low temp
of 35.5 on Day 9 is displayed before the low temp of
36.2 on Day 25. The lowest of the two was listed first.
Also notice that the filter arrows changed on the sorted
columns to show how they are sorted.
274 tables
In most cases, the data should be sorted in “typical” sort order: num-
bers sorted highest to lowest, words sorted alphabetically, etc. Some
data does not make sense when sorted this way. For example, if the
days of the week are sorted alphabetically, the result would be Friday,
Monday, Saturday, Sunday, Thursday, Tuesday, and Wednesday. This
order would be of no use to anyone! Similarly, the months of the year
would not make sense alphabetically.
To illustrate how days can be sorted, a Week number column was
added to the Weekly OR sheet. Then, the Day column was changed
from a number to names like Sunday. This sheet facilitates further
analysis of the data to see if there are weekly trends in the weather.
To look for those trends, sort the Weekly OR sheet by Week and then
by Day.
2. Click cell A5
4. Click OK.
9. To add a 2nd level sort, click Add Level at the top left
corner of the dialog box.
11. In the same row, click the down-arrow for Order and se-
lect Custom List. The dialog box should look like Figure
209 will appear on the screen.
14. The Sort dialog box should look like Figure 210.
276 tables
16. The sorted table should now look like Figure 211. Notice
the data is in Week order and, within each week, in Day
order.
Key Take-Aways
Learning Objectives
When an Excel table is first created, filter arrows appear in all the
column headings. Those arrows can be used to sort the data by a sin-
gle column. These same arrows can also be used to filter or limit the
displayed data within a column. There are many ways to filter data
within a column depending on whether the data is text or numeric.
Notice there is sometimes more than one way to filter data (i. e.with
a filter choice or a checked box). There are also single criteria filters
and multi-criteria filters. As an introduction to filtering, look at just
the first week of data in the Weekly OR sheet.
6. Click OK.
The table should look like Figure 212. Only seven rows of Week
One are visible in the table. Notice in the Status Bar at the bottom
of the screen the message “7 of 31 records found”. Also notice that
the filter arrow in the Week heading has changed to a funnel which
indicates that this column is currently filtered.
Skill Refresher
Filter a Column
Un-Filter a Column
7. Click OK.
280 tables
It is now easy to see that it was above 32 degrees for only the first
three days, as illustrated in Figure 214.
Potential Error
Slicer Connections
2. Drag the slicer box so the top left corner is near the cen-
ter of cell G5.
3. Click in the slicer and scroll down to Day 15. Click the
15 button to show only the data for day 15 in the data
table.
5. Click the Slicer buttons for Days 10 through 14. The table
should now show the data from Days 10 − 15.
2. Clear the filter from the High column by clicking the fil-
ter down-arrow and then Clear Filter from High (°F).
6. Click cell D37 (in the Rain column), and then click the
down-arrow that appears on the right of the cell.
Now switch to the Weekly OR sheet and add a Slicer and Total Row
to this table.
5.2 advanced table skills 285
4. Drag the slicer so the top left corner is near the center of
cell H5.
Skill Refresher
Add a Total Row
Skill Refresher
Add a Slicer
5.2.4 Subtotaling
10. Click the down-arrow for Order and select Custom List.
11. Select the custom list Sunday, Monday, Tuesday, etc. (See
Figure 209 through Figure 211 for a review of Custom
Sorting.)
The data should look like Figure 222. Successful subtotaling shows
only one subtotal for each group in the column sorted by. (HINT: If
there is more than one Subtotal for the same group (i. e.one of the
days of the week in the example), then the column was not sorted
before subtotaling. Remove the subtotals using the Remove All button
in Figure 221, sort the table, and then subtotal again.)
Click the three Outline buttons to see the difference in the data
displayed.
2. Only the Grand Average row with averages for High, Low,
Rain, and Snow should be visible.
4. The average for each day of the week along with the
Grand Average are now visible.
6. This expands just the Sunday Day data and displays the
individual records for this subset of the data. Clicking
on + Sign buttons will expand a portion of the data at
a time. Clicking on – Sign buttons hide a portion of the
data at a time.
Key Take-Aways
Learning Objectives
Now that the weather data has been sorted, filtered, and subtotaled
as needed, it is time to print the worksheets. Start with the Portland
ME worksheet.
Notice that cells A1, A2, and A3 are not merged and centered over
the entire width of the table.
5.3 preparing to print 291
Next, open Print Preview and determine what page setup options
need to be set.
10. In the Left section: box type File: (making sure to leave a
space after the colon).
11. Click the Insert File Name button (see Figure 224).
14. The completed Footer dialog box should look like Figure
225. Click the OK button twice to return to Print Preview.
15. Confirm that the footer appears correctly, then click the
arrow at the top left corner of the screen to exit Print
Preview.
The image now appears on the worksheet, but not in the desired
location. It is also slightly larger than desired (see Figure 227).
7. If one or more Slicer buttons are cut off, exit Print Pre-
view, and resize the Slicer so that all of the buttons dis-
play then return to Print Preview.
9. Click the arrow in the top left corner of the screen to exit
Print Preview.
14. Click the arrow in the top left corner of the screen to exit
Print Preview.
Key Take-Aways
Printing
Travel and tour companies need to keep track of client data as well
as travel/tour options and tour guides. Keeping up-to-date, accurate
296 tables
1. Open the data file PR5-Data and save the file as PR5-
Canyon Trails.
5. Click cell A3. Insert a table with headers for the range
A3:J53.
11. Make another copy of the Current Tours sheet and re-
name it US Guests.
15. Add a Total Row that sums the Guests and Total Cost
columns.
16. Make another copy of the Current Tours sheet and re-
name it European Guests.
5.4 chapter practice 297
22. Make one more copy of the Current Tours sheet and
rename it Tours by State.
23. Place the Tours by State sheet to the right of the Euro-
pean Guests sheet.
24. Subtotal the sheet by Tour State, summing the Total Cost
column. (Remember to sort the worksheet by Tour State
before applying subtotals.)
28. For any worksheets that print on more than one page,
add Print Titles to repeat the first three rows at the top
of each page.
29. Make sure the sheets are in the following order from left
to right: Current Tours, Tours by Canyon, US Guests,
European Guests, and 5 − 7 Day Tours by State.
Retail companies with online and in-store sales have a huge quantity
of data to keep track of. Keeping track of sales, costs, and profits
on a daily basis is essential to making the most of a business. This
exercise illustrates how to use the skills presented in this chapter to
generate the data needed on a daily basis by a retail company. Figure
229 shows the completed worksheet.
6. Copy J4 to J5:J52.
8. Copy K4 to K5:K52.
10. Click cell A3. Insert a table with headers for the range
A3:K52. BE CAREFUL HERE: Excel will try to insert a
table starting with A2. Be certain the range starts with
A3.
Sales by Product
4. Insert a slicer for Product Sold. Move the slicer so its top
left corner is near the center of L3. Click-and-drag the
bottom right corner of the slicer so it is near the center
of O16.
7. Add a Total Row that includes the average for the Product
Price, Product Cost, and Profit columns.
Subtotals by Date
Subtotals by Type
Print Settings
Learning Objectives
303
304 multiple sheets
2. Hold down the left mouse button and then press and
hold down the Ctrl key.
3. Drag the mouse to the right and drop the copied work-
sheet to the right of the November worksheet.
12. Hold down the left mouse button and then press and
hold down the Ctrl key.
13. Drag the mouse to the right and drop the copied work-
sheet to the right of the December worksheet.
Skill Refresher
Copying a Worksheet
3. While still holding the left mouse button, drag to the left
until a black arrow marker is between the October and
November worksheets.
Since the Practice worksheet is not needed, use the following proce-
dure to delete it.
3. Click Delete.
Important!
Deleting a Worksheet
All 12 worksheets are selected. This can be verified in two ways: the
worksheet tabs that have been selected are in bold font at the bottom
of the screen and the title bar at the top of the screen adds the word
Group to the end of the title. These are both visible in Figure 234.
4. Click cell I6. (I6 and I7 are merged, but that does not
matter.)
Notice that a data bar was set up in I5 to visually show the income
spent, which is a skill that is covered elsewhere in the course. The
January worksheet should now look like Figure 235.
Look at the Notes in the September worksheet. It says that the rent
was raised in September, so the Gym Membership needs to be cancelled
and $0 should be entered for that amount in October, November, and
December.
Skill Refresher
To Group Worksheets
To Ungroup Worksheets
Key Take-Aways
Worksheets
Learning Objectives
Best Practice
Summary Worksheet
Skill Refresher
To SUM Across Worksheets
10. Hold the Shift key down and click on the December
worksheet.
While the 3-D formulas are complete in the Expenses Summary work-
sheet, the summary feels like it is lacking something, so add a visual
representation of the summary numbers to the worksheet.
3. Resize the pie chart using the values below. For each side
of the chart, press the Alt key while dragging the resize
handle on the chart to make it “lock into” position.
6.2 formulas with 3-d references 315
Skill Refresher
3-D References in Formulas
Key Take-Aways
3-D References
6.3 templates
Learning Objectives
The screen should look like Figure 240 below. Notice the design,
layout, and formulas have already been set up.
Skill Refresher
Predefined Template
Note: There are only formulas and the pie chart in the Expenses Sum-
mary worksheet, so nothing needs to be deleted from this worksheet
to setup the template.
320 multiple sheets
6. Click Save.
Skill Refresher
Save a Template
Use the new budget template to start a Personal Budget file for
2017.
7. Click Save.
Key Take-Aways
Templates
Learning Objectives
Key Take-Aways
Printing
The coaches of the Pacific Northwest Soccer Club want a consistent way
to keep track of their team statistics. To help with this, create a tem-
plate for season stats for each team. The High Flyers team coach will
use the template to enter that team’s statistics into a workbook.
1. Open the data file PR6-Data and save the file as PR6-
Pacific NW Sports Team.
6.5 chapter practice 327
6. Copy B9 to B10:B18.
7. Copy B9 to C9:C18.
13. Using Home ⇒ Font ⇒ Fill Color, set Row 10, Row 12,
Row 14, Row 16, and Row 18 to No Fill.
15. Exit Print Preview by clicking the arrow in the top left
corner of the screen.
16. Click the tab to activate each of the six worksheets one
at a time and then click Page Layout ⇒ Page Setup ⇒
Print Area ⇒ Clear Print Area for each worksheet.
12. Enter the park data for each of the parks in the five work-
sheets.
a Note: The National Park 2015 Data is from: https://irma.nps.gov/Stats/S
SRSReports.
Non- Non-
Recreation Recreation
Name recreation recreation
Visitors Hours
Visitors Hours
Acadia NP 2, 811, 184 47, 100 14, 452, 151 47, 100
Blue Ridge PKWY 15, 054, 603 1, 942, 260 93, 977, 122 971, 136
Crater Lake NP 614, 712 49, 600 4, 033, 484 24, 800
Yellowstone NP 4, 097, 710 1, 156, 118 82, 016, 845 711, 795
Yosemite NP 4, 150, 217 155, 081 78, 505, 877 3, 993, 223
Conces- Conces-
Tent RV
Name sioner sioner
Campers Campers
Lodging Camping
Acadia NP 0 0 135, 000 32, 094
Blue Ridge PKWY 53, 688 0 61, 481 33, 499
Crater Lake NP 34, 629 55, 596 7, 548 0
Yellowstone NP 552, 940 584, 979 104, 149 69, 830
Yosemite NP 938, 418 0 588, 701 284, 372
Back- Misc
Name country Overnight
Campers Stays
Acadia NP 1, 233 8, 343
Blue Ridge PKWY 2, 101 1, 294
Crater Lake NP 3, 253 0
Yellowstone NP 44, 898 11, 715
Yosemite NP 211, 966 39, 214
A D VA N C E D E X C E L
7.1 safeguarding
Learning Objectives
337
338 working with data
4. Select E2, which is the first cell that needs data valida-
tion.
Note
Validation List Location
For this exercise the list of valid zip codes was con-
tained on the same worksheet as the cells to be validated.
However, the validation list is normally found on a dif-
ferent worksheet so it can be protected and, optionally,
hidden from the user.
A second validation method is used when the user can enter data
that cannot be selected from a list. For example, if users are required
to enter their age then a drop-down list containing every possible age
is not reasonable. In this case, Excel can be set up to ensure that the
data entered is within certain specific bounds. For example, an “age”
entry could be between 20 and 65 for working adults (or maybe some
other range). Data validation can use a full set of Boolean compar-
isons (between, equal to, greater than, etc.). As part of the process,
various messages can be displayed when the cell is selected to help
guide the user. Finally, the action taken when invalid data is entered
(Stop, Warning, or Information) can be specified.
2. Select F2, which is the first cell that needs data valida-
tion.
8. Click the Input Message tab and enter Age for the Title
and Input an age between 20 and 65. for the Input Mes-
sage.
9. Click the Error Alert tab and select the Stop style then
enter Age for the Title and Input an age between 20 and
65. for the Input Message.
12. Click in F2 to activate that cell. Notice that the help mes-
sage pops up. Enter some number in F2. If that number
is between 20 and 65 then the entry works without error,
but if anything else is entered, an error message pops up
and forces a correct number to be entered.
18. Click the Error Alert tab on the Data Validation dialog
box.
22. Click in F2 to activate that cell. Notice that the help mes-
sage pops up. Enter some number in F2. If that number
is between 20 and 65 then the entry works without er-
ror, but if anything else is entered, a warning message
pops up and permits the user to continue with the bad
number or retry.
23. Enter these numbers into cells F2:F11: 19, 50, 67, 40, 53,
35, 60, 23, 65, 21. A warning should pop up for F2 and
F4 since those entries are out of the acceptable range,
but click Yes on the warning popup box so the data is
entered.
25. Notice that the cells containing bad data are now circled
so they can be corrected.
Note
Data Validation
cells can still be edited. Follow these steps to unlock cells that should
remain editable.
1. Select A2:F11. These are the only cells that users should
be able to modify.
7. Click OK.
8. Notice that now the mouse cannot click in any cell ex-
cept A2:F11
Important!
About Passwords
Important!
Security
Key Take-Aways
Safeguarding
Learning Objectives
To use Excel’s powerful tools for analysis, data must first be im-
ported into a spreadsheet. Data can be imported from many sources,
but two common ones are from the web and from a datafile located
on the local computer. Data is very often posted on the web for re-
searchers to use in their projects. The United States federal govern-
ment, for example, has more than 200, 000 datasets freely available in
fields like taxes, crime, trade, education, and dozens of other topics1 .
Sometimes, that data can be imported directly into Excel but more
often it must be downloaded to a local computer and then imported
into Excel from that file. This section demonstrates both of those pro-
cedures.
1 See https://www.data.gov/
7.2 importing data 347
Important Note
4. Press OK
Normally, raw data includes unnecessary rows and columns that will
need to be “cleaned up” a bit before it can be imported. This is a
process that is called Transforming and Excel makes that process easy
to complete.
2 See Chapter 5, tables, page 261 for more information about tables.
350 working with data
10. In the same way, click the down arrow beside the Area
column heading and uncheck all rows that are not state
names, like “East North Central,” and then click OK.
(Note: leave District of Columbia and Puerto Rico in the
list.)
4. Navigate to CH7-Data.csv.
5. Click the file name and then Import. Figure 270 shows
the Import Data dialog box.
Figure 272 shows the first few lines of the worksheet which has the
imported data in a table that can be manipulated like any other table.
7.3 pivot tables 355
2. Delete Sheet1.
Key Take-Aways
Importing Data
Learning Objectives
Pivot tables dynamically summarize data and are a favorite tool for
analysts since they are highly customizable and enormously power-
ful. These tools are called pivot tables because the data displayed can
be easily pivoted from rows to columns and back. Pivot tables are
sometimes called contingency tables or crosstabs and are frequently
seen in reports where tabular data is presented. A common example
of a pivot table is found in newspapers and magazines during elec-
tions where the editor creates a table showing the number of voters
by party, gender, race, or other factors. For this exercise, sales data
from a small supplier will be analyzed.
5. Click OK.
7.3 pivot tables 357
8. A blank pivot table has six areas of interest for this les-
son, as shown in Figure 275.
• A. The Pivot Table will appear in the large area on
the left (it is blank in the illustration).
• B. The Field List contains the names of all the fields
available in the data set. These are the column head-
ers in the data table.
• C. Filters is where complex filters can be created to
restrict the data displayed on the pivot table.
• D. Column Labels define the columns on the pivot
table.
• E. Row Labels define the rows on the pivot table.
• F. Values define the numeric data calculated and
displayed in the pivot table.
358 working with data
9. Drag and drop Region in the Field List to the Rows area.
10. Drag and drop Item in the Field List to the Rows area
under Region.
11. Drag and drop Units in the Field List to the Values area.
Excel automatically displays the number of units sold
for each item, the total sold by region, and a Grand Total.
With just a few clicks of the mouse, Excel has created a
useful decision-making chart for managers. Figure 276
illustrates the pivot table at this point.
12. Click and drag Item from the Row Labels area to the Col-
umn Labels area. (Note, this can also be done by clicking
the down-arrow for Item and selecting Move to Column
7.3 pivot tables 359
13. Uncheck Units in the Field List. This removes it from the
pivot table and leaves only labels with no numbers.
14. Check Total in the Field List. This is the total value of
the items sold and Excel places Total in the Values area
since it contains numbers. The table now reports the to-
tal value of all sales by region and item.
e) Click OK.
f) Click OK.
4. Click OK.
8. Drag Total from the Field List to Values. The pivot table
now shows the total sales by date. Clicking the plus sign
beside the years and quarters in the pivot table drills
down to specific quarters and months of interest.
10. To filter the data, click the down arrow to the right of the
Column Labels or Row Labels headers on the pivot table
(see Figure 284). Check only those regions or dates that
should be included in the pivot table. For example, click
the down arrow to the right of the Column Labels and
uncheck everything except East then click OK. Notice
how the pivot table is updated to include only the East
region. Also notice that the dropdown includes options
to sort the data in the pivot table.
11. All regions should be included for the rest of this exer-
cise, so click the down arrow to the right of the Column
Labels and check Select All then click OK.
13. In the Grouping popup box, the start/end dates for the
data can be specified to limit the data shown in the pivot
table. For this exercise, leave the dates at their default
(two entire years), but click months so it is no longer high-
lighted then click OK. Figure 286 illustrates the Group-
ing popup box after the Months item is inactivated. This
will remove the Months drill down capability and only
show years and quarters in the pivot table. By using this
option, details can be removed from the pivot table so
trends may become more visible.
14. Drag Rep from the Field List to the Filters area. Notice
that the pivot table now has a selector in cell B1 so a spe-
cific representative (or group of representatives) can be
used to filter data on the pivot table. Click the down ar-
row for the Rep filter, select Andrews, and click OK. No-
366 working with data
15. This pivot table will be used to create a pivot chart in the
next section; however, the filter is not needed. Uncheck
Rep in the Field List to remove that from the filter area.
Key Take-Aways
Pivot Tables
Learning Objectives
Key Take-Aways
Learning Objectives
One of the strengths of creating a pivot table is that the table can
be used to create a chart and as the table is modified the chart is also
automatically modified. Follow these directions to explore the power
of pivot charts.
6. Click OK.
10. In the Field List, click the checkboxes for Rep and Total.
Excel creates a bar chart that shows the total sales for
each Representative, as illustrated in Figure 290.
13. Click the down arrow for the Sum of Total item in the
Values area of the pivot table.
15. Click the Show Values As tab in the Value Field Settings
popup box.
21. Click the + sign at the top right of the pie chart and then
click Data Labels to display the percent of each slice.
23. Enter Sales by Item as the chart title and then click off
the chart so it is no longer selected.
Key Take-Aways
Pivot Charts
Learning Objectives
11. Click in the right section to activate it and then click the
Insert Date button.
Key Take-Aways
Preparing to Print
Learning Objectives
8.1.1 Sparklines
383
384 forecasting
8. Click OK.
a The climate data was found at https://www.usclimatedata.com/climate/un
ited-states/us
Excel creates a tiny line graph that shows the monthly precipitation
for the entire year.
Now Excel displays a sparkline for each of the cities. While it is not
possible to see the details for any specific month and city, it is easy
to spot trends. For example, Portland OR has less precipitation in the
late summer while Chicago IL seems to start out slow in January and
then grow through the spring and early summer. A business manager
could use a sparkline to easily detect trends in data.
6. Click OK.
7. Copy N4 to N5:N8.
a The climate data is from https://www.usclimatedata.com/climate/united-
states/us
8.1 advanced charts 387
Excel creates a bar graph that shows positive values in blue and
negative values in red. This does not show the magnitude of each
value, but only whether it is positive or negative in nature. This type
of sparkline is useful for quickly determining things like if a stock
price is increasing or decreasing.
Excel can easily create trend lines on graphs to indicate data trends.
These lines can optionally be extended to forecast how the data may
soon move.
6. Click OK.
The trend lines described above are easy to add to a chart, but Excel
includes a tool called Forecast Worksheet that creates a forecast along
with confidence levels.
4. Click Create.
8.1.4 3D Maps
Information
Enable 3D Maps
9. Click and drag Year in the Field List to the Time setting.
Not much changes, but a timeline bar is added to the
bottom of the map. The small triangle marker under the
timeline can be moved left and right to display the pop-
ulation for any desired point of time.
10. Click the down arrow to the right of Year in the Time
setting and select Year in the drop-down list.
11. Click Play Tour at the left edge of the ribbon. Excel will
“play” the entire timeline in ten seconds (that timing can
be changed). When the video is finished playing, click
the left-arrow button in the lower left corner of the video
screen to return to the map editor.
12. Click the Pencil icon to edit Layer 1 in the Layers Pane
and change the name of the layer to Population.
13. Click Add Layer at the top of the Layer Pane. Excel adds
a new layer under the Population layer.
14. Rename Layer 2 to Counties.
15. By default, Excel places the County data field in Location.
Leave this in place.
16. Click and drag County from the Field List to Category.
The County data field is now in two settings, Location
and Category. Excel now treats each county as a separate
category and colors the columns different colors for each
county.
17. Click Region on the visualization bar (it is the last op-
tion). The Region button is outlined in red in Figure 320.
The counties are now colored so they are easy to see.
18. The county colors are a bit bright, so click the triangle
beside Layer Options to open that setting.
400 forecasting
19. Move the Opacity slider to about 50%. That will dim the
county colors while leaving the population columns the
same.
20. Notice that each county’s color can be set using the color
dropdown, so it would be easy to highlight a county in
some bright color like red while using duller colors for
the other counties.
21. Click the Play Tour button to see what the tour looks
like with the county colors.
At this point, this tour is nearly done. However, there are just a few
settings that can be tweaked a bit.
1. Click Tour 1 at the top of the Tour Editor and enter Popu-
lation.
4. The legend is not needed for this map, so click that box
and delete it. Note: both layers create a legend, and both
should be deleted. Either legend can be turned back on
if desired by clicking the Legend button on the ribbon.
10. Click Tour Editor, Layer Pane, and Field List to turn off
those dialog boxes. These can always be turned back on
if desired.
There are only two other buttons on the ribbon that have not been
described.
Excel also adds a text box to the active worksheet to let users know
that there are 3D Map tours available in the workbook (see Figure
322).
10. Click and drag Sector in the GDP Field List to the Cate-
gory setting.
11. Click the pencil icon beside Layer 1 and change the name
of this layer to GDP 2015.
13. Excel displays all 15 sectors for each state, but that is too
many to be useful. Click the triangle arrow beside Filters
to open that setting then click Add Filter.
16. Click Flat Map and then adjust the map to fit on the
screen. Remember that Alaska and Hawaii need to be
visible on the map. Also, experiment with the four arrow
and plus/minus buttons to adjust the display to get the
best view of the columns.
17. Move and resize the legend so it displays all four sec-
tors without a lot of wasted space and it does not cover
Hawaii.
18. The colors used for the four sectors are difficult to differ-
entiate. Click the triangle arrow beside Layer Options to
open that setting. In the Color section, select each of the
sectors and choose a color that makes it easy to differen-
tiate from other sectors.
20. Click Tour 1 at the top of the Tour Editor. Enter GDP as
the name of the tour.
23. Click Text Box to add a text box to the tour. For Title,
enter Industry. For Description, enter GDP for four in-
dustrial sectors: Agriculture, Construction, Manufactur-
ing, and Mining. Select white as the background color
for the text box.
24. Click Create to create the text box and close the dialog.
25. Position and resize the text box over Canada so it does
not cover data displayed for the United States.
28. Play the tour to see what it looks like. The map size and
orientation (using the arrow buttons on the map), along
with the locations for the legend and text box can be
adjusted for the best possible display.
29. Add a second scene for this tour. Click the New Scene
drop-down arrow and select Copy Industry. Excel will
create a copy of the Industry scene so only a few changes
need to be made to continue the tour.
8.1 advanced charts 405
31. While the Service scene is active, open the Filters setting
and uncheck everything, then check Education services,
health care, and social assistance; Finance, insurance,
real estate, rental, and leasing; Information; and Other
services, except government.
33. Double-click the text box and change the title to Service
and the description to GDP for four service sectors: Ed-
ucation, Finance, Information, and Other.
35. Add a final scene for this tour. Click the New Scene
drop-down arrow and select Copy Service. Excel will
create a copy of the Service scene so only a few changes
need to be made to continue the tour.
37. While the Retail scene is active, open the Filters setting
and uncheck everything, then check Professional and
business services; Retail trade; and Transportation and
warehousing.
39. Double-click the text box and change the title to Retail
and the description to GDP for three retail sectors: Pro-
fessional Services, Retail Trade, and Transportation and
Warehousing.
41. Click Tour Editor, Layer Pane, and Field List to turn off
those dialog boxes. These can always be turned back on
if desired.
406 forecasting
43. To save the map, click File ⇒ Close. The map is saved as
part of the workbook and will be available the next time
the workbook is opened.
The two maps created in this lesson are simple but demonstrate the
two most powerful 3D Maps concepts: 1) Using a timeline to focus
on a change in data over a defined term, and 2) building a tour by
combining two or more scenes. Excel’s 3D Map is a powerful decision-
support tool and any time spent mastering it is worthwhile.
Key Take-Aways
Advanced Charts
Learning Objectives
12. Leave the Row input cell box empty since this data table
only calculates data in a column. In the Column input cell
box, enter Projected Growth, which is the name for cell
B4, the projected growth rate. Figure 325 illustrates the
completed Data Table dialog box.
The data table displays the projected revenue for each of the growth
rates in Column D. This analysis assumes that the number of tickets
sold will increase. However, it is possible that ticket sales will de-
crease. Change the values in cells D5:D14 so some are negative and
notice that the projected revenue automatically updates to display
losses.
11. In cells E4:I4, enter 10, 15, 20, 25, and 30.
14. In the Row input cell box, enter the reference for the data
found in Row 4. In the example, Row 4 contains the loan
term, and that is found in cell $B$2. Note: this must be
an absolute reference (with the dollar signs) or the data
table function will fail.
15. In the Column input cell box, enter the reference for the
data found in Column D. In the example, Column D con-
tains the interest rate, and that is found in cell $B$3.
Note: this must be an absolute reference (with the dollar
signs) or the data table function will fail.
The data table displays the payment due for each combination of
interest rate and loan term. Borrowers could then use this information
to negotiate a rate and term that fits their budget. Note: the payments
are negative since they represent money leaving the borrower’s bank
account.
8.2.2 Scenarios
Users may have data in a worksheet and want to change some of the
variables to see the effect. For example, a business owner may want
to consider “best case” and “worst case” values and then compare
the results. This type of analysis is called a scenario in Excel.
4. Click OK.
5. The Scenario Values box will pop up. This is where the
user can insert various values for the changeable cells.
For this first scenario, none of the values will be changed,
so click OK.
8. Click OK.
12. Morgan and Phoenix can now jump between the Current
and Vacation budgets by selecting them in the Scenario
Manager box and clicking the Show button.
13. To reset the budget back to its baseline, select Current
and click Show in the Scenario Manager box.
14. Next, they want to consider a budget for if one of them
starts college. For that, they believe that they will have to
find a smaller apartment near the campus and cut their
other expenses significantly.
418 forecasting
16. Name the new scenario College and enter Starting col-
lege classes as a comment. Accept all other default val-
ues for this scenario and click OK.
17. In the Scenario Values box, enter 700 for rent, 100 for elec-
tricity, 200 for insurance, 175 for food, 50 for clothes, 50
for entertainment, and 50 for miscellaneous, then click
OK.
20. Name the new scenario House and enter Possible new
house as a comment. Accept all other default values for
this scenario.
21. Even though they will not have rent, they will have a
mortgage payment. For this worksheet, enter 1250 as
rent to cover the cost of a mortgage payment. Enter 150
for electricity, 75 for water, 350 for insurance, 250 for
food, 75 for clothes, 50 for entertainment, and 100 for
miscellaneous.
22. At this point, there are four scenarios, and each can be
viewed by clicking its name and Show in the Scenario
Manager box.
8.2 what-if analysis 419
25. The result cell, B23, is the Savings cell and this is the best
option for reporting the results of each scenario.
27. Excel produces a nice report that shows the values that
were changed for each scenario and the result on their
savings.
Use Goal Seek to determine the optimum interest rate for the pay-
ment desired.
2. In the Set cell box, enter the reference for the cell that
contains the formula to be resolved. In the example, this
formula is in cell B4.
3. In the To value box, enter the desired result -900. Note this
number is negative because it represents money being
paid out of a checking account.
4. In the By changing cell box, enter the reference for the cell
that contains the value to adjust, or B3 in this example.
Note: The cell that Goal Seek changes must be referenced
by the formula in the cell specified in the Set cell box.
422 forecasting
5. Click OK.
8.2.4 Solver
This workbook has only one worksheet, Planner. The worksheet has
some information already filled in. The company has four different
coaches: Deluxe, Large, Mid-Size, and Mini. For each type of coach, the
passenger capacity is listed. Also, the cost of operating the coach per
mile is specified. Finally, the number that the company has on hand is
listed. For example, a Deluxe coach can carry 56 passengers at a cost
of $2.80 per mile to operate. The company has two Deluxe coaches on
hand.
Cells A14:B15 on the worksheet is where information about a trip
is entered. For example, the worksheet is set up for a trip of 300 miles
that a group of 350 people want to take.
The goal is to have Excel calculate the optimum mix of coaches to
get a total capacity (cell B11) greater than the number of riders (B15)
at a minimum cost (cell B12). This is a perfect job for Solver.
Solver is part of Excel, but it is considered an Add-in and must be
activated before it can be used. Note: this process only needs to be
done one time, so if Solver is already activated, this part of the exercise
can be skipped.
5. Click Go.
7. Click OK.
10. In the Set Objective box, click the selector button and then
click cell B12 to select it. This sets the Solver to solve for
the total cost of the coaches. (Note: since cell B12 has a
name, the Solver may display the name Ttl Cost instead
of B12.)
11. For To, Select the Min radio button. This sets the Solver
to look for the minimum cost for the mix of coaches it
recommends.
13. Click Add beside the Subject to the Constraints box to add
the constraints for the Solver.
426 forecasting
14. Specify that cell E6 must be <= cell D6. That means that
the number of Deluxe coaches allotted for the trip must
be less than or equal to the number on hand.
18. There are now two constraints, but the cell names are
used rather than the location identifiers. The first con-
straint requires the number of coaches allotted be less
than the number on hand and the second requires only
complete coaches be allotted.
20. Add a constraint that B11 must be >= B15 since all
riders need to have a seat on a coach.
After a few seconds, the Solver will calculate the mix of coaches
that yields the least cost. Notice that the Solver changed the Allotted
values for each of the coaches along with the Total Capacity and Total
Cost to match the optimal solution. Also, notice that the total coach ca-
pacity is 354 for the solution while there are only 350 riders, so there
will be four empty seats on the coaches. This solution will cost Peo-
pleMover Transportation $4, 575.00 so they would have to price tickets
appropriately.
428 forecasting
2. Save CH8-PeopleMover.
Key Take-Aways
What-If Analysis
in November who then later meet to vote for the President. This exer-
cise draws a 3D Map of the Electoral College presidential votes since
1912.
7. Click the pencil icon beside Layer 1 and change the name
of this layer to Votes.
10. Click the down arrow to the right of Year in the Time
setting and select Year in the drop-down list.
11. Click and drag Party in the Electoral College Field List to
the Category setting.
13. Click the down arrow to the right of Votes in the Size
setting and select No Aggregation in the drop-down list.
14. Click Flat Map and then adjust the map to fit on the
screen. Remember that Alaska and Hawaii need to be
visible on the map. Also, experiment with the four arrow
and plus/minus buttons to adjust the display.
430 forecasting
17. Click Tour 1 at the top of the Tour Editor. Enter Election
as the name of the tour.
18. The displayed date shows the day, month, and year, but
election results only change every four years. To make
the date display more appropriate, right-click it and se-
lect Edit. In the edit box, choose the Time Format that
only shows the year without the month and day. Change
the background color of the date display to white. Click
Accept to lock in these changes.
20. Add a text box with the title of Elections and this de-
scription: Results of the Electoral College votes for 1912-
2016. Set the background color of the text box to white.
Once the box is created, resize and position it so it does
not cover any of the states.
21. Resize and position the legend box so it does not cover
any of the states.
24. Click Tour Editor, Layer Pane, and Field List to turn off
those dialog boxes. These can always be turned back on
if desired.
27. In the Create Video dialog box, select Quick Export & Mo-
bile, then click Create. Save the video in the same folder
as PR8-Elections. Note: The video is being created at the
lowest possible resolution so the file is small to make it
easier to submit it to the instructor; to create a video de-
signed to be presented to clients, it should be created at
a higher resolution.
28. To save the map, click File ⇒ Close. The map is saved as
part of the workbook and will be available the next time
the workbook is opened.
The Giant Electronics company is a local small business that sells dis-
counted electronic devices, like televisions and computers. The own-
432 forecasting
ers, Addison and Kelsey, are planning for their annual spring promo-
tion and want to create a good mix of sale items.
2. In the Set Objective box, click the selector button and then
click cell B14 to select it. This sets the Solver to solve for
the total profit of the sale items. (Note: since cell B14
has a name, the Solver may display the name Total Profit
instead of $B$14.)
3. For To, Select the Max radio button. This sets the Solver
to look for the maximum profit for the mix of products
it recommends.
6. Click Solve.
5. Click OK.
Addison and Kelsey decide that they want to sell more than 10
cameras and they think that 100 game cartridges are too many.
6. Click Solve.
Addison and Kelsey would like to boost their profit a bit so they de-
cide to adjust the selling price for two items. They think the television
could sell for $1199 and the computer for $999.
8.4 scored assessment 435
1. Click C6 to activate that cell and enter 1199 for the new
television selling price.
2. Click C7 to activate that cell and enter 999 for the new
computer selling price.
Addison and Kelsey could continue adjusting the sale prices and
the maximum number of each item to order to come to what they
believe is the optimum mix of products for their spring sale.
Take a look at Answer Report 1, Answer Report 2, and Answer Report
3 to compare the results of each scenario. It would be easier to see all
three scenarios in a single report.
Information
Filled Maps
After Excel 2016 was released, Microsoft added a new feature, Filled
Maps. This feature was added to Excel installations that included an
Office 365 subscription, but not to stand-alone installations. As a re-
sult, some Excel 2016 installations will have Filled Maps available but
others will not. This addendum was included with this chapter for
students who have access to Filled Maps, but it is not considered part
of the formal Excel training course.
7. Click the paint brush tool at the top right corner of the
map to change the style and colors for the map. Click
Color in the popup menu.
In the same way that the cigarette use rate was mapped, any of
the types of cancer can be mapped. The limitation is that only one
variable, plus the state names, can be mapped at one time. However,
if managers had sales data available, this would be a great way to
determine, for example, where their best customers live so they can
plan some sort of promotion.
A D VA N C E D T O P I C S
9
Excel includes many advanced features not covered elsewhere in this
book and they were gathered in this final chapter. Most of these fea-
tures are only occasionally used but when needed, they provide an
essential resource.
Learning Objectives
This worksheet contains the May 2020, sales report for MongoSales
Corp. The report includes the sales representative name, the district,
name, and Zip Code for the company that purchased items, the date
of the purchase, the item purchased, the number of units purchased,
price per unit, and total sale value. (Note: this is dummy data.) The
worksheet needs to be converted to a table to use it as a database.
439
440 advanced topics
4. Click OK.
Excel creates a data table (Figure 354), which has many of the prop-
erties expected of a database.
Along with simple sorting and filtering, Excel provides the following
functions that are designed to be used with a database.
• DMIN. Returns the minimum value from a field that meet spec-
ified conditions.
4. Data criteria items that appear in the same row are com-
bined with an AND, so the range K11:L12 would be
read “Calculate the sum of all lines that include a rep-
resentative named Findlay AND an item named True-
Trax.”
1. In both cells K18 and L18, enter Date (the Date will be
entered two times in the criteria); in cell M18, enter Item;
and in cell N18, enter Count.
Creating a data table is easy in Excel, then the Data formulas make
it easy to create complex calculations by simply specifying the desired
criteria in a range of cells.
Key Take-Aways
Database Functions
Learning Objectives
Excel includes more than 300 functions that are designed to process
both text and numbers. Most of those functions are only useful in
specific situations and most users will never know that they exist;
however, many functions are so commonly used that they show up
in many spreadsheet projects. This section provides information and
practice with 20 of the most useful Excel functions.
A contact roster will be used for the exercises in this section. This
file contains information that would be used by sales representatives
as they work with a company’s clients. The roster needs to be cleaned
up a bit for more efficient use. (Note: this roster contains fake data.)
9.2.1.1 To Columns
4. Excel starts a data wizard to help split the data. The first
screen is used to adjust from delimited to fixed width
data type, but the default, delimited, is correct, so click
Next.
9.2.1.2 Trim
= T RIM(text)
The TRIM function is used to trim unwanted spaces from the start
or end of text in a cell.
8. Delete Column D.
9.2.1.3 Upper/Lower/Proper
= UPPER(text)
= LOWER(text)
= PROPER(text)
Often, the text case needs to be changed. The UPPER function
changes text to upper case, the LOWER function changes text to lower
case, and the PROPER function changes to title case (the first letter of
each word is capitalized).
8. Delete Column C.
9.2.1.4 Left/Right/Mid
9.2.1.5 Concatenate
8. Delete Column F.
9.2.1.6 Search
3. In cell K1, enter Year. This column will contain the ex-
tracted year.
9.2.1.7 VLookup
9.2.2.1 Sum
9.2.2.2 Average
9.2.2.3 Min/Max
9.2.2.4 Round
9.2.2.5 If
9.2.2.6 SumIf/SumIfS
9.2.2.7 CountIf/CountIfS
9.2.2.8 Randbetween
9.2.2.9 Today/Now
= T ODAY()
= NOW()
These two functions insert the current date into a worksheet cell.
These functions must include the final parenthesis, even if they are
empty. The only difference between the two functions is that TODAY
inserts only the date while NOW inserts the date and time. Note:
the format for the date and time is determined by settings on the
computer. These functions are mostly used in the header or footer in
print settings.
9.2.2.10 Date/DateDif
9.2.2.11 AND/OR
6. Copy K2 to K3:K101.
9.2.2.12 NOT
= NOT (logical)
This function will test different a logical condition and return either
TRUE or FALSE depending on the outcome of the test.
5. Copy E2 to E3:E101.
8. Copy E2 to E3:E101.
Key Take-Aways
Useful Functions
9.3 statistics
Learning Objectives
4. Click Go.
6. Click OK.
9.3.2.1 Correlation
9. Click OK.
9.3.2.2 Descriptives
9.3.2.3 Histogram
7. Labels: Checked
Key Take-Aways
Statistics
9.4 macros
Learning Objectives
11. Type your first and last name and press Enter .
Figure 392 shows a drop-down menu at the bottom right corner of the
Save-As screen where Excel Macro-Enabled Workbook must be selected.
Since this macro will not be reused in the future, close the work-
book without saving.
Key Take-Aways
Learning Objectives
The Options area is divided into 11 different tabs and each tab
includes settings for many preferences. Here is a brief overview of
the different option tabs.
Category Settings
These are the commonly modified settings, such
General
as the interface, user name, and Start screen.
Settings to control calculations, error-checking,
Formulas
and formulas.
Proofing Options for spell-check and auto-correct.
Settings that govern saving, autorecovery, and
Save
web server options.
Chose the primary and other languages used for
Language
editing, tooltips, and help.
Settings that concern accessibility, including an
Ease of Access accessibility checker and various settings for
sounds and font.
Numerous settings that are not often changed,
Advanced
divided into five areas.
Customize Add and remove items from the ribbon, also
Ribbon rearrange or rename the ribbon tabs and groups.
Add and remove items from the Quick Access
Quick Access
Toolbar, rearrange the toolbar, and specify its
Toolbar
location.
Add-ins Activate or remove various add-ins.
Manage certificates and other Excel security
Trust Center
features.
9.5.1 General
screen tip style Screen tips are the pop-up boxes with brief help
for the various buttons on the ribbon. Some users find these
distracting and the can be turned off with this setting.
use this as the default font Use this to change the default font
used in new workbooks. Also, the default font size can be set if
a larger size is needed.
user name This is the author’s name that is saved with the work-
book.
9.5.2 Formulas
9.5.3 Proofing
This tab includes the various settings for spell-check, like ignore up-
percase words. It also includes the Autocorrect options. Normally, the
default settings for these items is adequate but that can be changed
at this tab.
9.5.4 Save
default local file location This is the default location for files
on initial save or a “Save As” operation.
9.5.5 Language
Excel uses the Windows system language and that is normally accept-
able. However, this tab makes it possible to change the default Office
language for both viewing and editing.
9.5.7 Advanced
The ribbon is highly customizable from this tab. Users can add/re-
move items from the ribbon, change the order of the items on the rib-
bon, create new groups, rename items, and generally whatever they
want to do to make the ribbon work best for themselves. Customiza-
tions can even be exported in a file that can be imported on another
computer so users can make Excel on all the computers they use look
the same.
In addition to the customizations on this tab, the General Tab in-
cludes an option to collapse the ribbon automatically.
9.5 excel preferences 487
The Quick Access Toolbar is one of the most useful Excel feature.
Users can add links to their most often used Excel functions, so they
are easily available without clicking on any ribbon links. The Quick
Access Toolbar is set up with the links the user wants. Optionally, the
Quick Access Toolbar can be moved to under the ribbon.
The Quick Access Toolbar is found at the upper left side of the Ex-
cel screen above the Ribbon, as shown in Figure 394. This area pro-
vides access to the most frequently used commands, such as Save and
Undo. The Quick Access Toolbar can be customized by activating com-
mands that are extensively used or inactivating commands that are
not needed. By placing these commands in the Quick Access Toolbar,
it is not necessary to navigate through the Ribbon to find them. To
customize the Quick Access Toolbar, click the down arrow as shown
in Figure 394. This will open a menu of commonly used commands
that can be added to the Quick Access Toolbar by checking them. If
the desired command is not on the list, select the More Commands op-
tion, which opens a screen containing every command on the ribbon.
As an additional modification, the Quick Access Toolbar and be placed
below the ribbon by clicking Show Below the Ribbon and many users
prefer it in that location.
9.5.10 Add-ins
Key Take-Aways
Preferences
Excel has had a long and expansive lifetime. It should not be surpris-
ing that along the way people who use Excel would find interesting
things to do with Excel that are not exactly in the users’ manual. This
final section of the book lists a few of the fun facts about Excel along
with the things people have done with this versatile application.
This exercise uses data on 392 car models that was collected by David
Donoho and Ernesto Ramos for the 1982 Exposition of Statistical Graph-
ics Technology hosted by the Committee on Statistical Graphics of the
American Statistical Association (ASA). The dataset is commonly used
in statistics classes and can be found at several online locations, in-
cluding https://github.com/sandialabs/slycat-data.
5. Delete Sheet1.
11. Click the filter symbol on the right side of the Make col-
umn header for Column A.
Once a data table is prepared it can be used for analysis. For this
exercise, several different analysis techniques are used.
17. Excel reports 25.66667 as the average MPG for 1970 cars
with 4 cylinders.
18. In cell F4, enter 72. Notice that Excel automatically up-
dates C3 and C4 to reflect the values for 1972 cars.
19. In cell F4, enter 71 to change back to that year and match
the labels in B3 and B4.
24. Excel reports 23.8 as the average MPG for 1971 cars with
4 or 6 cylinders.
Excel reads the criteria range such that items in a single row are
joined with an “AND” and multiple rows are joined with an “OR.”
Thus, the criteria in E3:F5 reads (Cars with 4 cylinders AND year 71)
OR (Cars with 6 cylinders AND year 71). Complex Boolean conditions
can be specified using multiple rows and columns.
If a cell in a criteria range is empty, then Excel matches it to all
entries in the data table.
Cell Content
B7 Max MPG, American
C7 =DMAX(Cars[#All],”MPG”,$G$3:$G$4)
F8 Year
G8 Origin
F9 < 76
G9 American
B8 Min MPG, Yr<76, American
C8 =DMIN(Cars[#All],”MPG”,$F$8:$G$9)
F10 < 76
G10 European
B9 Avr MPG, Yr<76, American or European
C9 =DAVERAGE(Cars[#All],”MPG”,$F$8:$G$10)
The Figure 398 shows the Summary Table at this point, but it could
easily be extended with various combinations of criteria to extract
whatever information is desired from the cars data.
6. Click OK.
15. Adjust the chart so the top left corner is in D22 and the
bottom right corner is in K38.
This workbook has two worksheets. The Data sheet contains the
raw data that will be analyzed for this exercise and the Notes sheet
contains definitions for the abbreviations used on the Data sheet.
1 The data for this exercise was downloaded and adapted from https://www.ncdc.n
oaa.gov/cdo-web/.
500 advanced topics
10. In cell C3, enter Date. (Note: this will be the ending date
for formulas on this sheet, but the title in C3 must match
the field name on the Climate table.)
11. In cell B4, enter >= 1/1/2019 (Note: do not leave spaces
in this formula).
16. Cell C5 will display 72, which is the greatest TMAX for
January, 2019.
21. Cell C6 will display 21, which is the least TMIN for Jan-
uary, 2019.
36. In cell B13, enter Coldest New Moon. (The width of Col-
umn B may need to be changed to see the words Coldest
New Moon.)
38. Cell C13 will display 32, which was the coldest temper-
ature recorded on a night with a new moon in 2019.
41. In cell D16, enter *TS*. Note: the asterisks are “wild-
card” characters and will create a match on any cell that
contains TS somewhere in the cell.
44. Cell C17 will display 2.32, which was the most rainfall
on a day that recorded thunder in 2019.
504 advanced topics
4. In the Line Chart dialog box, select the first option, 2-D
Line.
11. Click Edit for the Horizontal (Category) Axis Labels. That
button is marked in Figure 411.
13. Excel changes the labels for the X-Axis to the dates found
in Column A of the Data worksheet. Click OK on the
Select Data Source dialog box to finish this selection.
14. To adjust the scale for the Y-Axis (the hours of daylight),
right-click on the vertical axis values and select Format
Axis.
15. In the Format Axis dialog box, enter 0.35 for the Minimum
Bounds (the Maximum Bounds will automatically adjust).
APPENDIX
a.1 and
Example:
Consider the worksheet illustrated in Figure 414.
a.2 average
511
512 function quick reference
Syntax:
AVERAGE(number1, [number2], ...)
Example:
Consider the worksheet illustrated in Figure 415.
a.3 concatenate
Joins two or more text strings into one string. IMPORTANT: This
function was replaced with CONCAT in Excel 365, but the syntax is
the same for both functions.
Syntax:
CONCATENATE(text1, [text2], ...)
text1 Required. The first item to join. The item can be a text
value, number, or cell reference.
text2, ... Optional. Additional text items to join. You can have
up to 255 items, up to a total of 8,192 characters.
Example:
Consider the worksheet illustrated in Figure 416.
a.4 count 513
a.4 count
Counts the number of cells that contain numerical values. Cells with
non-numeric content are ignored.
Syntax:
COUNT(value1, [value2], ...)
Example:
Consider the worksheet illustrated in Figure 417.
a.5 countif
Example:
Consider the worksheet illustrated in Figure 418.
a.6 countifs
Applies criteria to cells across multiple ranges and counts the number
of times all criteria are met.
Syntax:
COUNTIFS(range1, criteria1, [range2, criteria2], ...)
Example:
Consider the worksheet illustrated in Figure 419.
a.7 date
year Required. The value of the year argument can include one
to four digits. Excel interprets the year argument accord-
ing to the date system the computer is using.
Example:
If the following function were entered in cell A1:
=DATE(2020,3,4)
it would return the date 3/4/2020 formatted according to the
settings on the local computer.
a.8 datedif
Syntax:
DATEDIF(start date,end date,unit)
Example:
Consider the worksheet illustrated in Figure 420.
a.9 if
Example:
Consider the worksheet illustrated in Figure 421.
a.10 index
Example:
Consider the worksheet illustrated in Figure 422.
=INDEX(A1:C5,4,3)
it would return 13405.
a.11 left
Example:
Consider the worksheet illustrated in Figure 423.
a.12 lower
Example:
Consider the worksheet illustrated in Figure 424.
a.13 match 519
a.13 match
Searches for a specified item in a range of cells and then returns the
relative position of that item in the range. This function is commonly
combined with Index to lookup data in a table.
Syntax:
MATCH(lookup value, lookup array, [match type])
lookup value Required. The value that to be matched in lookup array.
Example:
Consider the worksheet illustrated in Figure 425.
a.14 max
Example:
Consider the worksheet illustrated in Figure 426.
a.15 mid
Example:
Consider the worksheet illustrated in Figure 427.
a.16 min 521
a.16 min
Example:
Consider the worksheet illustrated in Figure 428.
a.17 now
Returns the serial number of the current date and time. If the cell
format was General before the function was entered, Excel changes
the cell format so that it matches the date and time format of the
regional settings. Note: to get only the date without the time, use the
TODAY function.
522 function quick reference
Syntax:
NOW()
The NOW function has no arguments.
Example:
If the following function were entered in cell A1:
=NOW()
it would return the current date and time. When this was writ-
ten the value returned was 12/27/2020 12:42.
a.18 not
Example:
Consider the worksheet illustrated in Figure 429.
a.19 or
Example:
Consider the worksheet illustrated in Figure 430.
a.20 pmt
type Optional. Indicates when payments are due, 0 for the end
of the period or 1 for the beginning of the period.
Example:
If the following function were entered in cell A1:
524 function quick reference
=PMT(0.05/12,5*12,-25000)
it would return 471.78. So, a loan of $25000 at 5% interest rate
per year for a term of 5 years would generate a monthly pay-
ment of 471.78.
a.21 proper
Capitalizes the first letter in a text string and any other letters in text
that follow any character other than a letter. Converts all other letters
to lowercase letters.
Syntax:
PROPER(text)
Example:
Consider the worksheet illustrated in Figure 431.
a.22 randbetween
Example:
If the following function were entered in cell A1:
=RANDBETWEEN(10,99)
it would return a random integer between 10 and 99 (inclusive).
a.23 right
Example:
Consider the worksheet illustrated in Figure 432.
a.24 round
Example:
Consider the worksheet illustrated in Figure 433.
a.25 search
Example:
If the following function were entered in cell A1:
=SEARCH(”or”,”horse”)
it would return 2 since the word or starts at position 2 in horse.
a.26 sum
Example:
Consider the worksheet illustrated in Figure 434.
a.27 sumif
sum range Optional. The actual cells to add if cells other than
those specified in the range argument are to be added. If
the sum range argument is omitted, Excel adds the cells
that are specified in the range argument (the same cells to
which the criteria is applied).
Example:
Consider the worksheet illustrated in Figure 435.
528 function quick reference
a.28 sumifs
crit1 Required. The criteria that defines which cells in crit range1
will be added.
Example:
Consider the worksheet illustrated in Figure 436.
a.29 today
Returns the serial number of the current date. If the cell format was
General before the function was entered, Excel changes the cell format
so that it matches the date and time format of the regional settings.
Note: to get both the date and time, use the NOW function.
Syntax:
TODAY()
The TODAY function has no arguments.
Example:
If the following function were entered in cell A1:
=TODAY()
it would return the current date. When this was written the
value returned was 12/27/2020.
a.30 trim
Removes all spaces from text except for single spaces between words.
Syntax:
TRIM(text)
Example:
If the following function were entered in cell A1:
=TRIM(“ Two Spaces ”)
it would return Two Spaces.
a.31 upper
Example:
Consider the worksheet illustrated in Figure 437.
530 function quick reference
a.32 vlookup
Example:
Consider the worksheet illustrated in Figure 438.
b.1 definition
b.2 functions
b.2.1 Sort()
531
532 dynamic arrays
Notice that even though the formula was only entered in one cell,
E2, it filled an entire range, E2 : E21 with the sorted data. The sorted
data is dynamic so if any of the names in Column A are changed the
list in Column E is updated to reflect that change.
6. The name Aidan has been deleted and the list of names
in Column E is automatically updated to reflect the miss-
ing row.
13. The name Bosley has been added and the list of names
in Column E is automatically updated to reflect the new
row.
Best Practice
Array Data
b.2.2 Sortby()
sales[name] Use the Name column as the secondary sort field; that
is, sort the names alphabetically within the regions.
b.2 functions 535
b.2.3 Unique()
Cells H2:H6 contains the unique values found in the Region column.
Complete the following steps to test the dynamic characteristic of
Column H.
b.2.5 Filter()
The formula in cell J2 counts all of the lines in the dynamic array
starting in I2 no matter how long that array grows.
b.2.7 Xlookup()
The XLookup function searches in the Name column for the name
found in cell K2. When it finds that value, it returns the Region and
Units values for that name. In the example above, Colby returns Mid-
west and 276 from the Sales table. One of the strengths of using dy-
namic arrays is that if the Sales table is modified by adding or deleting
rows or columns, the XLookup function will continue to work.
b.2.8 XMatch()
Cell L5 will display 1 since the value in K5, Colby, is in row one
of the Sales table. By itself, this is of limited value, but combining
XMatch with Index creates a powerful lookup function that can return
the value in any column for any found row in a data table.
This returns 276, which is how many units Colby sold. If the data ta-
ble contained dozens of columns and hundreds of rows, XMatch+Index
is very useful in pinpointing the specific data needed.
b.2.9 Randarray()
This creates an array of three rows and four columns that contain
random numbers between 10 and 99. The final TRUE restricts the ran-
dom numbers to integers rather than decimals. NOTE: The function
creates an array of random numbers so the illustration in this book
will not match the student’s work.
b.2.10 Sequence()
https://bitbucket.org/amiede/classicthesis/
http://postcards.miede.de/