Advanced functions unit 5

56
Advanced Functions Unit 6

Transcript of Advanced functions unit 5

Page 1: Advanced functions unit 5

Advanced Functions

Unit 6

Page 2: Advanced functions unit 5

TODAY & Now

What does it do?o Use this to show the date

Syntaxo =today()

Formattingo The result will normally be displayed using the

DD-MMM-YY format

Page 3: Advanced functions unit 5

TODAY Example

Page 4: Advanced functions unit 5

TODAY

What does it do?o This function extracts the day of the month from

a date Syntax

o =day(value) (value can be a constant or a cell reference)

Formattingo Normally the result will be a number, but this can

be formatted to show the actual day of the week by using Formatting

Page 5: Advanced functions unit 5

DAY Example

Page 6: Advanced functions unit 5

MONTH

What does it do?o This function extracts the month from a complete

date Syntax

o =month(date) Formatting

o Normally the result will be a number, but this can be formatted to show the actual day of the week by using Formatting

Page 7: Advanced functions unit 5

MONTH Example

Page 8: Advanced functions unit 5

YEAR

What does it do?o This function extracts the year number from a

complete date Syntax

o =year(date) Formatting

o The result is shown as a number

Page 9: Advanced functions unit 5

YEAR Example

Page 10: Advanced functions unit 5

SUMIF

What does it do?o The function adds the value of items which match

criteria set by user Syntax

o =sumif(RangeOfThingsToBeExamined,Criteria,RangeOfValuesToTotal)

Formattingo No special formatting is needed

Page 11: Advanced functions unit 5

SUMIF Example

Page 12: Advanced functions unit 5

ROUND

What does it do?o This function rounds a number to a specified

amount of decimal places Syntax

o =round(NumberToRound,DecimalPlacesToUse) Formatting

o No special formatting is needed

Page 13: Advanced functions unit 5

ROUND Example

Page 14: Advanced functions unit 5

COUNT

What does it do?o This function counts the number of numeric

entries in a list. It will ignore blanks, text and errors Syntax

o =count(Range1,Range2,Range3……ThroughTo Range30)

Formattingo No special formatting is needed

Page 15: Advanced functions unit 5

COUNT Example

Page 16: Advanced functions unit 5

COUNTA

What does it do?o This function counts the number of numeric or

text entries in a list. It will ignore blanks Syntax

o =counta(Range1,Range2,Range3……ThroughTo Range30)

Formattingo No special formatting is needed

Page 17: Advanced functions unit 5

COUNTA Example

Page 18: Advanced functions unit 5

COUNTIF

What does it do?o This function counts the number of items which

match criteria set by the user Syntax

o =countif(RangeOfThingsToBeCounted,CriteriaToBeMatched)

Formattingo No special formatting is needed

Page 19: Advanced functions unit 5

COUNTIF Example

Page 20: Advanced functions unit 5

PROPER

What does it do?o This function converts the first letter of each

word to uppercase, and all subsequent letters are converted to lower case

Syntaxo =proper(TextToCovert)

Formattingo No special formatting is needed

Page 21: Advanced functions unit 5

PROPER Example

Page 22: Advanced functions unit 5

UPPER

What does it do?o This function converts all characters in a piece of

text to upper case Syntax

o =upper(TextToCovert) Formatting

o No special formatting is needed

Page 23: Advanced functions unit 5

UPPER Example

Page 24: Advanced functions unit 5

LOWER

What does it do?o This function converts all characters in a piece of

text to lower case Syntax

o =lower(TextToCovert) Formatting

o No special formatting is needed

Page 25: Advanced functions unit 5

LOWER Example

Page 26: Advanced functions unit 5

CONCATENATE

What does it do?o This function joins separate pieces of text into one item

Syntaxo =concatenate(Text1,Text2,Text3……Text30)

Formattingo No special formatting is needed, the result is

shown as normal text

Page 27: Advanced functions unit 5

CONCATENATE Example

Page 28: Advanced functions unit 5

FV

What does it do?o This function returns the future value of an

investment based on periodic, constant payment and a constant interest rate

Syntaxo =fv(Rate,NumberOfPayments,Payment,PV,Type)

Formattingo No special formatting is needed

Page 29: Advanced functions unit 5

FV Example

Page 30: Advanced functions unit 5

NPV

What does it do?o This function Calculates the net present value of

an investment by using a discount rate and a series of future payments (negative values) and income (positive values).

