new perspectives on microsoft excel 2016 - class news · new perspectives on microsoft excel 2016...

35
New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

Upload: others

Post on 04-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

New Perspectives on Microsoft Excel 2016

Module 3:

Performing Calculations with formulas and Functions

Page 2: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

2

Objectives, Part 1

• Document formulas and data values

• Explore function syntax

• Insert functions from the Formula Library

• Perform a what-if analysis

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 3: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

3

Objectives, Part 2

• AutoFill series and formulas

• Use relative and absolute cell references

• Use the Quick Analysis tool

• Work with dates and Date functions

• Find values with Lookup functions

• Work with Logical functions

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 4: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

4

Visual Overview: Functions and Cell References

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 5: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

5

Making Workbooks User-Friendly, Part 1

• Many users may use the workbook so it is important they understand the contents

• An explanatory worksheet can be added explaining concepts including:

• Industry jargon (industry-specific terms, or technical terms) or unusual terms

• What is being calculated and why

• How the equations make those calculations

• Using formatting and styles to differentiate cell contents

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 6: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

6

Making Workbooks User-Friendly, Part 2

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 7: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

7

Using Excel Functions, Part 1

• Quick way to calculate summary data

• Every function follows a set of rules (syntax) that specifies how the function should be written

• General syntax of all Excel functions:

• Square brackets indicate optional arguments:

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 8: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

8

Using Excel Functions, Part 2

Function Description

AVERAGE (number1[,number2,…]) Calculates the average of a collection of numbers, where number1, number2, and

so forth are numbers or cell references

COUNT(value1[,value2,…]) Counts how many cells in a range contain numbers, where value1, value2, and so

forth are either numbers or cell references

COUNTA(value1[,value2,…]) Counts how many cells are not empty in ranges value1, value2, and so forth

including both numbers and text entries

INT(number) Displays the integer portion of number

MAX(number1[,number2,…]) Calculates the maximum value of a collection of number, where number1,

number2, and so forth are either numbers or cell references

MEDIAN(number1[,number2,…]) Calculates the median, or middle, value of a collection of numbers, where

number1, number2, and so forth are either numbers or cell references

MIN(value1[,value2,…]) Calculates the minimum value of a collection of numbers, where number1,

number2, and so forth are either numbers or cell references

RAND() Returns a random number between 0 and 1

ROUND(number,num_digits) Round number to the number of digits specified by num_digits

SUM(number1[,number2,…]) Adds a collection of numbers, where number1, number2, and so forth are either

numbers or cell references

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 9: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

9

Using Excel Functions, Part 3

• An argument can be any type of value including text, numbers, cell references, or even other formulas or functions

• Functions can be placed inside another function, or nested; nested functions must include all parentheses

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 10: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

10

Using the Function Library and the Insert Function Dialog Box

Category DescriptionCompatibility Functions from Excel 2010 or earlier, still supported to provide backward

compatibility

Cube Retrieve data from multidimensional databases involving online analytical

processing (OLAP)

Database Retrieve and analyze data stored in databases

Date & Time Analyze or create date and time values and time intervals

Engineering Analyze engineering problems

Financial Analyze information for business and finance

Information Return information about the format, location, or contents or worksheet cells

Logical Return logical (true-false) values

Lookup & Reference Look up and return data matching a set of specified conditions form a range

Math & Trig Perform math and trigonometry calculation

Statistical Provide statistical analyses of data sets

Text Return text values or evaluate text

Web Provide information on web-based connections

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 11: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

11

Performing What-If Analysis

• A what-if analysis lets you explore the impact that changing input values has on the calculated values in the workbook

• One way to perform a what-if analysis is by changing one or more of the input values to see how they affect the calculated results

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 12: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

12

Using Trial and Error

• The trial-and-error method requires some guesswork as you estimate which values to change and by how much

• To perform a what-if analysis by trial and error:

• Change the value of a worksheet cell (the input cell)

• Observe its impact on one or more calculated cells (the result cells)

• Repeat until the desired results are achieved

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 13: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

13

Using Goal Seek

• Goal Seek automates the trial-and-error process by specifying a value for a calculated item

• To perform a what-if analysis using Goal Seek:

• On the DATA tab, in the Data Tools group, click the What-If Analysis button, and then click Goal Seek

• Select the result cell in the Set cell box, and then specify its value (goal) in the To value box

• In the By changing cell box, specify the input cell

• Click the OK button; the value of the input cell changes to set the value of the result cell

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 14: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

14

Goal Seek Dialog Box

• In some ways, Goal Seek is the opposite of trial and error as it allows you to input the answer and then calculates the associated variables to arrive at the answer

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 15: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

15

Interpreting Error Values, Part 1

• An error value indicates that some part of a formula is preventing Excel from returning a calculated value

