Excel 2013 Formulas and Functions Student Final
Excel 2013 Formulas and Functions Student Final
Excel 2013:
Formulas and
Functions
To w s o n U n i v e r s i t y
O f f i c e o f Te c h n o l o g y S e r v i c e s
OT S Training
Excel 2013:
Formulas and
Functions
Acknowledgements
PROJECT TEAM
Author
Media Designer
Content Editor
Pamela J. Taylor
Alex Tong
Angie French
Notices
DISCLAIMER
While Logical Operations, Inc. takes care to ensure the accuracy and quality of these materials, we cannot guarantee their
accuracy, and all materials are provided without any warranty whatsoever, including, but not limited to, the implied warranties of
merchantability or fitness for a particular purpose. The name used in the data files for this course is that of a fictitious company. Any
resemblance to current or future companies is purely coincidental. We do not believe we have used anyone's name in creating this
course, but if we have, please notify us and we will change the name in the next revision of the course. Logical Operations is an
independent provider of integrated training solutions for individuals, businesses, educational institutions, and government agencies.
Use of screenshots, photographs of another entity's products, or another entity's product name or service in this book is for editorial
purposes only. No such use should be construed to imply sponsorship or endorsement of the book by, nor any affiliation of such
entity with Logical Operations. This courseware may contain links to sites on the internet that are owned and operated by third
parties (the "External Sites"). Logical Operations is not responsible for the availability of, or the content located on or through, any
External Site. Please contact Logical Operations if you have any concerns regarding such links or External Sites.
TRADEMARK NOTICES
Logical Operations and the Logical Operations logo are trademarks of Logical Operations, Inc. and its affiliates.
Microsoft Office Excel 2010 is a registered trademark of Microsoft Corporation in the U.S. and other countries. Microsoft Office
Outlook and Microsoft SharePoint are also registered trademarks of Microsoft Corporation in the U.S. and other countries. The
other Microsoft products and services discussed or described may be trademarks or registered trademarks of Microsoft Corporation.
All other product and service names used may be common law or registered trademarks of their respective proprietors.
Copyright 2012 Logical Operations, Inc. All rights reserved. Screenshots used for illustrative purposes are the property of the
software proprietor. This publication, or any part thereof, may not be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, storage in an information retrieval system, or otherwise, without
express written permission of Logical Operations, 500 Canal View Boulevard, Rochester, NY 14623, (800) 456-4677. Logical
Operations World Wide Web site is located at www.logicaloperations.com.
This book conveys no rights in the software or other products about which it was written; all use or licensing of such software or
other products is the responsibility of the user according to terms and conditions of the owner. Do not make illegal copies of books
or software. If you believe that this book, related materials, or any other Logical Operations materials are being reproduced or
transmitted without permission, please call (800) 456-4677.
Lesson Labs.................................................................................67
Solutions..................................................................................... 69
Glossary...................................................................................... 71
Index...........................................................................................75
| Towson University
Course Icons
Watch throughout the material for these visual cues:
Icon
Description
A Caution helps make you aware of places where you need to be particularly careful
with your actions, settings, or decisions so that you can be sure to get the desired
results of an activity or task.
LearnTO notes show you where an associated LearnTO is particularly relevant to
the content. Access LearnTOs from your LogicalCHOICE Course screen.
Checklists provide job aids you can use after class as a reference to performing
skills back on the job. Access checklists from your LogicalCHOICE Course screen.
Social notes remind you to check your LogicalCHOICE Course screen for
opportunities to interact with the LogicalCHOICE community using social media.
Notes Pages are intentionally left blank for you to write on.
OTS Training |
Performing Calculations
Lesson Time: 1 hour
Lesson Objectives
In this lesson, you will:
Create formulas in a worksheet.
Insert functions in a worksheet.
Reuse formulas.
Lesson Introduction
In the last lesson, you got started with Microsoft Office Excel 2013. One of the primary
reasons for using electronic worksheets is the ease of calculating data. In this lesson, you will
perform calculations.
We have all used a pencil and scrap of paper to do quick calculations, but when the
numbers get larger and the calculations more complicated, it's easy to make errors. By using
Excel formulas and functions to calculate your data, you are less likely to encounter errors,
you can save time, and you can present the results of the calculations in a consistent
manner.
TOPIC A
Create Formulas in a Worksheet
In this lesson, you will perform calculations on data in the Excel 2013 environment. The easiest way
to calculate data in Excel is to use formulas. In this topic, you will create formulas in a worksheet.
Manually calculating data values can be time consuming and can lead to inaccurate results. Using
formulas in your worksheets can help you automate your calculations and help ensure that your
calculations are accurate.
Excel Formulas
Formulas
A formula performs complex numeric calculations with addition, subtraction, multiplication, and
division. A formula comprises an expression to the right and a result to the left of an equal sign. The
expression in a formula usually consists of a combination of variables, constants, and operators.
An Excel formula is a type of formula that can be used to perform calculations on data that is
entered in Excel worksheets.
The Formula Bar, located below the ribbon, contains the Name Box, the Insert Function button,
and the Formula Bar text box. The Name Box displays the name or reference of the selected cells.
The Insert Function button enables you to insert a function in the selected cell. The Formula Bar
text box displays the contents of the selected cell and allows you to edit the contents. You can
expand, collapse, resize, or hide the Formula Bar to suit your preferences.
OTS Training
Description
References
Operators
Constants
Functions
Elements of an Excel
Formula
Function
Parentheses ( )
Caret ( ^ )
Exponent
Asterisk ( * )
Multiplication
Forward slash ( / )
Division
Plus sign ( + )
Addition
Minus sign ( - )
Subtraction
Towson University
Common Mathematical
Operators
Excel enables you to create formulas that contain multiple mathematical operators. These
mathematical operators are computed in a specific order. When you use a combination of operators,
the order of evaluation can affect the result of the formula. Excel evaluates the mathematical
operators in the following order:
1. Computations enclosed in parentheses, wherever they appear in the formula.
2. Computations involving exponents.
3. Computations involving multiplication and division. Because they are equal with regard to the
order in which Excel performs them, the operation is performed in the order in which it
encounters them, which is from the left to the right.
4. Computations involving addition and subtraction. Excel also performs them in the order in
which it encounters them.
Create a Formula
To create a formula:
1. Select the cell in which you want to place the formula.
2. To begin the formula, type an equals sign.
3. Specify the arguments and operators for the formula.
Enter a number or cell reference, or select a cell.
Enter the operator.
Enter another number or cell reference.
4. If necessary, enter additional arguments and operators to complete the formula.
5. Press Enter or select the check mark icon to apply the formula and populate the cell with the
calculated value.
OTS Training
Revise a Formula
To revise a formula:
1. Select the cell that contains the formula that you want to revise.
2. Revise the formula.
Activate the cell by double-clicking it or pressing F2, select the desired part of the formula
that needs to be revised, and then make the desired changes.
On the Formula Bar, select the desired part of the formula that needs to be revised, and
then make the desired changes.
3. Press Enter or select the check mark icon to apply the revised formula.
Towson University
ACTIVITY 1-1
c) Type =b6+b7+b8+b9 and press Enter to display the total income of the products.
OTS Training
d) Verify that the sum of the values in cells B6 through B9 is displayed in cell B10.
2. Calculate the net income for the products.
a) Select cell B12.
b) Type = and select cell B10.
Towson University
d) Observe the formula that is displayed in the Formula Bar, and then press Enter.
Verify that all
participants have
completed this step
before you proceed.
3. Calculate the tax and profit after tax for the products introduced in the market.
a) Verify that cell B13 is selected.
b) Type =b12*e5 and press Enter.
c) Observe that the tax was calculated by multiplying the net income with the tax rate that is displayed
in cell E5.
d) In cell B14, calculate the profit after tax by deducting the tax in cell B13 from the net income in cell
B12.
e) Examine cell B13. A green triangle is displayed in the top-left corner of the cell because Excel
recognizes this formula to be different than the other formulas in the column.
Explain the significance
of the green triangle.
Excel provides some
automatic error-checking
functionality, but in this
case, there is no error.
f) Select cell B13 and then select the Error Checking button.
OTS Training
4. Save the file as My New Product Income and close the workbook.
a) Select FILESave As, and under Computer, in the Current Folder section, select Performing
Calculations.
b) In the Save As dialog box, in the File name text box, type My New Product Income and select Save.
c) Close the workbook.
Verify that all
participants have
completed this step
before you proceed.
Towson University
TOPIC B
Insert Functions in a Worksheet
In the last topic, you created formulas in worksheets. Another way to calculate data in Excel is to
use mathematical functions. In this topic, you will insert functions in a worksheet.
Creating formulas enables you to perform simple and complex calculations in your worksheets, but
there are some calculations that can be difficult to create, while others are used so often that it can
become tedious to create the formula each time that you need to use it. By taking advantage of the
built-in functions provided in Excel, you can perform a variety of calculations to analyze your data.
Functions
Functions
A function is a built-in Excel formula that you can use to perform calculations in your worksheets.
Functions always begin with an equal sign, and they also contain a function name, followed by
arguments within parentheses. The function name is usually an abbreviated name of the function.
Arguments can be cell references, constants, formulas, other functions, or logical values. When
referencing other cells, functions use a comma ( , ) to separate individual cells, while a colon ( : )
denotes a range between two cells (inclusive).
The FORMULAS tab includes a Function Library group. This group provides easy access to the
functions that are available in Excel because it divides the functions into categories for ease of
reference.
OTS Training
From within each category, the Function Library also provides access to the Insert Function
dialog box, which you can use to search for the function that will best suit the task at hand.
Category
Description
Financial
Logical
Text
Use these functions to find values in a list or table, or when you need to
find a reference to a cell.
Statistical
Engineering
Cube
Information
Compatibility
Use this category to create spreadsheets that are compatible with older
versions of Excel.
Caution: All of the functions in this category have been
replaced with functions that might offer a greater level of
accuracy and that have been renamed to reflect their usage more
closely. These functions are primarily included to provide
backward compatibility; you should consider using the newer
functions in the Statistical category whenever possible.
Database
Towson University
The Function Library also includes the AutoSum button. This button enables you to quickly insert
commonly used functions into a worksheet.
The functions that you can insert by using the AutoSum button provide basic mathematical and
statistical analysis functionality.
Function
Use To
Sum
Average
Count numbers Find the number of cells that contain numerical values in the specified range in
the argument.
Max
Min
The Formula AutoComplete feature is a dynamic feature that enables you to select and enter
functions without having to remember lengthy function names or risking a spelling error. When you
type the equal sign and the first few characters in a function's name, Excel displays a drop-down list
with all the available function names that begin with the characters you typed. You can select the
required function from the list and then enter the necessary arguments to complete the entry of the
formula.
OTS Training
Figure 1-7: The Formula AutoComplete feature displays functions that begin with the characters
you enter.
Towson University
OTS Training
ACTIVITY 1-2
c) Select HOMEEditingAutoSum.
d) Verify that the cell range B7:E7 is selected in the worksheet and displayed in the cell and the
Formula Bar.
e) Press Enter to display the total sales by Del Prentice for Q1 through Q4.
Towson University
Take a moment to
ensure that all
participants have been
able to successfully
perform the actions
described so far.
3. Calculate the highest sales quarter for Del Prentice and Christina Chirillo.
a)
b)
c)
d)
e)
OTS Training
c) In the worksheet, select the cell range B7:E7 and press Enter to display the lowest sales quarter for
Del.
d) Calculate the lowest sales quarter for Christina Chirillo for the same time period.
Towson University
TOPIC C
Reuse Formulas
In this lesson, you have performed calculations by creating formulas and inserting functions in a
worksheet. In many instances, similar formulas can be required to calculate similar data, and Excel
enables you to reuse many workbook elements, including formulas, to save time. In this topic, you
will reuse formulas.
As you work with the data in an Excel worksheet, you might find that you need to use the same
types of formulas and functions in other places within the worksheet. Entering these formulas and
functions each time they are required can quickly become tedious. Excel enables you to copy
formulas and functions and paste them in other cells so that you can reuse them more easily.
In an Excel worksheet, you can move or copy cells or their contents. To move a cell or its contents,
you can use the Cut and Paste commands. To copy a cell or its contents, you can use the Copy and
Paste commands. The Paste commands also include a preview feature that enables you to view
how the content will be displayed before you paste it into the worksheet.
Figure 1-8: The Cut, Copy, and Paste commands enable you to reuse data and formulas.
Keyboard Shortcuts
The following table lists the keyboard combinations for the Cut, Copy, and Paste commands.
Command
Keyboard Combination
Cut
Ctrl+X
Copy
Ctrl+C
Paste
Ctrl+V
OTS Training
Description
Paste All
Paste Formulas
Pastes all text, values, and formulas in the current selection, but
not the format of the source cell.
Paste Values
Pastes the calculated value of the formula used in the source cell.
Paste Formats
Paste Comments
Pastes only the comments that are attached to the source cell.
Paste Validation
Pastes only the data validation rules that are applied to the source
cell.
Paste All using Source theme Pastes the content, including all text, values, formulas, and cell
styles.
Paste All except borders
Pastes the cell content without any borders if the source cell had
any borders.
Pastes the content and keeps the column width the same as the
source cell.
Pastes the calculated value of the formula used in the source cell
along with the number formatting.
Towson University
Description
Operations
Skip blanks
Transpose
Paste as Link
Relative References
Relative References
A relative reference is a cell reference in a formula that changes when the formula is copied from one
cell to another. The change to the cell reference is based on the new position of the formula. By
default, cell references are relative.
Figure 1-10: Relative references change when you copy a formula to another cell.
Absolute References
Absolute References
An absolute reference is a cell reference in a formula that does not change when the formula is copied
from one cell to another. Absolute references contain a dollar sign before the column and row
designations in the cell reference. You can use absolute references in formulas when you need to
refer to values in cells that should not change in relation to the cells where the result is to be stored.
OTS Training
Figure 1-11: Absolute references do not change when they are copied to another cell.
Mixed References
A mixed reference is a cell reference that contains a mix of absolute and relative references. When a
formula with a mixed reference is copied from one cell to another, the relative portion of the cell
reference changes, while the absolute portion of the cell reference does not change. Mixed
references contain a dollar sign before either the column or the row reference, depending on
whether the column or row designation should not change.
Mixed References
Figure 1-12: Mixed references enable you to keep the same row or column reference when a
formula is copied.
Towson University
OTS Training
ACTIVITY 1-3
Reusing Formulas
Before You Begin
My Sales Contest.xlsx is open.
Scenario
You need to complete the analysis of the performance of all sales personnel for an upcoming
meeting. During that meeting, you will also need to provide information on the commission earned
by each member of the Sales team. For each employee, the formula for calculating the commission
should refer to the commission-rate value specified in the worksheet.
1. Calculate the total and average sales for the remaining employees.
a) Select cell F8.
b) Select HOMEClipboardCopy.
c) Verify that cell F8 has a dotted rectangle around it. This indicates that the cell contents have been
copied.
d) Select the cell range F9:F30.
e) Select HOMEClipboardPaste.
f) Verify that the total sales for the remaining employees are calculated and displayed.
Towson University
2. Calculate the highest and lowest sales quarters for the remaining employees.
a) Copy the formula in cell H8 to the range H9:H30.
b) Copy the formula in cell I8 to the range I9:I30.
OTS Training
3. Calculate the commission for employees based on the commission rate found in cell M6.
a) Select cell J7, type =F7*M6 and press Enter.
b) Copy the contents of cell J7, and paste them into cell J8.
c) Select cell J8, and examine the Formula Bar.
d) Observe that cell J8 displays the value 0 because the formula used in the cell J8 refers to cell M7 for
the commission rate, but the commission rate is stored in cell M6.
4. Modify the commission formula to use an absolute reference to the cell containing the commission rate.
a) Select cell J7, and in the Formula Bar text box, place the insertion point before the M.
Towson University
d) Press Enter.
e) Select cell J7, and copy the contents to the Clipboard.
f) Paste the contents of the Clipboard to cell J8, and verify that the cell now displays a number other
than 0.
g) Select cell J8, and examine the formula in the Formula Bar. The cell reference for the commission
rate is $M$6.
h) Paste the contents of the Clipboard in the cell range J9:J30.
Ask participants: How do
we know that the
Clipboard still contains
the formula? Cell J7 still
displays the marquee
around it.
Remind participants that
Excel also provides key
combination for many
common commands.
You can introduce the
Ctrl+S key combination
in this step, and
encourage participants
to try using it.
Verify that all
participants have been
able to complete the
activity successfully
before you proceed.
Ask participants if they
are likely to use the key
combinations to invoke
commands. You could
even conduct a poll to
determine which key
combinations are most
popular.
OTS Training
Summary
In this lesson, you learned about performing calculations in an Excel worksheet. By creating
formulas and using the built-in Excel functions, you can perform a vast array of calculations quickly
and with minimal errors.
Which functions do you expect to use most often in your work environment?
A: Answers will vary, but might include functions such as SUM and AVERAGE.
What benefits will using the Formula AutoComplete feature provide to you?
A: Answers will vary, but might include avoiding typographical errors or the necessity of remembering
function names.
Note: Check your LogicalCHOICE Course screen for opportunities to interact with your
classmates, peers, and the larger LogicalCHOICE online community about the topics covered in
this course or other topics you are interested in. From the Course screen you can also access
available resources for a more continuous learning experience.
Encourage students to
use the social
networking tools
provided on the
LogicalCHOICE Home
screen to follow up with
their peers after the
course is completed for
further discussion and
resources to support
continued learning.
Towson University
Creating Advanced
Formulas
Lesson Time: 1 hour, 15 minutes
Lesson Objectives
In this lesson, you will:
Apply range names.
Use specialized functions.
Lesson Introduction
From your previous training and experience, you're familiar with the fundamentals of
creating and using formulas in Microsoft Office Excel 2013. You know that formulas are
the mathematical expressions you build by hand and functions are the mathematical
expressions already built into Excel. But your needs are changing. You now have more
complex data manipulation requirements that basic formulas and functions cannot address.
You need a deeper understanding of the data your business is generating. Your ability to use
the advanced formula techniques in this lesson will enable you to turn your worksheet data
into the business information you need.
In this lesson, you will create advanced formulas.
TOPIC A
Apply Range Names
Worksheet without
Range Names
The activities in this
lesson are written in a
continuous fashion.
Each new activity after
the first builds upon the
previous activity.
Imagine you work in a real estate office. Your colleague, Tomas, has taken an unexpected leave and
is unreachable. You've been asked to fill in for Tomas. One of Tomas's clients has come to the
office prepared to sign some paperwork. You open Tomas's file cabinet and see dozens of file
folders, each with labels like S15 or D72 or M21:N72. You start flipping through the file
folders, frantically looking for the client's paperwork, but it's not obvious to you how Tomas has
organized his files. The client has folded her arms and started tapping her foot.
Now take a look at these two formulas.
Which one is easier to understand? Which version would be easier to explain to a colleague or
update two quarters from now? While both formulas will produce the exact same results, the first
version uses cell references and the second version uses range names. When you master range
naming by using the information in this topic, you'll be able to add this type of efficiency into your
workbooks.
Range Names
A range name is a clear, concise, and descriptive name applied to a single cell or a range of cells.
Naming ranges:
Improves the readability and maintainability of formulas and functions.
Reinforces the logic of formulas and functions for anyone who has to work with them.
The benefits of naming increase dramatically as your formulas and functions become more complex.
Range names:
OTS Training
Towson University
ACTIVITY 2-1
OTS Training
f) Press Enter.
3. Use the New Name dialog box to add a range name for Number of Books in Print.
a) Select the range D2:D94.
b) To open the New Name dialog box, select FORMULASDefined NamesDefine Name.
Note: You could change this to any relevant name; however, for this exercise,
you can leave the range name as Number_of_Books_in_Print.
c) From the Scope drop-down list, select Authors. This constrains the new range name to the Authors
worksheet, leaving the same range name available for use on other worksheets in this workbook.
Towson University
8. Why does the Name box still say E1 instead of the range name Number_of_Books_Sold?
OTS Training
Towson University
ACTIVITY 2-2
OTS Training
e) Select OK.
f) In the Name Manager dialog box, select Close.
g) Save the file.
Note: To edit the name of a range, you cannot use the Name box; you must use
the Name Manager dialog box.
Towson University
ACTIVITY 2-3
b)
c)
d)
e)
My_Author_Data.xlsx
OTS Training
ACTIVITY 2-4
c) Press Enter.
2. Use range names to write a formula that will calculate the income earned.
a) If necessary, select cell G2.
b) In the Formula bar, type =Nu. As you type, Excel displays a list of functions and range names that
match what you're typing.
Towson University
g) Press Enter.
3. Format the income earned cell so that it appears as dollars.
a) Select cell G2.
b) Select HOMENumberNumber Format down-arrow, and then, from the drop-down list, select
Currency.
c) If necessary, stretch the width of the column until the hash tags disappear and the value appears.
OTS Training
c) To verify that the copy stopped at cell C94, press Ctrl+ . (the period key). This inverts the active cell
in the selected range.
d) Press Ctrl + . again to return to the top.
5. Set a range name for the Income Earned column.
a) Select the range G1:G94.
b) Select FORMULASDefined NamesCreate from Selection.
c) In the Create Names from Selection dialog box, select OK.
6. Save your work.
Towson University
TOPIC B
Use Specialized Functions
If time permits, ask if any
of the students have a
financial background
and would like to say a
few words about the
challenges associated
with calculating IRR and
NPV. You'll want to keep
their responses to just a
minute or two.
The Function Library
Imagine you are a financial analyst and you want to calculate the internal rate of return (IRR) or the
net present value (NPV) of a proposed project. Although it's beyond the scope of this course to
explain how to calculate IRR and NPV, it's enough to say these are complex financial calculations.
Or, imagine you have a workbook that tracks project milestone dates for a complex project and
you'd like to calculate the total number of workdays between two key milestones.
Either of these could be very time consuming to calculate if you have to calculate them by hand.
Excel 2013 offers a more efficient way to make these, and many other, calculations.
In this topic, you will use specialized functions.
Function Categories
Excel has 13 categories of functions. Each category has a number of functions designed for very
specific types of calculations.
You can access every function in the Function Library group on the FORMULAS tab.
Financial, Logical, Text, Date & Time, Lookup & Reference, and Math & Trig functions
each have their own button and drop-down list in the Function Library.
For example, here is the expanded list of Logical functions.
OTS Training
The More Functions drop-down list provides access to the Statistical, Engineering, Cube,
Information, and Compatibility functions.
Here are some of the many Statistical functions.
Statistical Functions
You can access any function by using the Insert Function button in the Function Library.
Towson University
Functions
Financial
Logical
Text
Return date and time related information. For example, you could
use a date function to return the current date.
Statistical
Engineering
Cube
Information
Compatibility
Database
User defined
OTS Training
Towson University
ACTIVITY 2-5
1. In My_Author_Data.xlsx, locate a function that will return the average number of books sold for the
entire group of authors.
a)
b)
c)
d)
e)
f)
5. Will the AVERAGE function work to meet the needs of your manager?
A: Yes. The AVERAGE function will return the average of a dataset.
6. Locate a function that will help you answer the question, How long has the newest author been with the
F&A family?
What does this aforementioned question suggest?
A: The newest author has been with F&A the least amount of time, so least suggests the minimum
of something. In this case, the minimum amount of time with F&A. The MIN function in the
Statistical category will return the minimum value.
OTS Training
Function Syntax
Every function has a specific syntax. The function syntax describes the structure of the function,
including the function's name, its arguments, the order of the arguments, and whether the
arguments are required or not.
Note: It is good practice to verify a function's syntax in the function reference of the Excel Help
system to ensure you are using all of the required arguments in the correct order.
Here's an example of the syntax of the AVERAGE function. This function has one required
argument, number1, and can have one or more optional arguments of the same type, represented by
[number2] and the ellipsis.
In Excel 2013s function reference, no matter which function syntax you are reviewing, all required
arguments will not be bracketed, all optional arguments will be bracketed, and an ellipsis will
represent multiple arguments of the same type.
Towson University
The Function Arguments dialog box guides you through entering the arguments for a selected
function. This dialog box includes a brief description of each argument in the function.
The Function Arguments
Dialog Box
Figure 2-8: The Function Arguments dialog box for the AVERAGE function.
OTS Training
Towson University
ACTIVITY 2-6
Using Functions
Before You Being
My_Author_Data.xlsx is open.
Scenario
You've found the functions you would like to useAVERAGE and MINby using Excel's
function reference. To review, your manager wants to know:
The average number of books in print for the entire group of authors
How long the newest author has been with the F&A family
To help maintain readability in the Excel file, you decide to create a new spreadsheet named
Statistics. You'll place the answers to each of these questions on that spreadsheet.
1. In My_Author_Data .xlsx, add a new worksheet named Statistics and make it the first worksheet in the
workbook.
If necessary, ask a
student to explain how to
insert a new Statistics
worksheet. Direct the
answer to right-clicking
the Author_Totals tab
name, selecting Insert,
and then renaming the
new worksheet
Statistics.
If necessary, inform
students that they can
change the width of
columns A and B by
selecting both columns,
right-clicking the column
headings, and selecting
Column Width.
2. For each question your manager wants answered, add relevant text to the Statistics worksheet.
a) Set the width of columns A and B to 25
b) Select cell A1, and then type Average books in print
c) Select cell A2, and then type Newest to F&A
3. Use the Insert Function and Function Arguments dialog boxes to enter a function that calculates the
average number of books in print for the entire group of authors.
a) Select cell B1.
b) Select FORMULASFunction LibraryInsert Function.
c) From the Or select a category drop-down list, select Statistical.
OTS Training
e) Select OK.
f) In the Function Arguments dialog box, in the Number1 text field, type Number_of_Books_in_Print
g) Select OK.
4. Why is Excel returning the #NAME error?
A: Because the Number_of_Books_in_Print range name is constrained to the Authors_Totals
worksheet rather than to the entire workbook.
5. Fix the #NAME error.
a)
b)
c)
d)
6. Format the Average books in print cell so that it shows only one decimal place.
a) On the Statistics worksheet, select cell B1.
b) On the HOME tab, in the Number group, click Decrease Decimal until the value shows only one
decimal place.
7. Enter a function that answers the question, How long has the newest author been with the F&A
family?
a) On the Statistics worksheet, select cell B2.
b) In the Formula bar, type =MIN(Years_Under_Contract) and press Enter.
c) Format the cell so that it shows only two decimal places. The author who has been with F&A the
least amount of time has been there 0.40 years (after rounding to two decimal places).
8. Save and close your work.
Towson University
Summary
In this lesson, you created advanced formulas. You leveraged range names to make your functions
and formulas easy to understand and maintain. You used specialized functions to run calculations on
your data.
Creating advanced formulas is the gateway to some of the most sophisticated functionality Excel
2013 has to offer. By embedding multiple functions within a single, complex formula, you can
transform raw business data into useful strategic information.
Consider your company and the types of data it creates and crunches. How might you leverage advanced
formulas in your organization?
A: Answers will vary, but consider the types of functions that will be used most often. For example, if
you're working in a finance department, you might use many of the financial functions; whereas, if
you're working in an R&D department, you might find you often use the math and trigonometry or
engineering functions.
What are some range names you could use that are relevant to your company's data?
A: Answers will vary, but consider the types of data your company collects and base range names on the
types. For example, if you work in the real estate industry, some range names might be City, State,
School District, and List Price.
Note: Check your LogicalCHOICE Course screen for opportunities to interact with your
classmates, peers, and the larger LogicalCHOICE online community about the topics covered in
this course or other topics you are interested in. From the Course screen, you can also access
available resources for a more continuous learning experience.
Encourage students to
use the social
networking tools
provided on the
LogicalCHOICE Home
screen to follow up with
their peers after the
course is completed for
further discussion and
resources to support
continued learning.
OTS Training
Lesson Objectives
In this lesson, you will:
Leverage questions and testing to write formulas.
Use logical and lookup functions to find answers to questions.
Lesson Introduction
The previous lesson introduced you to functions, how to find them in the Microsoft Office
Excel 2013 function reference, and the various ways you can enter functions into your
workbooks. Although there are many different types of functions, all functions generally fall
into one of two broad categories: functions that crunch the numbers in a dataset and
functions that find specific data within the dataset. Examples of functions that crunch the
numbers include many of the financial, statistical, and engineering functions. Examples of
functions that find specific data include the logical and lookup functions.
In this lesson, you will explore two of the function types that look for specific data in a
dataset: logical functions and lookup functions.
TOPIC A
Leverage Questions and Testing to Write
Formulas
Excel 2013 provides the tools you need to answer questions about your business's performance.
However, it's up to you to ask the right question.
The activities in this
lesson are written in a
continuous fashion.
Each new activity after
the first builds upon the
previous activity.
Consider teaching the
conceptual content by
keying through the
activities with the
students and teaching
the material as it comes
up in the activities.
OTS Training
TOPIC B
Use Logical and Lookup Functions to Find
Answers to Questions
Logical and lookup functions can help you find the answers to many of the types of questions you
will ask of your data.
Logical Functions
Excel 2013s logical functions run logical tests on your data. There are seven logical functions.
Logical Functions
Description
AND
OR
Towson University
Description
Syntax: FALSE()
Number of required arguments: 0
Number of optional arguments: 0
Comments: This function has no arguments. You can enter it in a cell and
the cell's value will appear as the text FALSE.
TRUE
Syntax: TRUE()
Number of required arguments: 0
Number of optional arguments: 0
Comments: This function has no arguments. You can enter it in a cell and
the cell's value will appear as the text TRUE.
IF
IFERROR
NOT
Syntax: NOT(logical_test)
OTS Training
Description
Towson University
ACTIVITY 3-1
3. By using range names, write a formula that defines early producers as any author who has been under
contract for fewer than two years and has published more than four books.
a) Select cell H2.
OTS Training
f) Type Number, and then double-click Number_of_Books_in_Print when it appears in the list.
g) Type >4)
h) Press Enter.
i) To copy the formula to every cell in the range, select cell H2 and then double-click the selection
handle in the bottom right corner of the cell.
9. Write and test the formula you planned in the previous step.
10. After entering the formula, what are the values in cells I2 and I4?
A: I2 is TRUE and I4 is FALSE.
11. Save your work.
12. Apply conditional formatting to make it easier to visually identify which cells in the range H2:I94 are
TRUE and which are FALSE.
a) Select the range H2:I94.
b) Select HOMEStylesConditional FormattingHighlight Cells RulesEqual To.
Towson University
c) In the Equal To dialog box, in the Format cells that are EQUAL TO text field, type FALSE
d) Verify that Light Red Fill with Dark Red Text is selected in the with drop-down list.
e) Select OK.
f) Follow the same steps, but this time format cells containing TRUE with Green Fill with Dark Green
Text.
13. Save your work.
OTS Training
ACTIVITY 3-2
=IF(AND(Years_Under_Contract<2,Number_of_Books_in_Print>4)=TRUE,"Yes","No")
d) Press Enter.
e) Copy the formula to the remaining cells in the range.
f) Verify that the formula works correctly.
2. Save your work.
3. How would you change the formula in column I so it has the same treatment as column H?
A: Add IF( right before the OR function, and then after 10) add =TRUE, "Yes","No"). The formula
should look like this:
=IF(OR(Years_Under_Contract>5,Number_of_Books_in_Print>=10)=TRUE,"Yes","No"). Make
sure you copy the formula to every cell in the range I2:I94.
4. Use your aforementioned plan to change the formula in column I.
5. If necessary, conditionally format the data in columns H and I so that Yes appears in a green style and
No appears in a red style; then center align the data in those columns.
Towson University
VLOOKUP and HLOOKUP are powerful functions that enable to you find data based on specific
criteria. These are the types of functions that help you find answers to questions such as, What year
did Employee X start working here?
VLOOKUP and HLOOKUP functions can be used within a single worksheet, across multiple
sheets in a single workbook, or across multiple workbooks.
The data returned from a VLOOKUP or HLOOKUP function can either be displayed in a cell or
used as an argument in a function. The identified data can be displayed in a cell or used in a
calculation.
The VLOOKUP Function
Syntax: VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
Number of required arguments: 3
Number of optional arguments: 1
The lookup_value is the value you already know, for example, the employee's ID number. The
table_array is the range of cells that contain all of the data you need to searchincluding the data
you already know, such as the employee's ID in the first column. It's important to remember that
the first column of the table_array must contain the value you already know. The col_index_num is
the number of the column in the table_array that will contain the answer, or the information you
don't know. VLOOKUP first looks top to bottom in the first column of the array. Once it finds the
lookup_value, it then looks left to rightnot right to leftuntil it gets to the column identified in
the col_index_num argument.
Note: To further explore the power of lookup functions, you can access the LearnTO
Combine Excel's MATCH and INDEX Functions to Look Up Data presentation from the
LearnTO tile on the LogicalCHOICE Course screen.
OTS Training
Cell B2 contains the VLOOKUP function. This function answers the question, What is Employee
X's salary? First, the function looks for the value in cell A2 in the first column of the range D2:F10.
It starts at the top and goes toward the bottom of the column until it finds a value that matches the
value in A2. As soon as it finds that value4306 in this exampleit starts looking from left to right
across the same row in which it found the value A2in this example, that would be row 7. It counts
across the columns until it gets to the column index indicated in the third argument3, in this
exampleand then returns the value in that cell$38,700.
The HLOOKUP Function
Syntax: HLOOKUP(lookup_value, table_array, row_index_num, [range_lookup])
Number of required arguments: 3
Number of optional arguments: 1
The HLOOKUP functions similarly to the VLOOKUP, except instead of looking vertically for the
lookup_value, HLOOKUP looks horizontally across row headings.
Cell A5 contains the HLOOKUP function. This function answers the question, How many books
has author 1021 sold? First the function looks for the value in cell A2 in the first row of the range
C1:E5. It starts at the left and moves to the right until it finds a value that matches the value in A2.
As soon as it finds that value1021 in this exampleit starts looking from the top to the bottom
of the same column that it found the value in A2in this example, that would be column E. It
Towson University
counts down the rows until it gets to the row index indicated in the third argument4, in this
exampleand then returns the value in that cell344,944.
OTS Training
ACTIVITY 3-3
i)
To verify that the function works, in cell A9, type 1006 and then press Enter.
j)
Select the Author_Totals worksheet and verify that the total number of books sold for ID 1006 is
316,237.
Towson University
Summary
In this lesson, you analyzed data with logical and lookup functions. You worked with logical
functions such as AND and OR and lookup functions such as VLOOKUP and HLOOKUP to find
the answers to specific questions you hadanswers that could be found only within your dataset.
What types of questions could you ask of your company's data that VLOOKUP or HLOOKUP could help
you find the answers to?
A: Answers will vary, but consider the types of data you regularly interact with, then think of questions
you would like to answer. For example, if you work in a market research department that collects data
about how consumers use a particular product, a possible question that incorporates either
VLOOKUP or HLOOKUP might be, Which feature did female respondents age 30 to 40 like most?
What are some examples of how logical functions such as AND and OR can help you analyze your
company's data?
A: Answers will vary, but think about the type of data you interact with, and then consider how you might
combine that data to using AND and OR functions. For example, if you work in program management,
you might use AND and OR functions to answer questions such as, Which projects came in on time
AND under budget?
Note: Check your LogicalCHOICE Course screen for opportunities to interact with your
classmates, peers, and the larger LogicalCHOICE online community about the topics covered in
this course or other topics you are interested in. From the Course screen, you can also access
available resources for a more continuous learning experience.
Encourage students to
use the social
networking tools
provided on the
LogicalCHOICE Home
screen to follow up with
their peers after the
course is completed for
further discussion and
resources to support
continued learning.
OTS Training
Lesson Labs
Lesson labs are provided as an additional learning resource for this course. The labs may or
may not be performed as part of the classroom activities. Your instructor will consider setup
issues, classroom timing issues, and instructional needs to determine which labs are
appropriate for you to perform, and at what point during the class. If you do not perform
the labs in class, your instructor can tell you if you can perform them independently as selfstudy, and if there are any special setup requirements.
Data Files
C:\091015Data\Analyzing Data with Logical and Lookup Functions
\Updating_Author_Totals.xlsx
Scenario
In addition to identifying early producers and high producers, management would also
like to identify authors who have been with the company for more than five years and
have either sold over 350,000 units or earned more than $1 million.
You also plan to add a column identifying which royalty rate an author currently
receives.
F&A royalties are based on the number of books an author has published with the
company. Authors with 10 or more books receive a 15% royalty and all others receive
a 9% royalty. You decide to add a column that reflects which royalty rate each author is
receiving.
1. In Updating_Author_Totals.xlsx, on the Author_Totals worksheet, select cell J1 and type
5+ Years and 350K+ Units Sold
2. Select cell K1 and type Royalty Rate
3. In cell J2, write a formula that identifies authors who have been with the company for
more than five years and have either sold over 350,000 units or earned more than $1
million.
4. Copy the formula to every cell in the range J2:J94.
5. Format the range J2:J94 to match the conditional formatting of cells H2:I94.
6. In cell K2, write a function that shows authors with 10 or more books published receiving
a 15% royalty rate and all others receiving a 9% royalty rate
7. Copy the formula to every cell in the range K2:K94.
8. Save your work as My_Updated_Author_Totals.xlsx
Lesson Labs
OTS Training