Functions BUS 782.

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

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.
Computer Science & Engineering 2111 IF and Boolean Functions 1 CSE 2111 Lecture-IF and Boolean Functions.
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.
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: –
1 Excel Lesson 5 Using Functions Microsoft Office 2010 Introductory Pasewark & Pasewark.
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
Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. 1 by Mary Anne Poatsy, Keith Mulbery, Lynn Hogan, Amy Rutledge, Cyndi Krebs, Eric.
INTRODUCTION TO FORMULAS AND FUNCTIONS 1 Nolan Tomboulian Tomboulian.wikispaces.com.
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.
FUNCTIONS FUNCTIONS are : Special formulas that do not use operators to calculate a result (i.e., a shortcut formula) Example: =SUM(A6:A9) SUM is the.
- 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.
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.
Functions BUS 782. What are functions? Functions are prewritten formulas. We use functions to perform calculations. Enclose arguments within parentheses.
DAY 5: EXCEL CHAPTER 2 Sravanthi Lakkimsetty Feb 1, 2016.
Spreadsheet Calculations Formulas & Functions Computer Applications I.
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.
Tax Preparation Financial Literacy.
Working with Functions
Computer Information Technology Section 6-17
Excel Lesson 5 Using Functions
Decision Structure ISYS 350.
Decision Structure - 1 ISYS 350.
Advanced Functions Computer Applications 1
IT133 Software Applications
Microsoft Word 2003 Excel Formulas and Functions
Decision Structure - 1 ISYS 350.
Work with Data and Decision Structure
Decision Structures ISYS 350.
Spreadsheet Review.
Microsoft Excel Excel Formulas and Functions
exploring Microsoft Office 2013 Plus
Decision Structure - 1 ISYS 350.
Lesson 4: Introduction to Functions
Decision: Action based on condition
Decision Structure - 1 ISYS 350.
Using Complex Formulas, Functions, and Tables
Working with Formulas and Functions
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: Functions: 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 4th? Compute the age given a date of birth.

Determine action based on condition If Function Determine action based on condition

Examples Simple condition: More than one condition: Complex 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 <= 10000 5% tax 10000 < taxable income <= 50000 10% tax Taxable income > 50000 15% 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 = 1200 + 200 per additional unit

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

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

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

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))

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

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), 15 cents per KH All KH over 300, 10 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 = 1200 + 200 per additional unit. Non residents: Total units taken <= 9, tuition = 3000 Total units taken > 9, tuition = 3000 + 500 per additional unit.

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