• An error value begins with a pound sign (#) followed by an error name that indicates the type of error

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 16: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

16

Interpreting Error Values, Part 2

Error Value Description#DIV/0! The formula or function contains a number divided by 0.

#NAME? Excel doesn’t recognize text in the formula or function, such as when the function name is misspelled.

#N/A A value is not available to a function or formula, which can occur when a workbook is initially set up prior to entering actual data values.

#NULL! A formula or function requires two cell ranges to intersect, but they don’t.

#NUM! Invalid numbers are used in a formula or function, such as text entered in a function that requires a number.

#REF! A cell reference used in a formula or function is no longer valid, which can occur when the cell used by the function was deleted from the worksheet.

#VALUE! The wrong type of argument is used in a function or formula. This can occur when you reference a text value for an argument that should be strictly numeric.

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 17: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

17

Visual Overview: Logical and Lookup Functions

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 18: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

18

AutoFilling Formulas and Data, Part 1

• AutoFill provides a quick way to enter content and formatting in cells based on existing entries in adjacent cells

• After you select a range, a fill handle appears in the lower-right corner of the selection

• When you drag the fill handle over an adjacent cell or range, AutoFill copies the content and formats from the original cell or range into the adjacent cell or range

• More efficient than the two-step process of copying and pasting

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 19: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

19

AutoFilling Formulas and Data, Part 2

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 20: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

20

Using the Auto Fill Options Button

• By default, AutoFill copies both the content and the formatting of the original range to the selected range

• Use Auto Fill Options button to specify what is copied

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 21: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

21

Filling a Series

• Use AutoFill to create a series of numbers, dates, or text based on a pattern

• Use the Series dialog box for more complex AutoFill patterns

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 22: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

22

Understanding Relative, Absolute, and Mixed References

• When a formula includes a cell reference, Excel interprets it as being located relative to the position of the current cell

• A fixed reference—one that always references the same cell no matter where it is moved—is called an absolute reference

• A mixed reference contains both relative and absolute references

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 23: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

23

Changing Cell References in a Formula

• To quickly switch a cell reference from relative to absolute or mixed

• Select the cell reference in Edit mode

• Press the F4 key

• Excel cycles through the different reference types—starting with the relative reference, followed by the absolute reference, then to a mixed reference with the row absolute, and finally to a mixed reference with the column absolute

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 24: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

24

Planning Which Cell Reference to Use in a Formula

• To include the correct type of cell reference in a formula as you create the formula requires more thought up front—consider how each cell in a formula needs to be referenced before you create the formula

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 25: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

25

Displaying the Current Date with the TODAY function, Part 1

• Many workbooks include the current date

• Use the TODAY function to display the current date in a worksheet

• The TODAY function has the following syntax:

=TODAY()

• The date displayed by the TODAY function is updated automatically whenever you reopen the workbook or enter a new calculation

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 26: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

26

Displaying the Current Date with the TODAY function, Part 2

• Inserting the TODAY function

• Select the cell you wish the date to appear in

• On the FORMULAS tab, in the Function Library group, click the Date & Time button to display the date and time functions.

• Click TODAY; the Function Arguments dialog box opens and indicates that the TODAY function requires no arguments

• Click the OK button; the formula =TODAY() is entered in the selected cell

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 27: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

27

Finding the Next Weekday with the WORKDAY function

• Use the WORKDAY function to fill in the remaining weekdays based on the start date you specify

• The WORKDAY function displays the date of the weekday a specific number of weekdays past a starting date

• The syntax of the WORKDAY function is=WORKDAY(start, days[, holiday])

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 28: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

28

Counting Cells, Part 1

• Excel has two functions for counting cells—the COUNT function and the COUNTA function

• COUNT function:

• The COUNT function tallies how many cells in a range contain numbers or dates

• The COUNT function does not count blank cells or cells that contain text

• The COUNT function syntax is COUNT(value1[, value2, value3, ...])

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 29: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

29

Counting Cells, Part 2

• COUNTA function

• Use to tally the nonblank cells in a range—whether those entries are numbers, dates, or text

• The COUNTA function syntax is:

COUNTA(value1[, value2, value3, ...])

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 30: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

30

Working with Logical Functions

• Logical functions

• Build decision-making capability into a formula

• Work with statements that are either true or false

• Excel supports many different logical functions, including the IF function

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 31: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

31

Using the IF Function

• Returns one value if a condition is true and returns a different value if that condition is false

• The syntax of the IF function is:(logical_test, [value_if_true,] [value_if_false])

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 32: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

32

Comparison Operators

• A comparison operator is a symbol that indicates the relationship between two values

Operator Expression Tests

= A1 = B1 If the value in cell A1 is equal to the value in cell B1

> A1 > B1 If the value in cell A1 is greater than the value in Cell B1

< A1 < B1 If the value in cell A1 is less than the value in cell B1

>= A1 >= B1 If the value in cell A1 is greater than or equal to the value in cell B1

<= A1 <= B1 If the value in cell A1 is less than or equal to the value in cell B1

<> A1 <> B1 If the value in cell A1 is not equal to the value in Cell B1

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 33: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

33

Using a Lookup Function, Part 1

• Lookup functions find values in tables of data and insert them in another location in the worksheet such as cells or in formulas

• An exact match lookup is when the lookup value must match one of the compare values in the first column of the lookup table

• An approximate match lookup occurs when the lookup value falls within a range of numbers in the first column of the lookup table

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 34: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

34

Using a Lookup Function, Part 2

• The table that stores the data you want to retrieve is called a lookup table

• A lookup table organizes numbers or text into categories

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.

Page 35: New Perspectives on Microsoft Excel 2016 - Class News · New Perspectives on Microsoft Excel 2016 Module 3: Performing Calculations with formulas and Functions

35

Finding an Exact Match with the VLOOKUP Function

• The syntax of the VLOOKUP function is:

VLOOKUP(lookup_value, table_array, col_index_num[, range_lookup=TRUE])

© 2017 Cengage Learning. All Rights Reserved. May not be copied, scanned, or duplicated, in whole or in part, except for use as permitted in a license distributed with a certain product or service or otherwise on a password-protected website for classroom use.