Functions BUS 782. What are functions? Functions are prewritten formulas. We use functions to perform calculations. Enclose arguments within parentheses.

Slides:



Advertisements
Similar presentations
If Function Determine action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount.
Advertisements

Lesson 3 Working with Formulas.
Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
Spreadsheets… a software program that allows you to use rows and columns of data to manage, predict, and present information. COLUMN ROW CELL (intersection)
Work with Data and Decision Structure. Murach’s Java SE 6, C3© 2007, Mike Murach & Associates, Inc. Slide 2.
MS-Excel XP Lesson 2. Handling Worksheets 1.Bottom of the every workbook you can get worksheets. 2.No of sheets for a book is three. But you can add,
Microsoft Office Illustrated Fundamentals Unit H: Using Complex Formulas, Functions, and Tables.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: – Fees_and_Expenses.
33 CHAPTER BASIC APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Announcement: QUIZ#02 In Lecture Session # 9 (5.
Basic Spreadsheet Functions Objective Functions are predefined formulas that perform calculations by using specific values, called arguments, in.
Pasewark & Pasewark 1 Excel Lesson 5 Using Functions Microsoft Office 2007: Introductory.
BASIC FUNCTIONS OF EXCEL. Addition The formula for addition is: =SUM( insert cells desired to sum up ) This returns the sum of the selected cells.
Copyright 2003, Paradigm Publishing Inc. CHAPTER 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES AutoSum Button Mathematical Operators Mathematical Operators Formula.
Nested IF and Complex Condition. Nested IF Example: –Rules to determine bonus: JobCode = 1, Bonus=500 JobCode = 2, Bonus = 700 JobCode = 3, Bonus = 1000.
VB.Net Introduction - 2. Counter Example: Keep track the number of times a user clicks a button Need to declare a variable: Dim Counter As Integer Need.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –
Lecture Excel: Formulas and Functions. Formulas Specifies calculations to be performed Begins with an equal sign (=) Can refer to: –cells by reference.
1 Excel Lesson 5 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next.
XP Copyright 2003 Peter McDevitt 1 Microsoft Excel 2002 Lecture 2 – Working With Formulas and Functions.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Excel Lesson 5 Using Functions
Last Week: Excel 101 with Prof. Bliley: Workbooks, worksheets, rows, columns Cells: Text, Value, Formulas Formulas, Ranges OK? Survive Alive? Questions?
Lesson 4 Cell Reference Formulas. Working with Cell References continued… Relative Cell Reference A relative cell reference means that the cell value.
Excel – Lesson 1 Pasewark & PasewarkMicrosoft Office 2007: Introductory 1 Entering a Formula (continued) Formulas can include more than one operator. The.
Chapter 5 Basic Functions Copyright 2005 Radian Publishing Co.
Excel chapter 2.
Pasewark & Pasewark 1 Excel Lesson 5 Using Functions Microsoft Office 2007: Introductory.
Work with Data and Decision Structure. Slide 2 Note: String and Date are classes.
DAY 5: MICROSOFT EXCEL – CHAPTER 2 Aliya Farheen January 27,2015.
Excel Functions Abby Wiertzema
Sundara Ram Matta Jan 28 th, Sundara Ram Matta Jan 28 th, 2014
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
11 Chapter 2: Formulas and Functions Chapter 02 Lecture Notes (CSIT 104) Exploring Microsoft Office Excel 2007.
Unit 4, Lesson 4 Using Function Formulas. Objectives Understand function formulas. Understand function formulas. Use the Average and Sum functions. Use.
Functions. Types of Functions Built-in functions: –Financial –Date & time –Math & statistical –Database –Lookup –Logical –Information:IsBlank, IsNumber,
DAY 5: MICROSOFT EXCEL – CHAPTER 2 Madhuri Siddula September 1, 2015.
Data Analysis: Spreadsheets ICT iGCSE. 14.1: Creating a data model.
PERFORMING CALCULATIONS Microsoft Excel. Excel Formulas A formula is a set of mathematical instructions that can be used in Excel to perform calculations.
Decisions Action based on condition. Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount. More than.
XP 1 ﴀ New Perspectives on Microsoft Office 2003, Premium Edition Excel Tutorial 2 Microsoft Office Excel 2003 Tutorial 2 – Working With Formulas and Functions.
CIS300 Test Review REACH - CRC © 2010 REACH All Rights Reserved.Fall 2010.
- Professor Kurt Brandquist - IT133 Software Applications Unit 6 Seminar: Formulas and Functions Wednesday, 6/22/11.
LOGO Chapter III Excel Functions Date: 1. LOGO Overview  Understanding Functions  Using Reference Operators  Understanding Functions Sum function Average.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 11 Copyright © 2008 Prentice-Hall. All rights reserved. Committed to Shaping the Next Generation.
Review Excel Exam 1. Format Cell –Number –Alignment –Font –Border –Pattern –Protection Worksheet (group) Conditional formatting.
Decision Structure - 1 ISYS 350. Decision: Action based on condition Examples Simple condition: – If total sales exceeds $300 then applies 5% discount;
Business Planning using Spreasheets-4 1 In-Built Functions-1  Open Office Calc, Excel and other spreadsheets contain 100s of in-built functions which.
DAY 5: EXCEL CHAPTER 2 Sravanthi Lakkimsetty Feb 1, 2016.
Spreadsheet Calculations Formulas & Functions Computer Applications I.
CTS130 Spreadsheet Lesson 6 Working with Math & Trig, Statistical, and Date & Time Functions.
Pasewark & Pasewark 1 Excel Lesson 5 Using Functions Microsoft Office 2007: Introductory.
IF Function Decision: Action based on condition. Examples SF State Tuition calculation: –
Ms. Hall Spring Functions. Excel – Lesson 4 Summarizing Data with Functions A function is a predefined formula that performs a calculation. When.
Working with Functions
Computer Information Technology Section 6-17
Excel Lesson 5 Using Functions
Decision Structure ISYS 350.
Decision Structure - 1 ISYS 350.
Decision Structure - 1 ISYS 350.
Work with Data and Decision Structure
Decision Structures ISYS 350.
Spreadsheet Review.
Decision Structure - 1 ISYS 350.
Lesson 4: Introduction to Functions
Decision: Action based on condition
Functions BUS 782.
Decision Structure - 1 ISYS 350.
Using Complex Formulas, Functions, and Tables
Microsoft Office Illustrated Fundamentals
Presentation transcript:

