Access Level Three [Functions] & “ And “ & [Expressions]

Slides:



Advertisements
Similar presentations
Formulas, Ranges, and Functions. Formulas n Formulas perform operations such as addition, multiplication, and comparison on worksheet values. n Formulas.
Advertisements

BUSINESS MATHEMATICS & STATISTICS. LECTURE 18 Review Lecture 17 Solve two linear equations with two unknowns.
EXCEL.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 1Advanced Formatting, Formulas, and Data Management Chapter 2Advanced Functions and Formulas.
Maths & Trig, Statistical functions. ABS Returns the absolute value of a number The absolute value of a number is the number without its sign Syntax ◦
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
33 CHAPTER BASIC APPLICATION SOFTWARE. © 2005 The McGraw-Hill Companies, Inc. All Rights Reserved. 1-2 Announcement: QUIZ#02 In Lecture Session # 9 (5.
MIS: Chapter 14 Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS (Separate ppt on REACH.louisville.edu) All.
ACOT Intro/Copyright Succeeding in Business with Microsoft Excel
Microsoft Office Excel 2010 ® ® Tutorial 9: Working with Financial Tools and Functions.
Tutorial 9: Exploring Financial Tools and Functions
How to Calculate Present Value & Future Value Using Microsoft Excel ACCT 2154 Chapter 7.
COMPREHENSIVE Excel Tutorial 9 Developing a Financial Analysis.
Time Value of Money, Loan Calculations and Analysis Chapter 3.
QUESTIONS IN SPREADSHEET Dr. Faiyaz Gadiwalla Hinduja College.
Databases Lab 5 Further Select Statements. Functions in SQL There are many types of functions provided. The ones that are used most are: –Date and Time.
An Amortization Schedule New Functions. An Amortization Schedule An Amortization Schedule An Amortization Schedule Payment schedule on a loan Payment.
Topic 9 Time Value of Money.
Copyright © 2001 by Wiley. All rights reserved. Chapter 3: Variables, Assignment Statements, and Arithmetic Variables Assignment Statements Arithmetic.
Formulas for Loans, Mortgages and Savings accounts Bernard Liengme January 2012.
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.
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.
Computer Science 1000 Spreadsheets II Permission to redistribute these slides is strictly prohibited without permission.
Strings PART II STRING$ AND SPACE$. Create strings of specified number String$ creates string of specified character Space$ creates string of spaces Example:
Loans and Credit Cards LSP 120 Week 9 Joanna Deszcz.
Effective Interest Rate. “Is your microfinance product correctly priced?”
1 Agenda – 4/17/2013 Discuss interest and the time value of money Explore the Excel time value of money functions Examine the accounting measures of profitability.
Chapter 13 Creating Formulas for Financial Applications Microsoft Office Excel 2003.
XP Excel Tutorial 3 Working with Formulas and Functions.
MIS: Chapter 7: Data Base and Data Warehouses Cumulative concepts, features and functions, plus new functions COUNTIFS, SUMIFS, AVERAGEIFS All assigned.
Financial Functions. Working with Loans and Investments =PMT(rate, nper, pv, [fv=0] [type=0]) =FV(rate, nper, pmt, [pv=0] [type=0]) =NPER(rate, pmt, pv,
Excel Functions Abby Wiertzema
Annuities Chapter 11 2 Annuities Equal Cash Flows at Equal Time Intervals Ordinary Annuity (End): Cash Flow At End Of Each Period Annuity Due (Begin):
BUSINESS MATHEMATICS & STATISTICS. LECTURE 8 Compound Interest Calculate returns from investments Annuities Excel Functions.
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.
Chapter 12: String Manipulation Introduction to Programming with C++ Fourth Edition.
EXPRESSION Transformation. Introduction ►Transformations help to transform the source data according to the requirements of target system and it ensures.
IENG 423 Design of Decision Support Systems Modeling with Excel Excel Basics More on Functions, trouble shooting formulas.
Lecture 8 – SQL Joins – assemble new views from existing tables INNER JOIN’s The Cartesian Product Theta Joins and Equi-joins Self Joins Natural Join.
XP 1 Microsoft Office Excel 2003 Working With Formulas and Functions.
Access Queries Agenda 6/16/14 Review Access Project Part 1, answer questions Discuss queries: Turning data stored in a database into information for decision.
Chapter 8.  Visual Basic includes several built-in mathematical functions ◦ Abs ◦ Sqr ◦ Sgn ◦ IsNumeric ◦ Round ◦ Format ◦ Pmt ◦ PV ◦ FV.
CHAPTER 2 PROBLEM SOLVING USING C++ 1 C++ Programming PEG200/Saidatul Rahah.
Ch.7 The Time Value of Money Goals: Concept of the time value of money Present value and Future value Cash flows and time value calculation Compounding.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
CHAPTER FOUR Performing Calculations and Manipulating Data: Expressions.
By: Imdadullah, Lecturer Department of MIS, CBA, KSU 1 Management Information Systems Spreadsheets Presented by: Imdadullah, Lecturer CBA, KSU
BUSINESS MATHEMATICS & STATISTICS. Module 4 Financial Mathematics Applications of Linear Equations ( Lecture 17-18) Break-even Analysis ( Lectures 19-22)
Built-in Functions in Excel Financial Functions MAN Micro-computers & Their Applications.
Time Value of Money Basics and Building Blocks
Contents Introduction Text functions Logical functions
Tutorial 3 Working with Formulas and Functions
TRACKER Contents Intro Excel 101 Math Operations Formulas 101.
Financial functions.
Excel Tutorial 9 Developing a Financial Analysis
Multiple variables can be created in one declaration
Analyzing Data Using Formulas
Chapter 2: Working with Formulas and Functions
VBScript Session 10.
Excel: Formulas & Functions III Participation Project
Spreadsheets 2 Explain advanced spreadsheet concepts and functions
Spreadsheets Objective 6.02
REACH Computer Resource Center
Lesson 7 Objectives Use the IF function. Use the PMT and FV functions.
Spreadsheets Objective 6.02
Introduction to SQL Server and the Structure Query Language
Presentation transcript:

Access Level Three [Functions] & “ And “ & [Expressions]

DateDiff ( interval, date1, date2) Keyword Arguments Parentheses Arguments

Numbers For Arguments The Int function returns the integer portion of a number. The syntax for the Int function is: Int ( arguments ) Int (210.67)would return 210 Int (2.98)would return 2 Int (-2.98)would return -3 The Round function returns a number rounded to a specified number of decimal places. Round (12.55, 1)would return 12.6 (rounds up) Round (12.65, 1)would return 12.6 (rounds down) Round (12.75, 1)would return 12.8 (rounds up)

Text For Arguments The Len function returns the length of the specified string. Len ("techonthenet")would return 12. Len ("Wednesday")would return 9. Len ("apple pie")would return 9. The Asc function returns the NUMBER code that represents the specific character. Asc ("W")would return 87. Asc ("Wednesday")would return 87. Asc ("x")would return 120.

Numbers and Text For Arguments The DateAdd function returns a date after which a certain time/date interval has been added. DateAdd ('yyyy', 3, #11/22/2003#) would return ’11/22/2006‘ DateAdd ('q', 2, #11/22/2003#) would return ’05/22/2004‘ DateAdd ('m', 5, #11/22/2003#) would return ’04/22/2004‘ DateAdd('yyyy', -1, #11/22/2003#) would return ’11/22/2002'

Field Names As Arguments Int ([Salary] + [RaiseAmount]) AVG([RaiseAmount]) Iff ([Salary] + [RaiseAmount]< [Salary Cap], [Salary] + [RaiseAmount], [Salary Cap])

Functions As Arguments (Nested Functions) Int (Iff ([Salary] *.5 > , [Salary] *.25, [Salary] *.35)) Function As Argument Function

The DateDiff Function The DateDiff function returns the difference between two date values, based on the interval that you specify. The syntax for the DateDiff function is: DateDiff ( interval, date1, date2, [firstdayofweek], [firstweekofyear]) interval is the interval of time to use to calculate the difference between date1 and date2.(see next slide) date1 and date2 are the two dates to calculate the difference between.

Valid Intervals for DateDiff IntervalExplanationIntervalExplanation yyyyYearwWeekday qQuarterwwWeek mMonthhHour yDay of YearnMinute dDaysSecond All values must be enclosed in quotes in the function.

The IFF Function The IIF function returns one value if a specified condition evaluates to TRUE, or another value if it evaluates to FALSE. The syntax for the iif function is: iif ( condition, value_if_true, value_if_false ) condition is the value that you want to test. value_if_true is the value that is returned if condition evaluates to TRUE. value_if_false is the value that is return if condition evaluates to FALSE.

The IFF Function iif ([Qty] > 10, "large", "small") …would return… "large" if the value in the Qty field is greater than 10 “small” if the value is 10 or less The Function…

The IFF Function – Nested IFF iif ([Qty] > 100, "large", iff([Qty]>50, medium”,"small")) This function would return… Large if Qty is 101 or greater Medium Qty is between 51 and 100 Small if Qty is 50 or less

The INT Function The Int function returns the integer portion of a number. The syntax for the Int function is: Int ( expression ) expression is a numeric expression whose integer portion is returned.

The INT Function Examples Int (210.67)would return 210 Int (2.98)would return 2 Int (-2.98)would return -3 Note: If the expression is negative, the Int function will return the first negative number that is less than or equal to the expression.

The SQR Function The Sqr() function is used to calculate the square root of a double-precision number. Its syntax is: Sqr(number) This function takes one argument and it must be a number. After the calculation, the function returns the square root of the number.

The SQR Function Examples: sqr(100) returns 10 sqr(25)returns 25 sqr(55)returns ? sqr([total])returns the square rootof the value being stored in the field named total

The LEN Function The Len function returns the length of the specified string. The syntax for the Len function is: Len ( text ) text is the string to return the length for.

The LEN Function Examples: Len ("techonthenet")would return 12 Len ("Wednesday")would return 9 Len ("apple pie")would return 9 Len (“”)would return 0 Note: the text string must be enclosed in double quotes, especially if it contains a space or any special characters.

The & Operator Used to concatenate multiple strings into a single string string_1 & string_2 & string_n Example: "new" & "ark“ would return "newark“ "Tech on the" & " Net!“ would return "Tech on the Net!“ "This " & "is " & "a test“ would return "This is a test" Text must be enclosed in double quotes. You can concatenate field names text strings or expressions

Double Declining Balance (DDB) Used to calculate the depreciating value of an asset The syntax is… DDB(cost, salvage, life, period) DDB($15000, $1200, 4, 3) DDB([OriginalPrice], [EOL-Value], [HowLongIWillKeepIt], [Now - PurDate]

Double Declining Balance (DDB) Cost = How much you paid for it Salvage = How much it is worth at the end of its useful life Life = How long the item will last, the useful lifetime of the item Period = The year* for which you want to calculate depreciation for a given item. DDB(cost, salvage, life, period) * If an item has a life of 5 years, you can calculate depreciation for the first year (1), second year (2), third year (3), etc.

Age: IIf(DateDiff("yyyy",[PurchaseDate], Date()) > [Lifetime], "Too Old", DateDiff("yyyy", [PurchaseDate], Date()))

CurrYearDepreciation: IIf([Age]="Too Old", 0, DDB([PurchaseValue], [SalvageValue],[Lifetime],[Age]))

The PMT Function The PMT function calculates the total monthly (or other period) payment (principal + interest) for any given loan amount The syntax for the PMT function is: Pmt(Rate, NPeriods, PresentValue, FutureValue, PaymentType)

The PMT Function Rate is the interest rate per period –5% annual interest rate = 5%/12 for monthly payment –5% annual interest rate = 5%/6 for bi- monthly payments –5% annual interest rate = 5%/2 for semi- annual payments Nper is the number of periods –For a 10 year loan… The Nper is 120 if you are making monthly payments on the loan The Nper is 10 if you are making annual payments

The PMT Function PV is present value, the amount of the loan (after down payment) –If you are borrowing money, this value should be negative –If you are collecting money (you loan money to another person) this value should be positive FV is future value, the balance after the last payment –This argument is optional. If it left blank Access assumes 0. Type or Due determines when payment is due. –0 = End of the Month –1 = Beginning of the Month –Argument is optional

The PMT Function Examples –Pmt(12.5%, 28, $1450, 0, 1) = -$59.97 –Pmt(12.5%, 28, -$1450, 0, 1) = $59.97 –Pmt([InterestRate], [LengthOfLoan [LoanAmount]) –Pmt([InterestRate]/12, [LengthOfLoan], [LoanAmount])

The Future Value of an Investment To calculate the future value of an investment, use the FV() function. The syntax of this function is: FV(Rate, Periods, Payment, PresentValue, PaymentType) PaymentType is optional

The Number of Periods of an Investment To calculate the number of periods of an investment or a loan, use the NPer() function. The syntax of this function is: NPer(Rate, Payment, PresentValue, FutureValue, PaymentType);

Amount Paid As Interest During a Period a The IPmt() function is used to calculate the amount paid as interest on a loan during a period of the lifetime of a loan or an investment. The syntax of this function is: IPmt(Rate, Period, NPeriods, PresentValue, FutureValue, PaymentType)

The Amount Paid as Principal The PPmt() function calculates the actual amount that applies to the balance of the loan. The syntax of this function is: PPMT(Rate, Period, NPeriods, PresentValue, FutureValue, PaymentType)

Present Value of Loan or Investment The PV() function calculates the total amount that future investments are worth currently. The syntax of this function is: PV(Rate, NPeriods, Payment, FutureValue, PaymentType)

Understanding Period, Nper, and Rate

Math and Trig Functions Abs(number) Int(number) Sgn(number) Sqr(number) Atn(number) Log(number) Sin(angle) Cos(angle) Tan(angle)

Informational Functions IsNull –Returns a Boolean value that indicates whether an expression contains no valid data (Null). –Syntax IsNull(expression) Nz –return a value when a variant is null. –The syntax for the Nz function is: Nz ( variant, [ value_if_null ] ) Nz (varName, "n/a") - would return the value 'n/a' if the variable varName contained a null value.

Informational Functions IsError –Returns a Boolean value indicating whether an expression is an error value. –Syntax IsError(expression) Typename –Returns a String that provides information about a variable. –Syntax TypeName(varname)

Informational Functions IsNumeric –Returns a Boolean value indicating whether an expression can be evaluated as a number. –Syntax IsNumeric(expression)

Strings Returned By Typename

The Replace Function The Replace function replaces a sequence of characters in a string with another set of characters (a number of times). The syntax for the Replace function is: Replace ( string1, find, replacement, [start, [count, [compare]]] ) The start, count, and compare arguments are optional

The Replace Function Examples: Replace("alphabet", "bet", "hydro") would return "alphahydro" Replace ("alphabet", "a", "e") would return "elphebet“ Replace("alphabet", "a", "e", 2) would return "lphebet" Replace("alphabet", "a", "e", 1, 1) would return "elphabet" The start, count, and compare arguments are optional

Functions You Should Know Date √ DateValue Day360 Minute Now() Second Time Year DDB √ FV √ IRR MIRR NPV NPER PMT √ PV RATE SLN SYD ABS √ ATAN √ COMBIN COS EXP COLUMN HYPERLINK AVG √ COUNT √ MAX √ MIN √ STDEVP VARP CHAR CONCATENATE √ LEFT LEN √ LOWER MID REPLACE √ RIGHT TRIM UPPER TRIM INT √ LOG √ RAND √ SUM √ TAN √ ISNULL √ ISNA ISNONTEXT SINUMBER NZ √ TYPE √ CHOOSE √ = covered in this workshop