34
© Scott/Jones Publishing, Inc © Scott/Jones Publishing, Inc . 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 Excel 2003, Volume 2 by Karen J. Jolly by Karen J. Jolly Scott/Jones Publishing, Inc. Scott/Jones Publishing, Inc.

© Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

Embed Size (px)

Citation preview

Page 1: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc. 11

Chapter 18Working with Advanced

Functions

Excel 2003, Volume 2Excel 2003, Volume 2

by Karen J. Jollyby Karen J. JollyScott/Jones Publishing, Inc.Scott/Jones Publishing, Inc.

Page 2: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

22© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

OutcomesOutcomes

Create complex formulas by nesting functions.

Create and use 3- and 4-column lookup tables.

Create nested lookup formulas.

Page 3: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

33© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Nesting Functions and Nesting Functions and FormulasFormulas

Place a function within another function. Any function can be nested within another functions.

Page 4: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

44© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Why Use a Nested Function?Why Use a Nested Function?

Employees pledge to Community Chest. Pledges from more than 15 people totaling more than $150 earn a travel alarm. All receive a coffee mug.

Page 5: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

55© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Nested IF StatementNested IF Statement

Access new If function

Enter Logical test

Page 6: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

66© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Completed If Function Completed If Function Arguments Dialog BoxArguments Dialog Box

Page 7: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

77© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Completed Worksheet with a Completed Worksheet with a Nested If StatementNested If Statement

Page 8: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

88© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Facts About Nesting FunctionsFacts About Nesting Functions

Functions may be nested within each Functions may be nested within each other allowing for very complex other allowing for very complex formulas. formulas.

Any function can be nested within one Any function can be nested within one another. another.

There may be as many as seven There may be as many as seven functions nested within other functions.functions nested within other functions.

Page 9: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

99© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Worksheet Requiring a Nested Worksheet Requiring a Nested SUM FormulaSUM Formula

Situation: Any sales rep with total sales of $18,000 or greater will earn a commission rate of 15%; sales less than $18,000 will earn a commission rate of 10%.

Page 10: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1010© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 1Step 1

Enter Logical test, which is a SUM function. Access SUM Functions Argument dialog box.

Page 11: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1111© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 2Step 2Complete the SUM function. Then click in the IF in the Formula bar.

Page 12: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1212© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 3Step 3Complete the Logical test, value if true (15% bonus), and value if false (10% bonus) text boxes.

Page 13: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1313© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

A Completed Worksheet with a A Completed Worksheet with a Nested IF FunctionNested IF Function

Page 14: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1414© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Using Functions in 3-D Using Functions in 3-D FormulasFormulas

A 3-D Formula contains a cell reference referring to a cell in a different worksheet or workbook.

When an IF statement uses data in another worksheet or workbook, a 3-D IF statement is created.

Page 15: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1515© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

3-D Nested If Statement3-D Nested If Statement

Name of external worksheet

What to state if test is true

What to state if test is false

Logical test

Page 16: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1616© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Lookup Functions using 3-4 Lookup Functions using 3-4 Column TablesColumn Tables

Lookup tables may contain several columns of information. The lookup formula may refer to data in any of the columns.

Page 17: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1717© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

ResultResult

Page 18: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1818© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

3 Column Lookup Table3 Column Lookup Table

A Lookup Table

Page 19: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

1919© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Entering a Formula using a 3 Entering a Formula using a 3 Column LookupColumn Lookup

Page 20: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2020© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

External Lookup TableExternal Lookup Table

A lookup table in a different workbook is an external lookup table. A tax table used by several employees should be placed in a separate workbook.

A Portion of the Federal Tax Table

Page 21: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2121© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Entering the Table Array from an External Workbook

Page 22: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2222© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

An External Lookup TableAn External Lookup Table

Workbook Name Range Name

Page 23: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2323© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

About Lookup Tables as Separate Workbooks

Lookup tables placed in separate Lookup tables placed in separate workbooks can be used again and workbooks can be used again and again.again.Lookup tables may include bonus Lookup tables may include bonus charts, tax rates, or discount tables. charts, tax rates, or discount tables. Save a workbook containing a lookup Save a workbook containing a lookup table in a workspace with related table in a workspace with related worksheets.worksheets.

Page 24: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2424© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Use Text as Lookup ValueUse Text as Lookup Value

Text in lookup table must be in Text in lookup table must be in alphabetical order.alphabetical order.

Page 25: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2525© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

If Function Arguments Dialog If Function Arguments Dialog Box for a Lookup FunctionBox for a Lookup Function

Page 26: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2626© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Completed Function Arguments Completed Function Arguments Dialog BoxDialog Box

Page 27: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2727© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Completed LookupCompleted Lookup

Page 28: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2828© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Worksheet With Completed Worksheet With Completed Nested FunctionsNested Functions

Page 29: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

2929© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Nested LookupsNested Lookups

Must match two criteria.Must match two criteria.Sales over than $30,000. Requires IF Sales over than $30,000. Requires IF statement.statement.More than 100 sales. Requires IF More than 100 sales. Requires IF statement.statement.Nest two IF statements within one other.Nest two IF statements within one other.If both criteria met, use lookup table to If both criteria met, use lookup table to determine bonus. If only one criteria met, determine bonus. If only one criteria met, no bonus.no bonus.

Page 30: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

3030© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 1Step 1 Name the lookup range and complete the Logical test.

Step 2Step 2

Select a second IF Function Arguments dialog box and enter second logical test.

Page 31: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

3131© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 3Step 3 Complete Value if true; access the VLookup function and complete the Function Arguments dialog box.

Page 32: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

3232© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Step 4Step 4 Click in second IF statement to complete dialog box.

Completed Nested IF function.

Page 33: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

3333© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.

Completed FunctionCompleted Function

Page 34: © Scott/Jones Publishing, Inc. 1 Chapter 18 Working with Advanced Functions Excel 2003, Volume 2 by Karen J. Jolly Scott/Jones Publishing, Inc

3434© Scott/Jones Publishing, Inc.© Scott/Jones Publishing, Inc.