# 1# 1 CS 105 Functions, IF Functions What is a function? What is an IF function? A PMT function? What is a condition? What is nesting? CS 105 Spring.

Slides:



Advertisements
Similar presentations
Microsoft Office Illustrated Using Formulas Analyzing Data.
Advertisements

Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
CS&E 1111 Exfunctions Using Functions in Excel Objectives: Using Excel functions l SUM, MIN, MAX, AVERAGE, COUNT, COUNTA l ROUND l COUNTIF, SUMIF, AVERAGEIF.
EXCEL.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
Introduction to Excel Formulas, Functions and References.
33 CHAPTER BASIC APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Announcement: QUIZ#02 In Lecture Session # 9 (5.
How to Calculate Present Value & Future Value Using Microsoft Excel ACCT 2154 Chapter 7.
Pasewark & Pasewark 1 Excel Lesson 5 Using Functions Microsoft Office 2007: Introductory.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES AutoSum Button Mathematical Operators Mathematical Operators Formula.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Spreadsheets in Decision Making: What If? Robert Grauer and Maryann Barber Exploring.
Exploring Microsoft Excel 2002 Chapter 3 Chapter 3 Spreadsheets in Decision Making: What If? By Robert T. Grauer Maryann Barber Exploring Microsoft Excel.
Microsoft Excel How to do a quick loan using PMT.
1 Excel Lesson 5 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
Excel Functions By Hani Almohair Microsoft Office 2003.
® Microsoft Office 2010 Excel Tutorial 3: Working with Formulas and Functions.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Spreadsheets Objective 6.02
Chapter 06: Lecture Notes (CSIT 104) 1 Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Copyright © 2008 Prentice-Hall. All rights reserved.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Mathematical OperatorsMathematical Operators Formula.
2 Explain advanced spreadsheet concepts and functions Advanced Calculations 1 Sabbir Saleh_Lecture_17_Computer Application_BBA.
Copyright 2007, Paradigm Publishing Inc. EXCEL 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Naming Ranges Functions COUNT, COUNTA, COUNTIF, COUNTIFS.
Excel 2010 Formulas and Functions One of Excel's most useful features is that it allows users to create custom formulas to perform calculations on their.
Excel Lesson 5 Using Functions
Microcomputers Review Excel. Shortcut Keys The key combination that can be used to show formulas is:formulas Ctrl + ` Show Formulas using Shortcut Keys.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Excel – Lesson 1 Pasewark & PasewarkMicrosoft Office 2007: Introductory 1 Entering a Formula (continued) Formulas can include more than one operator. The.
Microsoft Office Excel 2013 Expert Microsoft Office Excel 2013 Expert Courseware # 3254 Lesson 5: Pivot Charts and Advanced Formulas.
XP Excel Tutorial 3 Working with Formulas and Functions.
LOGO Chapter VI Advanced Functions 1. LOGO Overview  INTRODUCTION  NESTED FUNCTIONS  LOOKUP  VLOOKUP  COUNTIF  SUMIF  IF  ROUND  THE PMT, IPMT.
Excel Projects 5 & 6 Notes Mr. Ursone. Excel Project 5: Sorting a List  Sorting: Arranging records in a specific sequence  The Sort command is on the.
Microsoft® Excel Use Insert Function. 1 Key and point to enter functions. 2 Navigate with and create named ranges. 3 Use range names in functions.
Revision Function in Spreadsheet. AVERAGE Returns the average (arithmetic mean) of the arguments. Syntax AVERAGE(number1,number2,...) Number1, number2,...
Lesson 5 Using FunctionUsing Function. Objectives.
Excel Spreadsheet basics. Excel Sheets and Books  Spreadsheet: tool to analyze, chart and manage data for personal, business and financial use Worksheet:
Sundara Ram Matta Feb 02 nd, Sundara Ram Matta Feb 02 nd, 2015
Lesson 7 Using Logical and Financial Functions
Copyright © 2008 Pearson Prentice Hall. All rights reserved Chapter 6 Data Tables and Amortization Tables Exploring Microsoft Office Excel 2007.
Spring Final Review Excel and PowerPoint. Excel Functions – IF computer chooses between alternatives = if ( condition, true section, false section ) 
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. a lesson approach Microsoft® Excel 2010 © 2011 The McGraw-Hill Companies,
CSCI-235 Micro-Computers in Science Microsoft Excel 2002 Chapter 3 Spreadsheets in Decision Making: What If?
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
Overview Excel is a spreadsheet, a grid made from columns and rows. It is a software program that can make number manipulation easy and somewhat painless.
 Enhance understanding of logical functions.  Discuss using conditional logic focusing on: ◦ IF ◦ SUMIF(s) ◦ COUNTIF(s) ◦ AVERAGEIF(s)  While waiting.
Microsoft Office 2013 ®® Calculating Data with Formulas and Functions.
Intermediate Excel 2013 Gareth Johns IT Skills Development Advisor.
Microsoft ® Excel ® 2013 Enhanced Excel Tutorial 3 Calculating Data with Formulas and Functions.
FUNCTIONS The parts of a function In order to work correctly, a function must be written a specific way, which is called the syntax. The basic syntax for.
Spreadsheet Calculations Formulas & Functions Computer Applications I.
CTS130 Spreadsheet Lesson 6 Working with Math & Trig, Statistical, and Date & Time Functions.
Excel, Part 3 Computer Tech. Changing the angle of your text  You can change the angle, or orientation of your text in an Excel spreadsheet.  This is.
Ms. Hall Spring Functions. Excel – Lesson 4 Summarizing Data with Functions A function is a predefined formula that performs a calculation. When.
CSE111 Introduction to Computer Applications
Using Advanced Functions and Conditional Formatting
Tutorial 3 Working with Formulas and Functions
Computer Information Technology Section 6-17
Excel Lesson 5 Using Functions
Excel IF Function.
MS-Excel Part 1.
Analyzing Data Using Formulas
Grauer and Barber Series Microsoft Excel Chapter Three
Chapter 2: Working with Formulas and Functions
Excel Functions By Hani Almohair
Excel Functions.
Excel Functions.
Excel: Formulas & Functions III Participation Project
Spreadsheets 2 Explain advanced spreadsheet concepts and functions
Spreadsheets Objective 6.02
Spreadsheets Objective 6.02
in Excel Instructor: Zhe He Department of Computer Science
Presentation transcript:

# 1# 1 CS 105 Functions, IF Functions What is a function? What is an IF function? A PMT function? What is a condition? What is nesting? CS 105 Spring 2010

# 2# 2 Functions An Excel command that does a specific task Here’s a common function in Excel: SUM(A2:B5) This function’s task: sum all cell values described within the parentheses (here, the range A2:B5) –the answer is called the function’s return value Why functions? Define once, use many times –simply change the stuff within parentheses –called the arguments of the function

# 3# 3 CS 105 Spring 2010 Arguments A function has a name and arguments Arguments can be data, cell names/ranges or other functions Examples: SQRT (9) one argument AVERAGE (A3, A5, A7) three arguments SUM (A1:A10, Totals) two arguments (a range and the name of a range)

# 4# 4 CS 105 Spring 2010 Built-in functions Excel comes pre-loaded with many useful functions Categories include: –Math & Trige.g., SQRT, ABS, COUNT, COUNTA,… –Statisticale.g., AVG –Financiale.g. PMT –Text e.g. CONCATENATE Later, we will see how to write our own functions to extend Excel’s “toolkit” or “library”

# 5# 5 CS 105 Spring 2010 PMT function PMT function requires interest rate/period, number of payments, and amount of loan Establish PMT –Amount of loan –Down payment –Interest rate/12 –Term (in months)

# 6# 6 CS 105 Spring 2010 As in…

# 7# 7 CS 105 Spring 2010 Note: Watch out! Repayment is by default from the bank’s point of view (returns a negative number, and we want a positive number). In order to find our payment, we make the final number negative

# 8# 8 Quiz on PMT Say the interest on a car is 18% a year. In calculating the interest PER MONTH you: A.Pay 18% interest each month B.Pay 18% divided by 12 C.Pay 18% multiplied by 12 CS 105 Spring 2010

# 9# 9 Using Goal Seek I want to pay only $200 a month. What car can I afford? –Change payment total by changing one of the above variables –The top value must have a formula in it –Goal: $200 –Computer calculates the value of the car you can afford Data Tab in Excel 2007

# 10 Suppose we want formula #1 under some conditions, and a different formula #2 under other conditions Example: How does the ABS function work? ABS(A5) = A5if A5 >= 0, but ABS(A5) = -A5if A5 < 0 Visually: CS 105 Spring 2010 IF: adding power to functions True A5 >= 0 If False A5 -A5

# 11 CS 105 Spring 2010 The IF function Apply formula #1 (after first comma) True Apply formula #2 (after second comma) Condition If False

# 12 CS 105 Spring 2010 How the IF function works: eg, single IF statement looks like this: IF(A2>90, “A”, “B”) IF (logical test, value if true, value if false) Note: string data in a formula must be surrounded by “ ”, why?

# 13 CS 105 Spring 2010 Commission example If TEESALES sells $100,000 worth of tee shirts, the sales commission rate will be 6%. If the sales total is less than $100,000, the rate will be only 5%. Finding the Commission for sales >= $100,000, pay 6% of sales for sales < $100000, pay 5% of sales

# 14 CS 105 Spring 2010 Example IF function wizard An IF function tests for a condition You can type the IF function directly in the formula box or use the dialog box of the IF Function

# 15 CS 105 Spring 2010 Example of IF =IF(B3>=100000,.06*B3,.05* B3) B3>=100000?.06*B3 TRUE.05*B3 FALSE

# 16 CS 105 Spring 2010 Nested IFs If TEESALES sells $100,000 worth of tee shirts, the sales commission rate will be 6%. If the sales total is equal to or more than $80,000, but less than $100,000, the rate will be 5%. If total sales are below $80,000, the rate will be 3.5% of sales.

# 17 CS 105 Spring 2010 Example 2 of IF B3>=100000?.06*B3.035* B3 TRUE FALSE? Then another test....05*B3 TRUEFALSE =IF( B3>=100000,.06*B3, IF(B3>=80000,.05*B3,.035*B3) ) B3>=80000?

# 18 CS 105 Spring 2010 Practice with Relational Operators A1 = B1 -- FALSE A1 <> B1-- TRUE A1 = B2 -- FALSE A1 < B1 -- TRUE A1 < B2-- TRUE A1 = A2-- TRUE A1 >= A2-- TRUE A2 > B2-- FALSE

# 19 CS 105 Spring 2010 AND, OR, NOT Functions Formula view Output of formulas:

# 20 CS 105 Spring 2010 COUNTIF Function Syntax: COUNTIF(Range, Criteria) Can be used on a summary worksheet, as in lab Download employee.xls to practice this

# 21 CS 105 Spring 2010 SUMIF Function The SUMIF function adds figures to a total only if they match a certain criterion The syntax is SUMIF( range, criteria to check, range where numbers are)

# 22 Text Functions Concatenation (putting two words together) Concatenation can be done by a function –e.g. =CONCATENATE(B3,C4) Operands can be : – character strings: “Tarzan” & “Jane” – cell addresses containing text values: B3 Concatenation can also be done by using an operator & e.g. = B3 & C4 CS 105 Spring 2009

# 23 Adding a space Strings in formulas must always appear in quotes in Excel. To add a space, just put it between quotes. Remember, there is an ASCII value for a space! You can also put a space between the quote and the start of Water CS 105 Spring 2009

# 24 CS 105 Spring 2010 To Summarize What is a function? What is an IF function? A PMT function? What is a condition? What is nesting?

# 25 Figuring out monthly interest The answer is that you take the annual interest rate and divide it by 12, the number of months CS 105 Spring 2010