CG3416-CalcFunctions

download CG3416-CalcFunctions

of 41

Transcript of CG3416-CalcFunctions

  • 7/27/2019 CG3416-CalcFunctions

    1/41

    Calc Guide

    Appendix B

    Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    2/41

    Copyright

    This document is Copyright 20052012 by its contributors as listed below. You may distribute itand/or modiy it under the terms o either the G!" General #ublic $icense%http&//www.gnu.org/licenses/gpl.html'( )ersion * or later( or the Creati)e Commons +ttribution$icense %http&//creati)ecommons.org/licenses/by/*.0/'( )ersion *.0 or later.

    +ll trademar,s within this guide belong to their legitimate owners.

    Contributors

    -arbara upreyean ollis eberimon -rydon

    Feedback#lease direct any comments or suggestions about this document to&documentation3global.libreoice.org

    Acknowledgments

    This appendi4 is based on +ppendi4 - o the OpenOffice.org 3.3 Calc Guide. The contributors tothat appendi4 are&

    agnus +dielsson 6ichard -arnes #eter 7uper8ain 6oberts ean ollis eber

    Publication date and software version

    #ublished 19 une 2012. -ased on $ibre:ice *.;. ptionsmenuselection

    !ibreffice > Preferences +ccess setup options

    Right-click Control+click :pens a conte4t menu

    Ctrl Control! z%Co""and' "sed with other ,eys

    F# $hift >z>F# :pens the !a)igator

    F%% z>& :pens the tyles and =ormatting window

    Docu"entation for 'i(reOffice is a)aila(le athttp*,,,.li(reoffice.orgget-helpdocu"entation

    http://www.gnu.org/licenses/gpl.htmlhttp://creativecommons.org/licenses/by/3.0/mailto:[email protected]://www.libreoffice.org/get-help/documentationhttp://www.libreoffice.org/get-help/documentationhttp://www.gnu.org/licenses/gpl.htmlhttp://creativecommons.org/licenses/by/3.0/http://www.libreoffice.org/get-help/documentationmailto:[email protected]
  • 7/27/2019 CG3416-CalcFunctions

    3/41

    Contents

    Copyright"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #

    Note for Mac users"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""#

    Functions available in Calc"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""$

    Terminology& numbers and arguments......................................................................................... ;

    Mathematical functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" $

    Financial analysis functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" %

    + note about dates....................................................................................................................... ?

    + note about interest rates........................................................................................................... ?

    &tatistical analysis functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""'%

    (ate and time functions"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #$

    !ogical functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #)

    *nformational functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" #%

    (atabase functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""#+

    Array functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""",'

    &preadsheet functions"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" ,#

    Te-t functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""",.

    Add/in functions""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""",+

    Description of Functions 3

  • 7/27/2019 CG3416-CalcFunctions

    4/41

    Functions available in Calc

    Calc pro)ides all o the commonly used unctions ound in modern spreadsheet applications. incemany o Calc@s unctions reAuire )ery speciic and careully calculated input arguments( thedescriptions in this appendi4 should not be considered complete reerences or each unction.6eer to the application elp or the $ibre:ice wi,i or details and e4amples o all unctions. :nthe wi,i( start withhttp&//help.libreoice.org/Calc/=unctionsBbyBCategory

    :)er *00 standard unctions are a)ailable in Calc. ore can be added through e4tensions to Calc%see Chapter 1;'. The ollowing tables list Calc@s unctions organied into ele)en categories.

    Note

    =unctions whose names end with0A((are pro)ided or compatibility with icrosotD4cel unctions.They return the same results as the corresponding unctions in D4cel%without the sui4'( which though they may be correct( are not based on internationalstandards.

    Terminology1 numbers and arguments

    ome o the descriptions in this appendi4 deine limitations on the number o )alues or argumentsthat can be passed to the unction. peciically( unctions that reer to the ollowing arguments maylead to conusion&

    Number0'2 number0#2""" number0,3

    !umber 1 to *0

    a list o up to *0 numbers

    There is a signiicant dierence between a list of nu"(ers %or integers' and the nu"(er ofargu"entsa unction will accept. =or( e4ample the $unction will only accept a ma4imum o *0arguments. This limit does !:T mean that you can only sum *0 numbers( but that you can onlypass *0 separate arguments to the unction.

    +rguments are )alues separated by semiEcolons( and can include ranges which oten reer tomultiple )alues. Thereore one argument can reer to se)eral )alues( and a unction that limits inputto *0 arguments may in act accept more then *0 separate numerical )alues.

    This appendi4 attempts to clariy this situation by using the term arguments( rather than any o theother phrases.

    Mathematical functions

    &a(le %* athe"atical functions

    Syntax Description

    +-%number' 6eturns the absolute )alue o the gi)en number.

    +C:%number' 6eturns the in)erse cosine o the gi)en numberin radians.

    +C:%number' 6eturns the in)erse hyperbolic cosine o the gi)en number inradians.

    +C:T%number' 6eturns the in)erse cotangent o the gi)en numberin radians.

    +C:T%number' 6eturns the in)erse hyperbolic cotangent o the gi)en numberin radians.

    +8!(number' 6eturns the in)erse sine o the gi)en numberin radians.

    / Description of Functions

    http://help.libreoffice.org/Calc/Functions_by_Categoryhttp://help.libreoffice.org/Calc/Functions_by_Categoryhttp://help.libreoffice.org/Calc/Functions_by_Category
  • 7/27/2019 CG3416-CalcFunctions

    5/41

    Syntax Description

    +8!%number' 6eturns the in)erse hyperbolic sine o the gi)en numberinradians.

    +T+!%number' 6eturns the in)erse tangent o the gi)en numberin radians.

    +T+!2%numberB4F numberBy' 6eturns the in)erse tangent o the speciied 4 and y coordinates.

    Number0-is the )alue or the 4 coordinate. Number0yis the)alue or the y coordinate.

    +T+!%number' 6eturns the in)erse hyperbolic tangent o the gi)en number.%+ngle is returned in radians.'

    CD8$8!G%numberF signiicanceFmode'

    6ounds the gi)en numberto the nearest integer or multiple osigniicance.&ignificanceis the )alue to whose multiple o ten

    the )alue is to be rounded up %.01( .1( 1( 10( etc.'.Modeis an

    optional )alue.8 it is indicated and nonEero and i the numberand signiicance are negati)e( rounding up is carried out basedon that )alue.

    C:-8!%countB1F countB2' 6eturns the number o combinations or a gi)en number oobects.Count0'is the total number o elements.Count0#isthe selected count rom the elements. This is the same as thenCr unction on a calculator.

    C:-8!+%countB1F countB2' 6eturns the number o combinations or a gi)en number oobects %repetition included'.Count0'is the total number o

    elements.Count0#is the selected count rom the elements.

    C:!HD6T%)alueF Ite4tIF Ite4tI' Con)erts a currency )alue o a Duropean currency into Duros.

    4alueis the amount in the currency to be con)erted. Te-tis theoicial abbre)iation or the currency in Auestion %or e4ample(ID"6I'. The irst Te-tparameter gi)es the source )alue to be

    con)ertedF the second Te-tparameter gi)es the destination)alue. -oth te-targuments must be within Auotes.

    C:%number' 6eturns the cosine o the gi)en number%angle in radians'.

    C:%number' 6eturns the hyperbolic cosine o the gi)en number%angle inradians'.

    C:T%number' 6eturns the cotangent o the gi)en number%angle in radians'.

    C:T%number' 6eturns the hyperbolic cotangent o the gi)en number%angle inradians'.

    C:"!T-$+!7%range' 6eturns the number o empty cells.5angeis the cell range in

    which the empty cells are counted.C:"!T8=%rangeF criteria' 6eturns the number o elements that meet certain criteria within

    a cell range.5angeis the range to which the criteria are to be

    applied.Criteriaindicates the criteria in the orm o a number( aregular e4pression( or a character string by which the cells arecounted.

    DG6DD%number' Con)erts the gi)en numberin radians to degrees.

    DHD!%number' 6ounds the gi)en numberup to the nearest e)en integer.

    DJ#%number' 6eturns eraised to the power o the gi)en number.

    =+CT%number' 6eturns the actorial o the gi)en number.

    athe"atical functions #

  • 7/27/2019 CG3416-CalcFunctions

    6/41

    Syntax Description

    =$::6%numberF signiicanceFmode'

    6ounds the gi)en numberdown to the nearest multiple osignificance.&ignificanceis the )alue to whose multiple o ten

    the number is to be rounded down %.01( .1( 1( 10( etc.'.Modeisan optional )alue. 8 it is indicated and nonEero and i thenumber and signiicance are negati)e( rounding up is carried out

    based on that )alue.GC%numbers' 6eturns the greatest common di)isor o one or more integers.

    Numbersis a list o up to *0 numbers whose greatest commondi)isor is to be calculated( separated by semiEcolons.

    GCB+%numbers' 6eturns the greatest common di)isor o a list o numbers.Numbersis a list o up to *0 numbers separated by semiEcolons.

    8!T%number' 6ounds the gi)en numberdown to the nearest integer.

    8DHD!%)alue' 6eturns T6"D i the gi)en valueis an e)en integer( or =+$D ithe valueis odd. 0f the valueis not an integer1 the function

    e)aluates onl2 the integer part of the value.

    8:%)alue' 6eturns T6"D i the gi)en valueis an odd integer( or =+$D ithe valueis e)en. 0f the valueis not an integer1 the functione)aluates onl2 the integer part of the value.

    $C%integerB1F integerB2F ...integerB*0'

    6eturns the least common multiple o one or more integers.*nteger0'2 integer0#2""" integer0,3are integers whose lowestcommon multiple is to be calculated.

    $CB+%numbers' Numbersis a list o up to *0 numbers separated by semiEcolons. The result is the lowest common multiple o a list onumbers.

    $!%number' 6eturns the natural logarithm based on the constant eo thegi)en number.

    $:G%numberF base' 6eturns the logarithm o the gi)en numberto the speciiedbase.6aseis the base or the logarithm calculation.

    $:G10%number' 6eturns the baseE10 logarithm o the gi)en number.

    :%di)idendF di)isor' 6eturns the remainder ater a number is di)ided by a di)isor.(ividendis the number which will be di)ided by the di)isor.(ivisoris the number by which to di)ide the di)idend.

    6:"!%numberF multiple' The result is the nearest integer multipleo the number.

    "$T8!:8+$ %number%s'' 6eturns the actorial o the sum o the arguments di)ided by theproduct o the actorials o the arguments. Number7s8is a list oup to *0 numbers separated by semiEcolons.

    :%number' 6ounds the gi)en numberup to the nearest odd integer.

    #8%' 6eturns the )alue o #8 to ourteen decimal places.

    #:D6%baseF power' 6eturns the result o a number raised to a power. 6aseis the

    number that is to be raised to the gi)en power. Poweris thee4ponent by which the base is to be raised.

    Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    7/41

    Syntax Description

    #6:"CT%number 1 to *0' ultiplies all the numbers gi)en as arguments and returns theproduct.Number ' to number ,3are up to 34 argu"entswhose product is to be calculated( separated by semiEcolons.

    K":T8D!T%numeratorFdenominator'

    6eturns the integer result o a di)ision operation. Numeratoristhe number that will be di)ided. (enominatoris the number the

    numerator will be di)ided by.

    6+8+!%number' Con)erts the gi)en numberin degrees to radians.

    6+!%' 6eturns a random number between 0 and 1. This number willrecalculate e)ery time data is entered or F5is pressed.

    6+!-DTDD! %bottomF top' 6eturns an integer random number between bottomand top%inclusi)e'. This number will recalculate when theControl+$hift+F5,ey combination is pressed.

    6:"!%numberF count' 6ounds the gi)en numberto a certain number o decimalplaces according to )alid mathematical criteria.Count%optional'is the number o the places to which the )alue is to be rounded.8 the countparameter is negati)e( only the whole numberportion is rounded. 8t is rounded to the place indicated by thecount.

    6:"!:!%numberF count' 6ounds the gi)en number.Count%optional' is the number o

    digits to be rounded down to. 8 the countparameter is negati)e(only the whole number portion is rounded. 8t is rounded to theplace indicated by the count.

    6:"!"#%numberF count' 6ounds the gi)en number up.Count%optional' is the number odigits to which rounding up is to be done. 8 the countparameter is negati)e( only the whole number portion is

    rounded. 8t is rounded to the place indicated by the count.D68D"%4F nF mFcoeicients'

    6eturns a sum o powers o the number 4 in accordance withthe ollowing ormula&

    D68D"%4FnFmFcoeicients' L coeicientB1M4Nn >coeicientB2M4N%n>m' > coeicientB*M4N%n>2m' >...>coeicientBiM4N%n>%iE1'm'.

    -is the number as an independent )ariable. nis the starting

    power.mis the increment.Coefficientsis a series o

    coeicients.=or each coeicient the series sum is e4tended byone section. You can only enter coefficientsusing cellreerences.

    8G!%number' 6eturns the sign o the gi)en number. The unction returns theresult 1 or a positi)e sign( 1 or a negati)e sign( and 0 or ero.

    8!%number' 6eturns the sine o the gi)en number%angle in radians'.

    8!%number' 6eturns the hyperbolic sine o the gi)en number %angle inradians'.

    K6T%number' 6eturns the positi)e sAuare root o the gi)en number.The )alueo the numbermust be positi)e.

    K6T#8%number' 6eturns the sAuare root o the product o the gi)en numberand#8.

    athe"atical functions 6

  • 7/27/2019 CG3416-CalcFunctions

    8/41

    Syntax Description

    "-T:T+$%unctionF range' Calculates subtotals.8 a range already contains subtotals( these

    are not used or urther calculations. Functionis a )alue that

    stands or another unction such as+)erage( Count( in( um(

    Har.5angeis the range whose cells are included.

    "%numberB1F numberB2F ...numberB*0'

    +dds all the numbers in a range o cells. Number0'2number0#2""" number0,3are up to *0 arguments whose sum isto be calculated. You can also enter a range using cellreerences.

    SUMIF%rangeF criteriaFsumBrange'

    +dds the cells speciied by a gi)en criteria. The search supportsregular e4pressions. 5angeis the range to which the criteria areto be applied. Criteriais the cell in which the search criterion isshown( or the search criterion itsel. &um0rangeis the rangerom which )alues are summedF i it has not been indicated( the)alues ound in the 5angeare summed.

    SUMSQ%numberB1FnumberB2F ... numberB*0'

    Calculates the sum o the sAuares o numbers %totaling up o thesAuares o the arguments' Number0'2 number0#2"""number0,3are up to *0 arguments( the sum o whose sAuaresis to be calculated.

    T+!%number' 6eturns the tangent o the gi)en number%angle in radians'.

    T+!%number' 6eturns the hyperbolic tangent o the gi)en number%angle inradians'.

    T6"!C%numberF count' Truncates a number to an integerby remo)ing the ractional parto the number according to the precision speciied in Tools

    ptions !ibreffice Calc Calculate.Numberis thenumber whose decimal places are to be cut o. Countis thenumber o decimal places which are not cut o.

    Financial analysis functions

    A note about dates

    ate )alues used as parameters or Calc@s inancial unctions must be entered in a speciicmanner. =or e4ample( a date %entered in the " orm' must be surrounded by Auotes and withperiods separating each )alue. To represent +ugust

  • 7/27/2019 CG3416-CalcFunctions

    9/41

    +ccounting systems )ary in the number o days in a month or a year used in calculations. Theollowing table gi)es the integers used or the basisparameter used in some o the inancialanalysis unctions.

    &a(le 7* Basis calculation t2pes

    Basis Calculation

    0 or missing " method %!+'( 12 months o *0 days each.

    1 D4act number o days in months( e4act number o days in year.

    2 D4act number o days in month( year has *

  • 7/27/2019 CG3416-CalcFunctions

    10/41

    Syntax Description

    C:"#+Y-%settlementF maturityF

    freAuencyF basis'

    6eturns the number o days rom the irst day o interestpayment on a security until the settlement date. &ettlement

    is the date o purchase o the security. Maturityis the date

    on which the security matures %e4pires'. Fre9uencyis the

    number o interest payments per year %1( 2 or ;'.6asis

    indicates how the year is to be calculated.

    C:"#+Y%settlementF maturityFreAuencyF basis'

    6eturns the number o days in the current interest period inwhich the settlement date alls.&ettlementis the date o

    purchase o the security.Maturityis the date on which the

    security matures %e4pires'.Fre9uencyis the number o

    interest payments per year %1( 2 or ;'.6asisindicates howthe year is to be calculated.

    C:"#+Y!C%settlementFmaturityF reAuencyF basis'

    6eturns the number o days rom the settlement date until thene4t interest date.&ettlementis the date o purchase o the

    security.Maturityis the date on which the security matures

    %e4pires'.Fre9uencyis the number o interest payments per

    year %1( 2 or ;'.6asisindicates how the year is to becalculated.

    C:"#!C%settlementF maturityFreAuencyF basis'

    6eturns the date o the irst interest date ater the settlementdate( and ormats the result as a date.&ettlementis the date

    o purchase o the security.Maturityis the date on which the

    security matures %e4pires'.Fre9uencyis the number o

    interest payments per year %1( 2 or ;'.6asisindicates howthe year is to be calculated.

    C:"#!"%settlementF maturityFreAuencyF basis'

    6eturns the number o coupons %interest payments' betweenthe settlement date and the maturity date. &ettlementis the

    date o purchase o the security.Maturityis the date on

    which the security matures %e4pires'.Fre9uencyis the

    number o interest payments per year %1( 2 or ;'.6asisindicates how the year is to be calculated.

    C:"##C%settlementF maturityFreAuencyF basis'

    6eturns the date o the interest date prior to the settlementdate( and ormats the result as a date.&ettlementis the date

    o purchase o the security.Maturityis the date on which the

    security matures %e4pires'.Fre9uencyis the number o

    interest payments per year %1( 2 or ;'.6asisindicates howthe year is to be calculated.

    C"8#T%rateF !#D6F #HF F DF

    type'

    Calculates the cumulati)e interest payments %the total

    interest' or an in)estment based on a constant interest rate.5ateis the periodic interest rate.NP:5is the paymentperiod with the total number o periods. !#D6 can also be anonEinteger )alue. The rateand NP:5must reer to thesame unit( and thus both must be calculated annually ormonthly.P4is the current )alue in the seAuence o

    payments.&is the irst period.:is the last period.Typeisthe due date o the payment at the beginning %1' or end %0' oeach period.

    %4 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    11/41

    Syntax Description

    C"8#TB+%rateF !#D6F #HFstartBperiodF endBperiodF type'

    Calculates the accumulated interest or a period. 5ateis the

    interest rate or each period.NP:5is the total number opayment periods. The rateand NP:5must reer to the sameunit( and thus both must be calculated annually or monthly.

    P4is the current )alue.&tart0periodthe irst payment

    period or the calculation.:nd0periodthe last paymentperiod or the calculation.Typeis the due date o thepayment at the beginning %1' or end %0' o each period.

    C"#68!C%rateF !#D6F #HF F DFtype'

    6eturns the cumulati)e interest paid or an in)estment periodwith a constant interest rate.5ateis the periodic interest

    rate.NP:5is the payment period with the total number operiods. !#D6 can also be a nonEinteger )alue. The rateandNP:5must reer to the same unit( and thus both must becalculated annually or monthly.P4is the current )alue in the

    seAuence o payments.&is the irst period.:is the last

    period.Typeis the due date o the payment at the beginning%1' or end %0' o each period.

    C"#68!CB+%rateF !#D6F#HF startBperiodF endBperiodF type'

    Calculates the cumulati)e redemption o a loan in a period.

    5ateis the interest rate or each period.NP:5is the totalnumber o payment periods. The rateand NP:5must reerto the same unit( and thus both must be calculated annuallyor monthly.P4is the current )alue.&tart periodis the irst

    payment period or the calculation. :nd periodis the last

    payment period or the calculation. Typeis the due date othe payment at the beginning %1' or end %0' o each period.

    -%costF sal)ageF lieFperiodFmonth'

    6eturns the depreciation o an asset or a speciied periodusing the doubleEdeclining balance method.Costis the initial

    cost o an asset.&alvageis the )alue o an asset at the endo the depreciation.!ifedeines the period o)er which an

    asset is depreciated.Periodis the length o each period. Thelie must be entered in the same date unit as the depreciationperiod.Month%optional' denotes the number o months orthe irst year o depreciation.

    -%costF sal)ageF lieF periodFactor'

    6eturns the depreciation o an asset or a speciied periodusing the arithmeticEdeclining method. !ote that the boo,)alue will ne)er reach ero under this calculation type. Costi4es the initial cost o an asset. &alvagei4es the )alue o an

    asset at the end o its lie.!ifeis the number o periods

    deining how long the asset is to be used. Perioddeines the

    length o the period. The period must be entered in the sametime unit as the lie.Factor%optional' is the actor by whichdepreciation decreases.

    8C%settlementF maturityF priceFredemptionF basis'

    Calculates the allowance %discount' o a security as apercentage.&ettlementis the date o purchase o the

    security.Maturityis the date on which the security matures

    %e4pires'.Priceis the price o the security per 100 currency

    units o par )alue.5edemptionis the redemption )alue o

    the security per 100 currency units o par )alue.6asisindicates how the year is to be calculated.

    Financial anal2sis functions %%

  • 7/27/2019 CG3416-CalcFunctions

    12/41

    Syntax Description

    :$$+6D%ractional BdollarFraction'

    Con)erts a Auotation that has been gi)en as a decimalraction into a decimal number.Fractional0dollaris anumber gi)en as a decimal raction. %8n this number( thedecimal )alue is the numerator o the raction.' Fractionis awhole number that is used as the denominator o the decimal

    raction.:$$+6=6%decimal BdollarFraction'

    Con)erts a Auotation that has been gi)en as a decimalnumber into a mi4ed decimal raction. The decimal o theresult is the numerator o the raction that would ha)eFractionas the denominator. (ecimal0dollaris a decimalnumber. Fractionis a whole number that is used as thedenominator o the decimal raction.

    "6+T8:!%rateF #HF =H' Calculates the number o periods reAuired by an in)estmentto attain the desired )alue.5ate%a constant' is the interestrate to be calculated or the entire duration. Dntering theinterest rate di)ided by the periods per year( can calculate

    the interest ater each period.P4is the present )alue.F4isthe desired uture )alue o the in)estment.

    "6+T8:!B+ %settlementFmaturityF couponF yieldF reAuencyFbasis'

    Calculates the duration o a i4ed interest security in years.

    &ettlementisthe date o purchase o the security.Maturity

    is the date on which the security matures %e4pires'. Coupon

    is the annual coupon interest rate %nominal rate o interest'.

    ;ieldis the annual yield o the security.Fre9uencyis the

    number o interest payments per year %1( 2 or ;'.6asisindicates how the year is to be calculated.

    D==DCTB+%nominal BrateF!pery'

    Calculates the eecti)e annual rate o interest on the basis othe nominal interest rate and the number o interest

    payments per annum.!ominal interest reers to the amounto interest due at the end o a calculation period.Nominal0rateis the annual nominal rate o interest.Nperyisthe number o interest payments per year.

    D==DCT8HD%!:F #' Calculates the eecti)e annual rate o interest on the basis othe nominal interest rate and the number o interestpayments per annum.!ominal interest reers to the amount

    o interest due at the end o a calculation period.NMis the

    nominal interest.Pis the number o interest payment periodsper year.

    =H%rateF !#D6F #TF #HF type' 6eturns the uture )alue o an in)estment based on periodic(

    constant payments and a constant interest rate. 5ateis theperiodic interest rate.NP:5is the total number o periods.

    PMTis the annuity paid regularly per period. P4%optional' is

    the present cash )alue o an in)estment.Type%optional'deines whether the payment is due at the beginning %1' orthe end %0' o a period.

    =HCD"$D%principalFschedule'

    Calculates the accumulated )alue o the starting capital or aseries o periodically )arying interest rates.Principalis the

    starting capital.&cheduleis a series o interest rates.&chedule has to be entered with cell reerences.

    %7 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    13/41

    Syntax Description

    8!T6+TD%settlementF maturityFin)estmentFredemptionF basis'

    Calculates the annual interest rate that results when asecurity %or other item' is purchased at an in)estment )alueand sold at a redemption )alue with no interest being paid.

    &ettlementis the date o purchase o the security.Maturity

    is the date on which the security is sold.*nvestmentis the

    purchase price.5edemptionis the selling price.6asisindicates how the year is to be calculated.

    8#T%rateF periodF !#D6F #HF =HFtype'

    Calculates the periodic amortiation or an in)estment withregular payments and a constant interest rate. 5ateis the

    periodic interest rate.Periodis the period or which the

    compound interest is calculated.NP:5is the total number o

    periods during which annuity is paid.Period

  • 7/27/2019 CG3416-CalcFunctions

    14/41

    Syntax Description

    !:8!+$B+%eecti)eBrateF!pery'

    Calculates the yearly nominal rate o interest( gi)en theeecti)e rate and the number o compounding periods peryear.:ffective0rateis the eecti)e annual rate o interest.Nperyis the number o interest payments per year.

    !#D6%rateF #TF #HF =HF type' 6eturns the number o periods or an in)estment based on

    periodic( constant payments and a constant interest rate.5ateis the periodic interest rate.PMTis the constant annuity

    paid in each period.P4is the present )alue %cash )alue' in a

    seAuence o payments.F4%optional' is the uture )alue(

    which is reached at the end o the last period.Type%optional'deines whether the payment is due at the beginning %1' orthe end %0' o a period.

    !#H%6ateF )alueB1F )alueB2F ...)alueB*0'

    6eturns the net present )alue o an in)estment based on aseries o periodic cash lows and a discount rate. 5ateis the

    discount rate or a period.4alue0'2 value0#2""" value0,3are)alues representing deposits or withdrawals.

    :=#68CD%settlementF maturityFissueF irstBcouponF rateF yieldFredemptionF reAuencyF basis'

    Calculates the price per 100 currency units par )alue o asecurity( i the irst interest date alls irregularly. &ettlementis

    the date o purchase o the security.Maturityis the date on

    which the security matures %e4pires'.*ssueis the date o

    issue o the security.First0couponis the irst interest date o

    the security.5ateis the annual rate o interest.;ieldis the

    annual yield o the security.5edemptionis the redemption

    )alue per 100 currency units o par )alue. Fre9uencyis the

    number o interest payments per year %1( 2 or ;'.6asisindicates how the year is to be calculated.

    :=Y8D$%settlementF maturityF

    issueF irstBcouponF rateF priceFredemptionF reAuencyF basis'

    -%costF sal)ageF lieF periodF actor'

    :$#68CD%settlementF maturityF

    lastBinterestFrateF yieldFredemptionF reAuencyF basis'

    Calculates the price per 100 currency units par )alue o asecurity( i the last interest date alls irregularly. &ettlementis

    the date o purchase o the security.Maturityis the date on

    which the security matures %e4pires'.!ast0interestis the

    last interest date o the security. 5ateis the annual rate o

    interest.;ieldis the annual yield o the security.5edemptionis the redemption )alue per 100 currency unitso par )alue.Fre9uencyis the number o interest payments

    per year %1( 2 or ;'.6asisindicates how the year is to be

    calculated.

    :$Y8D$%settlementF maturityFlastBinterestF rateF priceFredemptionF reAuencyF basis'

    Calculates the yield o a security i the last interest date allsirregularly.&ettlementis the date o purchase o the security.

    Maturityis the date on which the security matures %e4pires'.

    !ast0interestis the last interest date o the security. 5ateis

    the annual rate o interest.Priceis the price o the security.5edemptionis the redemption )alue per 100 currency unitso par )alue.Fre9uencyis the number o interest payments

    per year %1( 2 or ;'.6asisindicates how the year is to becalculated.

    %/ Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    15/41

    Syntax Description

    #T%rateF !#D6F #HF =HF type' 6eturns the periodic payment or an annuity with constantinterest rates.5ateis the periodic interest rate.NP:5is the

    number o periods in which annuity is paid. P4is the present

    )alue %cash )alue' in a seAuence o payments. F4%optional'

    isthe desired )alue %uture )alue' to be reached at the end o

    the periodic payments.Type%optional' deines whether thepayment is due at the beginning %1' or the end %0' o aperiod.

    ##T%rateF periodF !#D6F #HF =HFtype'

    6eturns or a gi)en period the payment on the principal or anin)estment that is based on periodic and constant paymentsand a constant interest rate.5ateis the periodic interest rate.

    Periodis the amortiation period.NP:5is the total number

    o periods during which annuity is paid.P4is the present

    )alue in the seAuence o payments.F4%optional' is the

    desired %uture' )alue.Type%optional' deines whether thepayment is due at the beginning %1' or the end %0' o aperiod.

    #68CD%settlementF maturityF rateFyieldFredemptionF reAuencyFbasis'

    Calculates the mar,et )alue o a i4ed interest security with apar )alue o 100 currency units as a unction o the orecastyield.&ettlementis the date o purchase o the security.

    Maturityis the date on which the security matures %e4pires'.5ateis the annual nominal rate o interest %coupon interestrate'.;ieldis the annual yield o the security.5edemptionis

    the redemption )alue per 100 currency units o par )alue.Fre9uencyis the number o interest payments per year %1( 2or ;'.6asisindicates how the year is to be calculated.

    #68CD8C%settlementF maturityF

    discountFredemptionF basis'

    Calculates the price per 100 currency units o par )alue o a

    nonEinterestEbearing security.&ettlementis the date opurchase o the security.Maturityis the date on which the

    security matures %e4pires'.(iscountis the discount o a

    security as a percentage.5edemptionis the redemption

    )alue per 100 currency units o par )alue. 6asisindicateshow the year is to be calculated.

    #68CD+T%settlementF maturityFissueF rateF yieldF basis'

    Calculates the price per 100 currency units o par )alue o asecurity( that pays interest on the maturity date.&ettlement

    is the date o purchase o the security. Maturityis the date

    on which the security matures %e4pires'. *ssueis the date o

    issue o the security.5ateis the interest rate o the security

    on the issue date.;ieldis the annual yield o the security.6asisindicates how the year is to be calculated.

    #H%rateF !#D6F #TF =HF type' 6eturns the present )alue o an in)estment resulting rom aseries o regular payments.5atedeines the interest rate per

    period.NP:5is the total number o payment periods.PMTis

    the regular payment made per period. F4%optional' deinesthe uture )alue remaining ater the inal installment has beenmade.Type%optional' deines whether the payment is due atthe beginning %1' or the end %0' o a period.

    Financial anal2sis functions %#

  • 7/27/2019 CG3416-CalcFunctions

    16/41

    Syntax Description

    6+TD%!#D6F #TF #HF =HF typeFguess'

    6eturns the constant interest rate per period o an annuity.NP:5is the total number o periods( during which paymentsare made %payment period'.PMTis the constant payment

    %annuity' paid during each period.P4is the cash )alue in the

    seAuence o payments.F4%optional' is the uture )alue(

    which is reached at the end o the periodic payments.Type%optional' deines whether the payment is due at thebeginning %1' or the end %0' o a period. =uess%optional'determines the estimated )alue o the interest with iterati)ecalculation.

    6DCD8HD%settlementF maturityFin)estmentFdiscountF basis'

    Calculates the amount recei)ed that is paid or a i4edEinterest security at a gi)en point in time. &ettlementis the

    date o purchase o the security.Maturityis the date on

    which the security matures.*nvestmentis the purchase sum.(iscountis the percentage discount on acAuisition o thesecurity.6asisindicates how the year is to be calculated.

    668%#F #HF =H' Calculates the interest rate resulting rom the proit %return' oan in)estment.Pis the number o periods needed or

    calculating the interest rate.P4is the present )alue %must be

    R0'. F4is determines what is desired as the cash )alue othe deposit.

    $!%costF sal)ageF lie' 6eturns the straightEline depreciation o an asset or oneperiod.The amount o the depreciation is constant during the

    depreciation period.Costis the initial cost o an asset.&alvageis the )alue o an asset at the end o thedepreciation.!ifeis the depreciation period determining thenumber o periods in the depreciation o the asset.

    Y%costF sal)ageF lieF period' 6eturns the arithmeticEdeclining depreciation rate. "se thisunction to calculate the depreciation amount or one periodo the total depreciation span o an obect. +rithmeticdeclining depreciation reduces the depreciation amount romperiod to period by a i4ed sum. Costis the initial cost o an

    asset.&alvageis the )alue o an asset ater depreciation.!ifeis the period i4ing the time span o)er which an asset isdepreciated.Perioddeines the period or which thedepreciation is to be calculated.

    T-8$$DK%settlementF maturityF

    discount'

    Calculates the annual return on a treasury bill. &ettlement

    is the date o purchase o the security. Maturityis the date

    on which the security matures %e4pires'. %The settlement andmaturity date must be in the same year.' (iscountis thepercentage discount on acAuisition o the security.

    T-8$$#68CD%settlementF maturityFdiscount'

    Calculates the price o a treasury bill per 100 currency units.

    &ettlementis the date o purchase o the security.Maturity

    is the date on which the security matures %e4pires'. (iscountis the percentage discount upon acAuisition o the security.

    T-8$$Y8D$%settlementF maturityFprice'

    Calculates the yield o a treasury bill. &ettlementis the date

    o purchase o the security.Maturityis the date on which the

    security matures %e4pires'.Priceis the price %purchase price'o the treasury bill per 100 currency units o par )alue.

    % Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    17/41

    Syntax Description

    H-%costF sal)ageF lieF startF endFactorF type'

    6eturns the depreciation o an asset or a speciied or partialperiod using a )ariable declining balance method. Costis the

    initial )alue o an asset.&alvageis the )alue o an asset at

    the end o the depreciation.!ifeis the depreciation duration

    o the asset.&tartis the start o the depreciation entered in

    the same date unit as the lie.:ndis the end o thedepreciation.Factor%optional' is the depreciation actor.

    =+L2 is double rate depreciation.Type%optional' deineswhether the payment is due at the beginning %1' or the end%0' o a period.

    J866%)aluesF datesF guess' Calculates the internal rate o return or a list o paymentswhich ta,e place on dierent dates.The calculation is based

    on a *

  • 7/27/2019 CG3416-CalcFunctions

    18/41

    &tatistical analysis functions

    Calc includes o)er 90 statistical unctions which enable the e)aluation o data rom simple

    arithmetic calculations( such as a)eraging( to ad)anced distribution and probability computations.e)eral other statisticsEbased unctions are a)ailable through the +ddEins which are noted at theend o this appendi4.

    &a(le /* $tatistical anal2sis functions

    Syntax Description

    +HDDH%number1F number2F ...numberB*0'

    6eturns the a)erage o the absolute de)iations o data pointsrom their mean. isplays the diusion in a data set.Number0'2 number0#2 """ number0,3are )alues or rangesthat represent a sample. Dach number can also be replacedby a reerence.

    +HD6+GD%numberB1FnumberB2F ... numberB*0'

    6eturns the a)erage o the arguments.Number0'2number0#2 """ number0,3are numerical )alues or ranges.Te4t is ignored.

    +HD6+GD+%)alueB1F )alueB2F ...)alueB*0'

    6eturns the a)erage o the arguments. The )alue o a te4t is0.4alue0'2 value0#2 """ value0,3are )alues or ranges.

    -%trialsF #F TB1F TB2' 6eturns the probability o a sample with binomial distribution.Trialsis the number o independent trials. &Pis theprobability o success on each trial. T0'deines the lower limitor the number o trials. T0#%optional' deines the upper limitor the number o trials.

    -DT+8T%numberFalphaF betaFstartF end'

    6eturns the cumulati)e beta probability density unction.Numberis the )alue between &tartand :ndat which toe)aluate the unction.Alphais a parameter to the distribution.

    6etais a parameter to the distribution.&tart%optional' is thelower bound or number.:nd%optional' is the upper boundor number.

    -DT+8!H%numberF alphaF betaFstartF end'

    6eturns the in)erse o the cumulati)e beta probability densityunction.Numberis the )alue between &tartand :ndat

    which to e)aluate the unction.Alphais a parameter to the

    distribution.6etais a parameter to the distribution.&tart

    %optional' is the lower bound or number.:nd%optional' is

    the upper bound ornumber"

    -8!:8T%JF trialsF #F C' 6eturns the indi)idual term binomial distribution probability.

    is the number o successes in a set o trials.Trialsis the

    number o independent trials.&Pis the probability o successon each trial.CL 0 calculates the probability o a single e)entand CL 1 calculates the cumulati)e probability.

    C88T%numberFdegreesBreedom'

    6eturns the probability )alue that a hypothesis will beconirmed rom the indicated chi sAuare. The probabilitydetermined by C88T can also be determined by C8TDT.Numberis the chiEsAuare )alue o the random sample usedto determine the error probability.(egrees0freedomis thedegrees o reedom o the e4periment.

    %9 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    19/41

    Syntax Description

    C88!H%numberFdegreesBreedom'

    6eturns the in)erse o the oneEtailed probability o the chiEsAuared distribution.Numberis the )alue o the error

    probability.(egrees0freedomis the degrees o reedom othe e4periment.

    C8TDT%dataB-F dataBD' 6eturns the chiEsAuare distribution rom a random distributiono two test series based on the chiEsAuare test orindependence.The probability determined by C8TDT canalso be determined with C88T( in which case the chisAuare o the random sample must then be passed as aparameter instead o the data row.(ata06is the array o the

    obser)ations.(ata0:is the range o the e4pected )alues.

    C:!=8D!CD%alphaF TDHFsie'

    6eturns the %1Ealpha' conidence inter)al or a normaldistribution.Alphais the le)el o the conidence inter)al.

    &T(:4is the standard de)iation or the total population. &i?eis the sie o the total population.

    C:66D$%dataB1F dataB2'6eturns the correlation coeicient between two data sets.(ata0'is the irst data set.(ata0#is the second data set.

    C:"!T%)alueB1F )alueB2F ...)alueB*0'

    Counts how many numbers are in the list o arguments. Te4t

    entries are ignored.4alue0'2 value0#2 """ value0,3are)alues or ranges which are to be counted.

    C:"!T+%)alueB1F )alueB2F ...)alueB*0'

    Counts how many )alues are in the list o arguments. Te4tentries are also counted( e)en when they contain an emptystring o length 0.8 an argument is an array or reerence(

    empty cells within the array or reerence are ignored.value0'2 value0#2 """ value0,3are up to *0 argumentsrepresenting the )alues to be counted.

    C:H+6%dataB1F dataB2' 6eturns the co)ariance o the product o paired de)iations.

    (ata0'is the irst data set.(ata0#is the second data set.

    C68T-8!:%trialsF #F alpha' 6eturns the smallest )alue or which the cumulati)e binomialdistribution is less than or eAual to a criterion )alue. Trialsis

    the total number o trials.&Pis the probability o success or

    one trial.Alphais the threshold probability to be reached ore4ceeded.

    DHK%numberB1F numberB2F ...numberB*0'

    6eturns the sum o sAuares o de)iations based on a samplemean.Number0'2 number0#2 """ number0,3are numerical)alues or ranges representing a sample.

    DJ#:!8T%numberF lambdaF C' 6eturns the e4ponential distribution.Numberis the )alue othe unction.!ambdais the parameter )alue.Cis a logical

    )alue that determines the orm o the unction. CL 0calculates the density unction( and CL 1 calculates thedistribution.

    =8T%numberFdegreesBreedomB1FdegreesBreedomB2'

    Calculates the )alues o an = probability distribution. Number

    is the )alue or which the = distribution is to be calculated.(egrees0freedom0'is the degrees o reedom in thenumerator in the = distribution.(egrees0freedom0#is thedegrees o reedom in the denominator in the = distribution.

    $tatistical anal2sis functions %5

  • 7/27/2019 CG3416-CalcFunctions

    20/41

    Syntax Description

    =8!H%numberFdegreesBreedomB1FdegreesBreedomB2'

    6eturns the in)erse o the = probability distribution. Numberis probability )alue or which the in)erse = distribution is to becalculated.(egrees0freedom0'is the number o degrees o

    reedom in the numerator o the = distribution.(egrees0freedom0#is the number o degrees o reedom in

    the denominator o the = distribution.=8D6%number' 6eturns the =isher transormation or the gi)en number and

    creates a unction close to a normal distribution.

    =8D68!H%number' 6eturns the in)erse o the =isher transormation or the gi)en

    numberand creates a unction close to a normal distribution.

    =:6DC+T%)alueF dataBYFdataBJ'

    D4trapolates uture )alues based on e4isting 4 and y )alues.4alueis the 4 )alue( or which the y )alue o the linearregression is to be returned.(ata0;is the array or range o

    ,nown Ys.(ata0is the array or range o ,nown Xs. oesnot wor, or e4ponential unctions.

    =TDT%dataB1F dataB2' 6eturns the result o an = test.(ata0'is the irst record array.(ata0#is the second record array.

    G++8T%numberF alphaFbetaF C'

    6eturns the )alues o a Gamma cumulati)e distribution.Numberis the )alue or which the Gamma distribution is tobe calculated.Alphais the parameter +lpha o the Gamma

    distribution.6etais the parameter -eta o the Gamma

    distribution.CL 0 calculates the density unction( and CL 1calculates the distribution.

    G++8!H%numberF alphaF beta' 6eturns the in)erse o the Gamma cumulati)e distribution.This unction allows you to search or )ariables with dierentdistribution.

    Numberis the probability )alue or which the in)erse Gammadistribution is to be calculated.Alphais the parameter +lpha

    o the Gamma distribution.6etais the parameter -eta o theGamma distribution.

    G++$!%number' 6eturns the natural logarithm o the Gamma unction( G%4'(or the gi)en number.

    G+"%number' 6eturns the standard normal cumulati)e distribution or thegi)en number.

    GD:D+!%numberB1FnumberB2F ... numberB*0'

    6eturns the geometric mean o a sample.Number0'2number0#2 """ number0,3are numerical arguments orranges that represent a random sample.

    +6D+!%numberB1FnumberB2F ... numberB*0'

    6eturns the harmonic mean o a data set. Number0'2number0#2 """ number0,3are )alues or ranges that can beused to calculate the harmonic mean.

    Y#GD:8T%JF nBsampleFsuccessesF nBpopulation'

    6eturns the hypergeometric distribution.is the number o

    results achie)ed in the random sample.N0sampleis the sie

    o the random sample.&uccessesis the number o possible

    results in the total population.N0population is the sie o thetotal population.

    74 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    21/41

    Syntax Description

    8!TD6CD#T%dataBYF dataBJ' Calculates the yE)alue at which a line will intersect the yEa4isby using ,nown 4E)alues and yE)alues.(ata0;is the

    dependent set o obser)ations or data.(ata0is theindependent set o obser)ations or data.

    !ames( arrays or reerences containing numbers must be

    used here. !umbers can also be entered directly.

    7"6T%numberB1F numberB2F ...numberB*0'

    6eturns the ,urtosis o a data set %at least ; )alues reAuired'.Number0'2 number0#2 """ number0,3are numericalarguments or ranges representing a random sample odistribution.

    $+6GD%dataF ran,Bc' 6eturns the 6an,BcEth largest )alue in a data set. (atais the

    cell range o data.5ank0cis the ran,ing o the )alue %2ndlargest( *rd largest( etc.' written as an integer.

    $:G8!H%numberF meanF TDH' 6eturns the in)erse o the lognormal distribution or the gi)enNumber( a probability )alue.Meanis the arithmetic mean o

    the standard logarithmic distribution.&T(:4is the standardde)iation o the standard logarithmic distribution.

    $:G!:68T%numberF meanFTDH'

    6eturns the cumulati)e lognormal distribution or the gi)en

    Number( a probability )alue.Meanis the mean )alue o the

    standard logarithmic distribution.&T(:4is the standardde)iation o the standard logarithmic distribution.

    +J%numberB1F numberB2F ...numberB*0'

    6eturns the ma4imum )alue in a list o arguments.Number0'2 number0#2 """ number0,3are numerical )aluesor ranges.

    +J+%)alueB1F )alueB2F ...

    )alueB*0'

    6eturns the ma4imum )alue in a list o arguments."nli,e

    +J( te4t can be entered.The )alue o the te4t is 0.4alue0'2value0#2 """ value0,3are values or ranges.

    D8+!%numberB1F numberB2F ...numberB*0'

    6eturns the median o a set o numbers. Number0'2number0#2 """ number0,3are )alues or ranges( whichrepresent a sample. Dach number can also be replaced by areerence.

    8!%numberB1F numberB2F ...numberB*0'

    6eturns the minimum )alue in a list o arguments.Number0'2number0#2 """ number0,3are numerical )alues or ranges.

    8!+%)alueB1F )alueB2F ...)alueB*0'

    6eturns the minimum )alue in a list o arguments.ere te4t

    can also be entered.The )alue o the te4t is 0.4alue0'2value0#2 """ value0,3are )alues or ranges.

    :D%numberB1F numberB2F ...numberB*0'

    6eturns the most common )alue in a data set. Number0'2number0#2 """ number0,3are numerical )alues or ranges. 8se)eral )alues ha)e the same reAuency( it returns thesmallest )alue.+n error occurs when a )alue does not appeartwice.

    !DG-8!:8T%JF 6F #' 6eturns the negati)e binomial distribution.is the )alue

    returned or unsuccessul tests.5is the )alue returned or

    successul tests.&Pis the probability o the success o anattempt.

    $tatistical anal2sis functions 7%

  • 7/27/2019 CG3416-CalcFunctions

    22/41

    Syntax Description

    !:68T%numberF meanFTDHF C'

    6eturns the normal distribution or the gi)en Numberin the

    distribution.Meanis the mean )alue o the distribution.

    &T(:4is the standard de)iation o the distribution. CL 0calculates the density unction( and CL 1 calculates thedistribution.

    !:68!H%numberF meanFTDH'

    6eturns the in)erse o the normal distribution or the gi)en

    Numberin the distribution.Meanis the mean )alue in the

    normal distribution.&T(:4is the standard de)iation o thenormal distribution.

    !:68T%number' 6eturns the standard normal cumulati)e distribution or thegi)enNumber.

    !:68!H%number' 6eturns the in)erse o the standard normal distribution or thegi)enNumber( a probability )alue.

    #D+6:!%dataB1F dataB2' 6eturns the #earson product moment correlation coeicient r.

    (ata0'is the array o the irst data set.(ata0#is the array o

    the second data set.

    #D6CD!T8$D%dataF alpha' 6eturns the alphaEpercentile o data )alues in an array. (atais the array o data.Alphais the percentage o the scalebetween 0 and 1.

    #D6CD!T6+!7%dataF )alue' 6eturns the percentage ran, %percentile' o the gi)en valueina sample.(atais the array o data in the sample.

    #D6"T%countB1F countB2' 6eturns the number o permutations or a gi)en number oobects.Count0'is the total number o obects.Count0#isthe number o obects in each permutation.

    #D6"T+T8:!+%countB1FcountB2' 6eturns the number o permutations or a gi)en number oobects %repetition allowed'.Count0'is the total number o

    obects.Count0#is the number o obects in eachpermutation.

    #8%number' 6eturns the )alues o the distribution unction or a standardnormal distribution or the gi)enNumber.

    #:8:!%numberF meanF C' 6eturns the #oisson distribution or the gi)en Number.Mean

    is the middle )alue o the #oisson distribution. CL 0calculates the density unction( and CL 1 calculates thedistribution.

    #6:-%dataF probability& startF end' 6eturns the probability that )alues in a range are betweentwo limits.(atais the array or range o data in the sample.Probabilityis the array or range o the correspondingprobabilities.&tartis the start )alue o the inter)al whose

    probabilities are to be summed.:nd%optional' is the end

    )alue o the inter)al whose probabilities are to be summed. 8this parameter is missing( the probability or the &tart )alue iscalculated.

    K"+6T8$D%dataF type' 6eturns the Auartile o a data set.(atais the array o data in

    the sample.Typeis the type o Auartile. %0 L in( 1 L 25Q( 2L 50Q %edian'( * L 95Q and ; L a4.'

    77 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    23/41

    Syntax Description

    6+!7%)alueF dataF type' 6eturns the ran, o the gi)en 4aluein a sample.(atais the

    array or range o data in the sample. Type%optional' is theseAuence order( either ascending %0' or descending %1'.

    6K%dataBYF dataBJ' 6eturns the sAuare o the #earson correlation coeicientbased on the gi)en )alues.(ata0;is an array or range o

    data points.(ata0is an array or range o data points.

    7D%numberB1F numberB2F ...numberB*0'

    6eturns the s,ewness o a distribution. Number0'2number0#2 """ number0,3are numerical )alues or ranges.

    $:#D%dataBYF dataBJ' 6eturns the slope o the linear regression line. (ata0;is the

    array or matri4 o Y data.(ata0is the array or matri4 o Jdata.

    +$$%dataF ran,Bc' 6eturns the 6an,BcEth smallest )alue in a data set. (atais

    the cell range o data.5ank0cis the ran, o the )alue %2ndsmallest( *rd smallest( etc.' written as an integer.

    T+!+68SD%numberF meanFTDH'

    Con)erts a random )ariable to a normalied )alue.Numberisthe )alue to be standardied.Meanis the arithmetic mean o

    the distribution.&T(:4is the standard de)iation o thedistribution.

    TDH%numberB1F numberB2F ...numberB*0'

    Dstimates the standard de)iation based on a sample.Number0'2 number0#2 """ number0,3are numerical )aluesor ranges representing a sample based on an entirepopulation.

    TDH+%)alueB1F )alueB2F ...)alueB*0'

    Calculates the standard de)iation o an estimation based on asample.4alue0'2 value0#2 """ value0,3are )alues or rangesrepresenting a sample deri)ed rom an entire population. Te4t

    has the )alue 0.

    TDH#%numberB1F numberB2F ...numberB*0'

    Calculates the standard de)iation based on the entirepopulation.Number0'2 number0#2 """ number0,3arenumerical )alues or ranges representing a sample based onan entire population.

    TDH#+%)alueB1F )alueB2F ...)alueB*0'

    Calculates the standard de)iation based on the entirepopulation.4alue0'2 value0#2 """ value0,3are )alues orranges representing a sample deri)ed rom an entirepopulation. Te4t has the )alue 0.

    TDYJ%dataBYF dataBJ' 6eturns the standard error o the predicted y )alue or each 4

    in the regression.(ata0;is the array or matri4 o Y data.(ata0is the array or matri4 o J data.

    T8T%numberF degreesBreedomFmode'

    6eturns the tEdistribution or the gi)enNumber.(egrees0freedomis the number o degrees o reedom orthe tEdistribution.ModeL 1 returns the oneEtailed test( ModeL 2 returns the twoEtailed test.

    T8!H%numberF degreesBreedom' 6eturns the in)erse o the tEdistribution( or the gi)en Number

    associated with the twoEtailed tEdistribution.(egrees0freedomis the number o degrees o reedom orthe tEdistribution.

    $tatistical anal2sis functions 73

  • 7/27/2019 CG3416-CalcFunctions

    24/41

    Syntax Description

    T68D+!%dataF alpha' 6eturns the mean o a data set without the +lpha proportiono data at the margins.(atais the array o data in the sample.Alphais the proportion o the marginal data that will not beta,en into consideration.

    TTDT%dataB1F dataB2F modeF

    type'

    6eturns the probability associated with a tudent s tETest.(ata0'is the dependent array or range o data or the irstrecord.(ata0#is the dependent array or range o data or the

    second record.ModeL 1 calculates the oneEtailed test( Mode

    L 2 the twoE tailed test.Typeo tEtest to perorm&paired %1'(eAual )ariance %homoscedastic' %2'( or uneAual )ariance%heteroscedastic' %*'.

    H+6%numberB1F numberB2F ...numberB*0'

    Dstimates the )ariance based on a sample.Number0'2number0#2 """ number0,3are numerical )alues or rangesrepresenting a sample based on an entire population.

    H+6+%)alueB1F )alueB2F ...)alueB*0'

    Dstimates a )ariance based on a sample.The )alue o te4t is

    0.4alue0'2 value0#2 """ value0,3are )alues or rangesrepresenting a sample deri)ed rom an entire population.Te4thas the )alue 0.

    H+6#%!umberB1F numberB2F ...numberB*0'

    Calculates a )ariance based on the entire population.Number0'2 number0#2 """ number0,3are numerical )aluesor ranges representing an entire population.

    H+6#+%)alueB1F )alueB2F ...)alueB*0'

    Calculates the )ariance based on the entire population. The

    )alue o te4t is 0.4alue0'2 value0#2 """ value0,3are )aluesor ranges representing an entire population.

    D8-"$$%numberF alphaF betaF C' 6eturns the )alues o the eibull distribution or the gi)en

    Number.Alpha is the +lpha parameter o the eibull

    distribution.6etais the -eta parameter o the eibull

    distribution.Cindicates the type o unction& CL 0 the orm othe unction is calculated( CL1 the distribution is calculated.

    STDT%dataF numberF sigma' 6eturns the twoEtailed # )alue o a test with standarddistribution.(atais the array o the data.Numberis the )alue

    to be tested.&igma%optional' is the standard de)iation o the

    total population.8 this argument is missing( the standardde)iation o the sample is processed.

    (ate and time functions

    "se these unctions or inserting( editing( and manipulating dates and times. $ibre:ice handlesand computes a date/time )alue as a number. hen you assign the number ormat O!umberP to adate or time )alue( it is displayed as a number. =or e4ample( 01/01/2000 12&00 #( con)erts to*

  • 7/27/2019 CG3416-CalcFunctions

    25/41

    Caution

    hen entering dates( slashes or dashes used as date separators may beinterpreted as arithmetic operators. To ,eep dates rom being interpreted as parts oormulas( and thus returning erroneous results( always place them in Auotationmar,s( or e4ample( I12/0?/52I.

    &a(le #* Data and ti"e functionsSyntax Description

    +TD%yearF monthF day' Con)erts a date written as year( month( day to an internalserial number and displays it in the cell@s ormatting. ;earisan integer between 15?* and 5< or 0 and .Monthis an

    integer between 1 and 12.(ayis an integer between 1 and*1.

    +TDH+$"D%ITe4tI' 6eturns the internal date number or te4t in Auotes. Te-tis a)alid date e4pression and must be entered with Auotationmar,s.

    +Y%number' 6eturns the day( as an integer( o the gi)en date )alue. +negati)e date/time )alue can be entered. Numberis a time)alue.

    +Y%dateB2F dateB1' Calculates the dierence( in days( between two date )alues.(ate0'is the start date. (ate0#is the end date. 8 (ate0#isan earlier date than (ate0'( the result is a negati)e number.

    +Y*

  • 7/27/2019 CG3416-CalcFunctions

    26/41

    Syntax Description

    :!T%startBdateF endBdateFtype'

    Calculates the dierence( in months( between two date)alues. (ate0'is the start %earlier' date. (ate0#is the enddate. Typeis one o two possible )alues( 0 %inter)al' or 1 %incalendar months'. 8 (ate0#is an earlier date than (ate0'(the result is a negati)e number.

    !DT:67+Y%start BdateFendBdateF holidays'

    6eturns the number o wor,days between start0dateandend0date. olidays can be deducted. &tart0dateis the daterom which the calculation is carried out. :nd0dateis thedate up to which the calculation is carried out. 8 the start orend date is a wor,day( the day is included in the calculation.@olidays%optional' is a list o holidays. Dnter a cell range inwhich the holidays are listed indi)idually.

    !:%' 6eturns the computer system date and time. The )alue isupdated when your document recalculates. !: is aunction without arguments.

    DC:!%number' 6eturns the second( as an integer( or the gi)en time )alue.

    Numberis a time )alue.

    T8D%hourF minuteF second' 6eturns the current time )alue rom )alues or hours( minutesand seconds. This unction can be used to con)ert a timebased on these three elements to a decimal time )alue.@our( minuteand secondmust all be integers.

    T8DH+$"D%te4t' 6eturns the internal time number rom a te-tenclosed byAuotes in a time entry ormat. The internal number indicatedas a decimal is the result o the date system used under$ibre:ice to calculate date entries.

    T:+Y%' 6eturns the current computer system date. The )alue is

    updated when your document recalculates. T:+Y is aunction without arguments.

    DD7+Y%numberF type' 6eturns the day o the wee, or the gi)en number%date)alue'. The day is returned as an integer based on the type.Typedetermines the type o calculation& type L 1 %deault'(the wee,days are counted starting rom unday %onday L0'F type L 2( the wee,days are counted starting rom onday%onday L 1'F type L *( the wee,days are counted startingrom onday %onday L 0'.

    DD7!"%numberF mode' Calculates the number o the calendar wee, o the year orthe internal date number. Modesets the start o the wee,

    and the calculation type& 1 L unday( 2 L onday.DD7!"B+%dateFreturnBtype'

    Calculates the calendar wee, o the year or a (ate. (ateisthe date within the calendar wee,.5eturn0typesets the starto the wee, and the calculation type& 1 L unday( 2 Londay.

    DD7%startBdateF endBdateFtype'

    Calculates the dierence in wee,s between two dates(start0dateand end0date.Typeis one o two possible)alues( 0 %inter)al' or 1 %in numbers o wee,s'.

    DD78!YD+6%date' Calculates the number o wee,s in a year until a certain date.+ wee, that spans two years is added to the year in whichmost days o that wee, occur.

    7 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    27/41

    Syntax Description

    :67+Y%startBdateF daysFholidays'

    6eturns a date number that can be ormatted as a date. Youthen see the date o a day that is a certain number oorkdaysaway rom the start0date.@olidays%optional' isa list o holidays. Dnter a cell range in which the holidays arelisted indi)idually.

    YD+6%number' 6eturns the year as a number according to the internalcalculation rules. Numbershows the internal date )alue orwhich the year is to be returned.

    YD+6=6+C%startBdateF endBdateFbasis'

    6eturns a number between 0 and 1( representing the ractiono a year between start0dateandend0date. &tart0dateandend0dateare two date )alues. 6asisis chosen rom a list ooptions and indicates how the year is to be calculated.

    YD+6%tartBdateF endBdateF type' Calculates the dierence in years between two dates& thestart0date and the end0date.Typecalculates the type odierence.

    !ogical functions

    "se the logical unctions to test )alues and produce results based on the result o the test.Theseunctions are conditional and pro)ide the ability to write longer ormulas based on input or output.

    &a(le * 'ogical functions

    Syntax Description

    +!%logicalB)alueB1FlogicalB)alueB2F...logicalB)alueB*0'

    6eturns T6"D i all arguments are T6"D. 8 any element is=+$D( this unction returns the =+$D )alue. !ogical0value0'2logical0value0#2 """logical0value0,3are conditions to be

    chec,ed. +ll conditions can be either T6"D or =+$D. 8 a range isentered as a parameter( the unction uses the )alue rom the rangethat is in the current column or row. The result is T6"D i thelogical )alue in all cells within the cell range is T6"D

    =+$D%' et the logical )alue to =+$D. The =+$D%' unction does notreAuire any arguments.

    8=%testF thenB)alueFotherwiseB)alue'

    peciies a logical test to be perormed. Testis any )alue ore4pression that can be T6"D or =+$D. Then0value%optional' isthe )alue that is returned i the logical test is T6"D.therwise0value%optional' is the )alue that is returned i thelogical test is =+$D.

    !:T%logicalB)alue' 6e)erses the logical )alue. !ogical0valueis any )alue to bere)ersed.

    :6%logicalB)alueB1FlogicalB)alueB2F...logicalB)alueB*0'

    6eturns T6"D i at least one argument is T6"D. 6eturns the )alue=+$D i all the arguments ha)e the logical )alue =+$D.!ogical0value0'2 logical0value0#2 """logical0value0,3areconditions to be chec,ed. +ll conditions can be either T6"D or=+$D. 8 a range is entered as a parameter( the unction uses the)alue rom the range that is in the current column or row.

    T6"D%' ets the logical )alue to T6"D. The T6"D%' unction does notreAuire any arguments.

    'ogical functions 76

  • 7/27/2019 CG3416-CalcFunctions

    28/41

    *nformational functions

    These unctions pro)ide inormation %or eedbac,' regarding the results o a test or a speciiccondition( or a test or the type o data or content a cell contains.

    &a(le 6* 0nfor"ational functions

    Syntax DescriptionCD$$%inoBtypeF reerence' 6eturns inormation on a cell such as its address( ormatting or

    contents o a cell based on the )alue o the info0typeargument. *nfo0typespeciies the type o inormation to bereturned and comes rom a predeined list o arguments.*nfo0typeis not case sensiti)e( but it must be enclosed withinAuotes. 5eferenceis the address o the cell to be e4amined. 8referenceis a range( the cell reerence mo)es to the top let othe range. 8 referenceis missing( Calc uses the position o thecell in which this ormula is located.

    C"66D!T%' Calculates the current )alue o a ormula at the actual position.

    =:6"$+%reerence' isplays the ormula o a ormula cell at any position. Theormula will be returned as a string in the 5eferenceposition.8no ormula cell can be ound( or i the presented argument is nota reerence( returns the error )alue V!/+.

    8-$+!7%)alue' 6eturns T6"D i the reerence to a cell is blan,. This unction isused to determine i the content o a cell is empty. + cell with aormula inside is not empty.8 an error occurs( the unction

    returns a logical or numerical )alue.4alueis the content to betested.

    8D66%)alue' 6eturns T6"D i the )alue reers to any error )alue e4ceptV!/+. You can use this unction to control error )alues in certaincells.8 an error occurs( the unction returns a logical or

    numerical )alue.4alueis any )alue or e4pression in which atest is perormed to determine whether an error )alue not eAualto V!/+ is present.

    8D66:6%)alue' The 8D66:6 tests i the cells contain general error )alues.8D66:6 recognies the V!/+ error )alue. 8 an error occurs(

    the unction returns a logical or numerical )alue. 4alueis any)alue where a test is perormed to determine whether it is anerror )alue.

    8DHD!B+%number' Tests or e)en numbers. 6eturns T6"D %1' i the number

    returns a whole number when di)ided by 2.8=:6"$+%reerence' 6eturns T6"D i a cell is a ormula cell. 8 an error occurs( the

    unction returns a logical or numerical )alue.5eferenceindicates the reerence to a cell in which a test will be perormedto determine i it contains a reerence.

    8$:G8C+$%)alue' 6eturns T6"D i the cell contains a logical number ormat. Theunction is used in order to chec, or both T6"D and =+$D)alues in certain cells.8 an error occurs( the unction returns a

    logical or numerical )alue.4alueis the )alue to be tested orlogical number ormat.

    79 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    29/41

    Syntax Description

    8!+%)alue' 6eturns T6"D i a cell contains the V!/+ %)alue not a)ailable'error )alue.8 an error occurs( the unction returns a logical or

    numerical )alue.4alueis the )alue or e4pression to be tested.

    8!:!TDJT%)alue' Tests i the cell contents are te4t or numbers( and returns=+$D i the contents are te4t.8 an error occurs( the unction

    returns a logical or numerical )alue.4alueis any )alue ore4pression where a test is perormed to determine whether it isa te4t or numbers or a -oolean )alue.

    8!"-D6%)alue' 6eturns T6"D i the )alue reers to a number.8 an error occurs(

    the unction returns a logical or numerical )alue. 4alueis anye4pression to be tested to determine whether it is a number orte4t.

    8:B+%number' 6eturns T6"D %1' i the number does not return a wholenumber when di)ided by 2.Numberis the number to be tested.

    86D=%)alue' Tests i the content o one or se)eral cells is a reerence.

    Heriies the type o reerences in a cell or a range o cells. 8 anerror occurs( the unction returns a logical or numerical )alue.4alueis the )alue to be tested( to determine whether it is areerence.

    8TDJT%)alue' 6eturns T6"D i the cell contents reer to te4t. 8 an error

    occurs( the unction returns a logical or numerical )alue. 4alueis a )alue( number( -oolean )alue( or error )alue to be tested.

    !%)alue' 6eturns the number 1( i the parameter is T6"D. 6eturns theparameter( i the parameter is a number. 6eturns the number 0or other parameters.8 an error occurs( the unction returns a

    logical or numerical )alue.4alueis the parameter to becon)erted into a number.

    !+%' 6eturns the error )alue V!/+.

    TY#D%)alue' 6eturns the type o )alue.8 an error occurs( the unction returns

    a logical or numerical )alue.4alueis a speciic )alue or whichthe data type is determined. Halue 1 L number( )alue 2 L te4t()alue ; L -oolean )alue( )alue ? L ormula( )alue 1< L error)alue.

    (atabase functions

    This section deals with unctions used with data organied as one row o data or one record. TheData(asecategory should not be conused with the -ase database component in $ibre:ice. +Calc database is simple a range o cells that comprises a bloc, o related data where each rowcontains a separate record. There is no connection between a database in $ibre:ice and theData(asecategory in $ibre:ice Calc.

    The database unctions use the ollowing common arguments&

    (atabaseis a range o cells which deine the database.

    (atabase0fieldspeciies the column where the unction operates on ater the searchcriteria o the irst parameter is applied and the data rows are selected. 8t is not related tothe search criteria itsel. The number 0 speciies the whole data range. To reerence a

    column by using the column header name( place Auotation mar,s around the header name.

    Data(ase functions 75

  • 7/27/2019 CG3416-CalcFunctions

    30/41

    &earch0criteriais a cell range containing the search criteria.. Dmpty cells in the searchcriteria range will be ignored.

    Note

    +ll o the search/criteriaarguments or the database unctions support regulare4pressions.=or e4ample( Oall.Mcan be entered to ind the irst location o Oall

    ollowed by any characters.To search or te4t that is also a regular e4pression(

    precede e)ery character with a W character. You can switch the automatic e)aluation oregular e4pressions on and o in Tools > ptions > !ibreffice Calc > Calculate.

    &a(le 9* Data(ase a)erage

    Syntax Description

    +HD6+GD%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the a)erage o the )alues o all cells %ields' in all rows%database records' that match the speciied search0criteria.Thesearch supports regular e4pressions.

    C:"!T%databaseF

    databaseBieldFsearchBcriteria'

    Counts the number o rows %records' in a database that match the

    speciied search0criteriaand contain numerical )alues.Thesearch supports regular e4pressions.=or the database0fieldparameter( enter a cell address to speciy the column( or enter thenumber 0 or the entire database. The parameter cannot beempty.

    C:"!T+%databaseFdatabaseBieldFsearchBcriteria'

    Counts the number o rows %records' in a database that match thespeciied search0criteriaand contain numeric or alphanumeric)alues.The search supports regular e4pressions.

    GDT%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the contents o the reerenced cell in a database whichmatches the speciied search0criteria.8n case o an error( theunction returns either VH+$"DX or no row ound( or Drr502 or

    more than one cell ound.

    +J%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the ma4imum content o a cell %ield' in a database %allrecords' that matches the speciied search0criteria.The searchsupports regular e4pressions.

    8!%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the minimum content o a cell %ield' in a database thatmatches the speciied search0criteria.The search supports

    regular e4pressions.

    #6:"CT%databaseFdatabaseBieldFsearchBcriteria'

    ultiplies all cells o a data range where the cell contents matchthe search0criteria.The search supports regular e4pressions.

    TDH%databaseFdatabaseBieldFsearchBcriteria'

    Calculates the standard de)iation o a population based on asample( using the numbers in a database column that match thesearch0criteria. The records are treated as a sample o data.!ote that a representati)e result o a large population can not beobtained rom a sample o ewer than one thousand.

    TDH#%databaseFdatabaseBieldFsearchBcriteria'

    Calculates the standard de)iation o a population based on allcells o a data range which match the search0criteria. Therecords rom the e4ample are treated as the whole population.

    "%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the total o all cells in a database ield in all rows %records'that match the speciied search0criteria.The search supportsregular e4pressions.

    34 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    31/41

    Syntax Description

    H+6%databaseFdatabaseBieldFsearchBcriteria'

    6eturns the )ariance o all cells o a database ield in all recordsthat match the speciied search0criteria.The records rom the

    e4ample are treated as a sample o data. + representati)e resulto a large population cannot be obtained rom a sample populationo ewer than one thousand.

    H+6#%databaseFdatabaseBieldFsearchBcriteria'

    Calculates the )ariance o all cell )alues in a database ield in allrecords that match the speciied search0criteria. The records arerom the e4ample are treated as an entire population.

    Array functions

    &a(le 5* Arra2 functions

    Syntax Description

    =6DK"D!CY%dataFclasses' Calculates the reAuency distribution in a oneEcolumnEarray. Thedeault )alue supply and the number o inter)als or classes areused to count how many )alues are omitted on the singleinter)als.(atais the array o( or reerence to( the set o )alues to

    be counted.Classesis the array o the class set.

    G6:T%dataBYF dataBJFnewBdataBJFunctionBtype'

    Calculates the points o an e4ponential trend in an array. (ata0;is the Y ata array. (ata0%optional' is the J ata array.New0(ata0%optional' is the J data array( in which the )aluesare recalculated. Function0typeis optional. 8 unctionBtype L 0(unctions in the orm y L mN4 are calculated. :therwise( y L bMmN4unctions are calculated.

    $8!DT%dataBYF dataBJFlinearBtypeF stats'

    6eturns the parameters o a linear trend.(ata0;is the Y ataarray.(ata0%optional' is the J ata array.!inear0Type%optional'& 8 the line goes through the ero point( then set$inearBType L 0.&tats%optional'& 8 tatsL0( only the regressioncoeicient is calculated. :therwise( other statistics will be seen.

    $:GDT%dataBYF dataBJFunctionBtypeF stats'

    Calculates the adustment o the entered data as an e4ponentialregression cur)e %yLbMmN4'.(ata0;is the Y ata array.(ata0%optional' is the J ata array. Function0type%optional'& 8unctionBtype L 0( unctions in the orm y L mN4 are calculated.

    :therwise( y L bMmN4 unctions are calculated. &tats%optional'. 8tatsL0( only the regression coeicient is calculated.

    DTD6%array' 6eturns the array determinant o an array. This unction returns a)alue in the current cellF it is not necessary to deine a range orthe results.Arrayis a sAuare array in which the determinants aredeined.

    8!HD6D%array' 6eturns the in)erse array. Arrayis a sAuare array that is to bein)erted.

    "$T%arrayF array' Calculates the array product o two arrays. The number ocolumns or array 1 must match the number o rows or array 2.The sAuare array has an eAual number o rows and columns.

    Arrayat irst place is the irst array used in the array product.Arrayat second place is the second array with the same number

    o rows.

    Arra2 functions 3%

  • 7/27/2019 CG3416-CalcFunctions

    32/41

    Syntax Description

    "!8T%dimensions' 6eturns the unitary sAuare array o a certain sie. The unitaryarray is a sAuare array where the main diagonal elements eAual 1and all other array elements are eAual to 0. (imensionsreers tothe sie o the array unit.

    "#6:"CT%array 1F

    array 2F ...array *0'

    ultiplies corresponding elements in the gi)en arrays( and returns

    the sum o those products.Array '2 array #2"""array ,3are arrayswhose corresponding elements are to be multiplied.+t least onearray must be part o the argument list. 8 only one array is gi)en(all array elements are summed.

    "J2Y2%arrayBJFarrayBY'

    6eturns the sum o the dierence o sAuares o corresponding)alues in two arrays.Array0is the irst array whose elements

    are to be sAuared and added.Array0;is the second array whoseelements are to be sAuared and subtracted.

    "J2#Y2%arrayBJFarrayBY'

    6eturns the sum o the sum o sAuares o corresponding )alues intwo arrays.Array0is the irst array whose arguments are to be

    sAuared and added.Array0;is the second array( whose elementsare to be added and sAuared.

    "JY2%arrayBJFarrayBY' +dds the sAuares o the )ariance between corresponding )aluesin two arrays.Array0is the irst array whose elements are to be

    subtracted and sAuared.Array0;is the second array( whoseelements are to be subtracted and sAuared.

    T6+!#:D%array' Transposes the rows and columns o an array. Arrayis the arrayin the spreadsheet that is to be transposed.

    T6D!%dataBYF dataBJFnewBdataBJF linearBType'

    6eturns )alues along a linear trend.(ata0;is the Y ata array.

    (ata0%optional' is the J ata array.New0data0%optional' is

    the array o the J data( which are used or recalculating )alues.

    !inear0typeis optional.8 linear0typeL 0( then lines will be

    calculated through the ero point.:therwise( oset lines will alsobe calculated. The deault is linear0typeR 0.

    &preadsheet functions

    "se spreadsheet unctions to search and address cell ranges and pro)ide eedbac, regarding the

    contents o a cell or range o cells.You can use unctions such as Y#D6$8!7%' and D%' toconnect to other documents or data sources.

    &a(le %4* $preadsheet functions

    Syntax Description

    +6D%rowF columnF absF sheet' 6eturns a cell address %reerence' as te4t( according to thespeciied row and column numbers. :ptionally( whether theaddress is interpreted as an absolute address %or e4ample(Z+Z1' or as a relati)e address %as +1' or in a mi4ed orm%+Z1 or Z+1' can be determined. The name o the sheetcan also be speciied.5owisthe row number or the cell

    reerence.Columnisthe column number or the cell

    reerence %the number( not the letter'.Absdetermines the

    type o reerence.&heetisthe name o the sheet.

    37 Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    33/41

    Syntax Description

    +6D+%reerence' 6eturns the number o indi)idual ranges that belong to amultiple range. + range can consist o contiguous cells or asingle cell. 5eferenceisthe reerence to a cell or cellrange.

    C::D%inde4F)alue1F ... )alue*0' "ses an inde4 to return a )alue rom a list o up to *0

    )alues.*nde-is a reerence or number between 1 and *0indicating which )alue is to be ta,en rom the list.4alue'2 """ value,3is the list o )alues entered as areerence to a cell or as indi)idual )alues.

    C:$"!%reerence' 6eturns the column number o a cell reerence.8 thereerence is a cell( the column number o the cell isreturnedF i the parameter is a cell area( the correspondingcolumn numbers are returned in a singleErow array i theormula is entered as an array ormula.8 the C:$"!unction with an area reerence parameter is not used oran array ormula( only the column number o the irst cell

    within the area is determined.6eerence is the reerence toa cell or cell area whose irst column number is to be ound.8 no reerence is entered( the column number o the cell inwhich the ormula is entered is ound.Calc automaticallysets the reerence to the current cell.

    C:$"!%array' 6eturns the number o columns in the gi)en reerence.Arrayis the reerence to a cell range whose total numbero columns is to be ound. The argument can also be asingle cell.

    D%ser)erF ileF rangeFmode' 6eturns the result o a DEbased lin,.8 the contents othe lin,ed range or section changes( the returned )alue will

    also change.The spreadsheet can be reloaded( or :dit

    !inksselected( to see the updated lin,s.CrossEplatormlin,s( or e4ample rom an $ibre:ice installation runningon a indows machine to a document created on a $inu4machine( are not supported.&erveris the name o a ser)erapplication. $ibre:ice applications ha)e the ser)er nameOoice.Fileis the complete ile name( including path.

    5angeis the area containing the data to be e)aluated.Modeis an optional parameter that controls the method bywhich the D ser)er con)erts its data into numbers.

    D66:6TY#D%reerence' 6eturns the number corresponding to an error )alue

    occurring in a dierent cell. ith the aid o this number( anerror message te4t can be generated.8 an error occurs(

    the unction returns a logical or numerical )alue. 5eferencecontains the address o the cell in which the error occurs.

    $::7"#%searchBcriteriaF arrayFinde4F sorted'

    earches or a )alue and reerence to the cells below theselected area.This unction )eriies i the irst row o an

    array contains a certain )alue.The unction returns the)alue in a row o the array( named in the inde-( in the samecolumn.The search supports regular e4pressions.

    $preadsheet functions 33

  • 7/27/2019 CG3416-CalcFunctions

    34/41

    Syntax Description

    Y#D6$8!7%"6$' orY#D6$8!7%"6$F cellBte4t'

    hena cell that contains the Y#D6$8!7 unction is

    clic,ed( the hyperlin, opens.B5!speciies the lin, target.The optional cell0te-targument is the te4t displayed in thecell.8 the cell0te-tparameter is not speciied( the B5!isdisplayed.

    8!DJ%reerenceF rowF columnFrange'

    6eturns the content o a cell( speciied by row and columnnumber or an optional range name.5eferenceis a cellreerence( entered either directly or by speciying a rangename.8 the reerence consists o multiple ranges( the

    reerence or range name must be enclosed in parentheses.5ow%optional' is the row number o the reerence range(or which to return a )alue.Column%optional' is the column

    number o the reerence range( or which to return a )alue.5ange%optional' is the inde4 o the subrange i reerring toa multiple range.

    8!86DCT%reerence' 6eturns the referencespeciied by a te4t string.This

    unction can also be used to return the area o acorresponding string.5eferenceis a reerence to a cell oran area %in te4t orm' or which to return the contents.

    $::7"#%searchBcriterionFsearchB)ectorFresultB)ector'

    6eturns the contents o a cell either rom a oneErow or oneEcolumn range or rom an array.:ptionally( the assigned)alue %o the same inde4' is returned in a dierent columnand row. +s opposed to H$::7"# and $::7"#( searchand result )ectors may be at dierent positionsF they do notha)e to be adacent.+dditionally( the search )ector or the$::7"# must be sorted( otherwise the search will notreturn any usable results.The search supports regular

    e4pressions.&earch0criterionis the )alue to be searched

    orF entered either directly or as a reerence.&earch0vectoris the singleErow or singleEcolumn area tobe searched.5esult0vectoris another singleErow orsingleEcolumn range rom which the result o the unction ista,en. The result is the cell o the result )ector with thesame inde4 as the instance ound in the search )ector.

    +TC%searchBcriterionFloo,upBarrayF type'

    6eturns the relati)e position o an item in an array thatmatches a speciied )alue.The unction returns the position

    o the )alue ound in the loo,upBarray as a number.&earch0criterion is the )alue which is to be searched orin the singleErow or singleEcolumn array.!ookup0arrayis

    the reerence searched.+ loo,up array can be a single rowor column( or part o a single row or column. Typemay ta,e

    the )alues 1( 0( or 1.This corresponds to the same

    unction in icrosot D4cel.Te sear! su""or#sregulare4pressions

    3/ Description of Functions

  • 7/27/2019 CG3416-CalcFunctions

    35/41

    Syntax Description

    :==DT%reerenceF rowsF columnsFheightF width'

    6eturns the )alue o a cell oset by a certain number orows and columns rom a gi)en reerence point.5eferenceis the cell rom which the unction searches or the newreerence.5owsis the number o cells by which the

    reerence was corrected up %negati)e )alue' or down.

    Columnsis the number o columns by which the reerencewas corrected to the let %negati)e )alue' or to the right.@eightis the optional )ertical height or an area that startsat the new reerence position.idthis the optionalhoriontal width or an area that starts at the new reerenceposition.

    6:%reerence' 6eturns the row number o a cell reerence.8 the reerence

    is a cell( it returns the row number o the cell.8 thereerence is a cell range( it returns the corresponding rownumbers in a oneEcolumn +rray i the ormula is entered asan array ormula.8 the 6: unction with a rangereerence is not used in an array ormula( only the row

    number o the irst range cell will be returned.5eferenceisa cell( an area( or the name o an area. 8 a reerence is notindicated( Calc automatically sets the reerence to thecurrent cell.

    6:%array' 6eturns the number o rows in a reerence or array.Arrayis the reerence or named area whose total number o rowsis to be determined.

    DDT%reerence' 6eturns the sheet number o a reerence or a stringrepresenting a sheet name.8 no parameters are entered(the result is the sheet number o the spreadsheetcontaining the ormula.5eference%optional' is thereerence to a cell( an area( or a sheet name string.

    DDT%reerence' etermines the number o sheets in a reerence.8 noparameters are entered( the result is the number o sheetsin the current document.5eference%optional' is thereerence to a sheet or an area.

    TY$D%styleF timeF style2' +pplies a style to the cell containing the ormula. +ter a set

    amount o time( another style can be applied.This unctionalways returns the )alue 0( allowing it to be added toanother unction without changing the )alue. &tyleis the

    name o a cell style assigned to the cell.Timeis an

    optional time range in seconds.&tyle#is the optional nameo a cell style assigned to the cell ater a certain amount otime has passed.

    $preadsheet functions 3#

  • 7/27/2019 CG3416-CalcFunctions

    36/41

    Syntax Description

    H$::7"#%searchBcriterionF arrayFinde4F sortBorder'

    earches )ertically with reerence to adacent cells to theright. 8 a speciic )alue is contained in the irst column oan array(returns the )alue to the same line o a speciic

    array column named by inde-.The search supports regular

    e4pressions.&earch0criterionis the )alue searched or in

    the irst column o the array.Arrayis the reerence( whichmust include at least two columns.*nde-is the number othe column in the array that contains the )alue to bereturned.The irst column has the number 1.&ort0order%optional' indicates whether the irst column in the array issorted in ascending order.

    Te-t functions

    "se Calcs te4t unctions to search and manipulate te4t strings or character codes.

    &a(le %%* &ext functions

    Syntax Description

    +6+-8C%te4t' Calculates the )alue o a 6oman number. The )alue rangemust be between 0 and *. Te-tis the te4t that representsa 6oman number.

    -+D%numberF radi4F[minimumBlength\'

    Con)erts a positi)e integer to a speciied base then into te4tusing the characters rom the base]s numbering system%decimal( binary( he4adecimal( etc.'. :nly the digits 0E andthe letters +ES are used. Numberis the positi)e integer to becon)erted. 5adi-is the base o the number system. 8t may beany positi)e integer between 2 and *

  • 7/27/2019 CG3416-CalcFunctions

    37/41