Syntaxo =npv(Rate,Value1,Value2,…………)

Formattingo No special formatting is needed

Page 31: Advanced functions unit 5

NPV Example

Page 32: Advanced functions unit 5

PMT

What does it do?o This function Calculates the payment for a loan

based on constant payments and a constant interest rate.

Syntaxo =pmt(Rate,NumberOfPayments,PresentValue,FutureValu

e,Type) Formatting

o No special formatting is needed

Page 33: Advanced functions unit 5

PMT Example

Page 34: Advanced functions unit 5

PV

What does it do?o This function Returns the present value of an

investment. The present value is the total amount that a series of future payments is worth now. For example, when you borrow money, the loan amount is the present value to the lender.

Syntaxo =pv(Rate,NumberOfPayments,Payment,FutureValue,Typ

e) Formatting

o No special formatting is needed

Page 35: Advanced functions unit 5

PV Example

Page 36: Advanced functions unit 5

RATE

What does it do?o This function Returns the interest rate per period

of an annuity. RATE is calculated by iteration and can have zero or more solutions. If the successive results of RATE do not converge to within 0.0000001 after 20 iterations, RATE returns the #NUM! error value.

Syntaxo =rate(NumberOfPayments,Payments,PresentValue,Futur

eValue,Type,Guess) Formatting

o No special formatting is needed

Page 37: Advanced functions unit 5

RATE Example

Page 38: Advanced functions unit 5

HLOOKUP

What does it do?o This function scans across the column headings

at the top of a table to find a specified item. When the item is found, it then scans down the column to pick a cell entry

Syntaxo =hlookup(ItemToFind,RangeToLookIn,RowToPickFrom,So

rtedOrUnsorted) Formatting

o No special formatting is needed

Page 39: Advanced functions unit 5

HLOOKUP Example

Page 40: Advanced functions unit 5

VLOOKUP

What does it do?o This function scans across the row headings at

the side of a table to find a specified item. When the item is found, it then scans across to pick a cell entry

Syntaxo =vlookup(ItemToFind,RangeToLookIn,ColumnToPickFro

m,SortedOrUnsorted) Formatting

o No special formatting is needed

Page 41: Advanced functions unit 5

VLOOKUP Example

Page 42: Advanced functions unit 5

IF

What does it do?o This function tests a conditiono If the condition is met it is considered to be TRUEo If the condition is not met it is considered as

FALSEo Depending upon the result, one of two actions

will be carried out Syntax

o =if(Condition,ActionIfTrue,ActionIfFalse) Formatting

o No special formatting is needed

Page 43: Advanced functions unit 5

IF Example

Page 44: Advanced functions unit 5

AND

What does it do?o This function tests two or more conditions to see

if they are all trueo It can be used to test that a series of numbers

meet certain conditionso It can be used to test that a number or a date

falls between an upper or lower limito Normally the AND() function would be used in

conjunction with a function such as =IF() Syntax

o =and(Test1,Test2……..Test30) Formatting

o When used by itself it will show TRUE of FALSE

Page 45: Advanced functions unit 5

AND Example

Page 46: Advanced functions unit 5

OR

What does it do?o This function tests two or more conditions to see

if any of them are trueo It can be used to test that at least one of a series

of numbers meets certain conditionso Normally the OR() function would be used in

conjunction with a function such as =IF() Syntax

o =or(Test1,Test2……..Test30) Formatting

o When used by itself it will show TRUE of FALSE

Page 47: Advanced functions unit 5

OR Example

Page 48: Advanced functions unit 5

ISERROR

What does it do?o This function tests a cell or calculation to

determine whether an error has been generated. It will show TRUE for any error and FALSE if no error is found

Syntaxo =iserror(CellToTest)

Formattingo When used by itself it will show TRUE of FALSE

Page 49: Advanced functions unit 5

ISERROR Example

Page 50: Advanced functions unit 5

DSUM

What does it do?o This function examines a list of information and

produces a total Syntax

o =dsum(DatabaseRange,FieldName,CriteriaRange) Formatting

o When used by itself it will show TRUE of FALSE

Page 51: Advanced functions unit 5

DSUM Example

Page 52: Advanced functions unit 5

DMIN

Page 53: Advanced functions unit 5

DMAX

Page 54: Advanced functions unit 5

DCOUNT

Page 55: Advanced functions unit 5

NESTED FUNCTIONS

Page 56: Advanced functions unit 5

NESTED FUNCTIONS