Functions BUS 782

What are functions? Functions are prewritten formulas. We use functions to perform calculations. Enclose arguments within parentheses. Arguments are values on which you want to perform the calculation. Example: PMT function

Types of Functions Built-in functions: –Financial –Date & time –Math & statistical –Database –Lookup –Logical –Text –Etc.

Examples of Using Math Functions: Quotient and Mod Quotient: Quotient(Dividend, Divisor) Remainder function: MOD(Dividend, Divisor)

Return the Smallest Number of Coins Examples: 26 cents: 1 Q, 1 P 57 cents: 2 Q, 1 N, 2 P 63 cents: 2 Q, 1 D, 3 P

Statistical Functions Sum, Average, Max, Min, Count –Ignore text and logical values. Can have many arguments: =SUM(A1:A3, 12, B3:B7)

Examples of Using Statistical Functions Compute each student’s: Best score, Lowest score, exam average Average of the best 3 scores Average of the best 2 scores

Large(Data range, kth value) Returns the k-th largest value in a range. Average of the best two exams: –=(Large(B2:E2,1) + Large(B2:E2,2))/2

Average Excluding the Highest and the lowest Scores

Text Functions Lower(text): Lower(“David”) -> “david” Upper(text): Upper(“David”) -> “DAVID” Proper(text): The first letter in each word in uppercase and other in lower case

Date & Time Functions How Excel handles dates: –Serial #: 1/1/1900 – day 1 Functions: –Today() – today’s date –Now() – current date and time –Year(a date) –Month(a date) –Weekday(a date)

Examples Tomorrow’s date? How many days to July 4 th ? Compute the age given a date of birth.

If Function Determine action based on condition

Examples Simple condition: –If total sales exceeds $300 then applies 5% discount; otherwise, no discount. More than one condition: Taxable Income < =3000 no tax 3000 < taxable income <= % tax < taxable income <= % tax Taxable income > % tax Complex condition: –If an applicant’s GPA > 3.0 and SAT > 1200: admitted

Comparison Less than: < Less than or equal: <= Greater than: > Greater than or equal: >= Equal: = Not equal: <> –At least: >= –At most: <= –No more than: <= –No less than: >= A comparison returns True/False. –Example:

IF Function =IF(condition, ValueIfTrue,ValueIfFalse) Example: –Tuition: If total units <= 12, then tuition = 1200 »Otherwise, tuition = per additional unit

Example: Tax rate is based on married status: –Single: 15% –Married: 10%

Example: Compute weekly wage. Overtime hours are paid 50% more than the regular pay.

Example: A restaurant charges service fee based on this rule: 15% of the check amount with a minimum of $2.

Exercises 1. How to determine an integer entered in a cell is an even number or an odd number? 2. The average of two exams is calculated by this rule: 60% * higher score + 40% * lower score. 3. An Internet service provider offers a service plan that charges customer based on this rule: The first 20 hours: $10 Each additional hour: $1.5

Nested IF

Example: –Rules to determine bonus: JobCode = 1, Bonus=500 JobCode = 2, Bonus = 700 JobCode = 3, Bonus = 1000 –In C2: If(B2=1, 500, If(B2=2, 700, 1000))

JobCode= 1 Or <> =1 JobCode=2 Or <>

Example Electric Company charges customers based on KiloWatt-Hour used. The rules are: –First 100 KH,20 cents per KH –Each of the next 200 KH (up to 300 KH), (100 < KH <= 300), 30 cents per KH –All KH over 300, 40 cents per KH

What if we have more than 3 conditions Example: Bonus –JobCode = 1, Bonus = 500 –JobCode = 2, Bonus = 600 –JobCode = 3, Bonus = 700 –JobCode = 4, Bonus = 800 –JobCode = 5, Bonus = 1000 –… Other functions: –Table lookup

Example State University calculates students tuition based on the following rules: –State residents: Total units taken <=12, tuition = 1200 Total units taken > 12, tuition = per additional unit. –Non residents: Total units taken <= 9, tuition = 3000 Total units taken > 9, tuition = per additional unit.

Resident or Not Units <= 12 or Not Units <= 9 or Not