Financial Functions¶
This contains the list of financial functions that are currently supported by Codcel.
A¶
ACCRINT¶
Calculates the accrued interest for a security that pays periodic interest.
-
Purpose: Useful for determining the interest earned but not yet received, which is often used in fixed-income securities trading.
-
Formula:
ACCRINT(issue, first_interest, settlement, rate, par, frequency, [basis])issueis the date the security was issued.first_interestis the date of the first interest payment.settlementis the settlement date of the security.rateis the annual coupon rate of the security.paris the face value of the security (default is 1000).frequencyis the number of interest payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.).
-
Example Usage:
=ACCRINT(DATE(2023,1,1), DATE(2023,7,1), DATE(2023,9,30), 0.05, 1000, 2)calculates the accrued interest for a semi-annual bond with a 5% coupon rate and a face value of 1000.=ACCRINT(A1, A2, A3, A4, A5, A6, 1)computes the accrued interest using cell references for issue date, first payment date, settlement date, rate, par, and frequency, with an actual/actual day count basis.
ACCRINTM¶
Calculates the accrued interest for a security that pays interest at maturity.
-
Purpose: Useful for determining the interest earned but not yet received for securities that pay interest only at maturity.
-
Formula:
ACCRINTM(issue, maturity, rate, par, [basis]) issueis the date the security was issued.maturityis the maturity date of the security.rateis the annual coupon rate of the security.paris the face value of the security (default is 1000).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=ACCRINTM(DATE(2023,1,1), DATE(2025,1,1), 0.05, 1000)calculates the accrued interest for a bond issued on January 1, 2023, maturing on January 1, 2025, with a 5% annual coupon rate and a face value of 1000.=ACCRINTM(A1, A2, A3, A4, 1)computes the accrued interest using cell references for issue date, maturity date, rate, and par, with an actual/actual day count basis.
AMORLINC¶
Calculates the depreciation for each accounting period using the linear depreciation method.
-
Purpose: This function is used for calculating uniform depreciation of an asset over its useful life.
-
Formula:
AMORLINC(cost, date_purchased, first_period, salvage, period, rate, [basis]) costis the initial cost of the asset.date_purchasedis the date the asset was purchased.first_periodis the end date of the first period.salvageis the value of the asset at the end of the depreciation.periodis the accounting period number for which the depreciation is calculated.rateis the rate of depreciation.-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=AMORLINC(10000, DATE(2023,1,1), DATE(2023,12,31), 1000, 1, 0.1)calculates the linear depreciation for the first year of an asset with an initial cost of 10,000, a salvage value of 1,000, and a depreciation rate of 10%.=AMORLINC(A1, A2, A3, A4, A5, A6, 1)computes the depreciation using cell references for cost, purchase date, first period end date, salvage value, period, rate, with an actual/actual day count basis.
AMORDEGRC¶
Calculates the depreciation for an accounting period using a declining balance method with a specific depreciation coefficient.
-
Purpose: This function is helpful for determining accelerated depreciation over an asset's life, often used for tax purposes.
-
Formula:
AMORDEGRC(cost, date_purchased, first_period, salvage, period, rate, depreciation_coef, [basis]) costis the initial cost of the asset.date_purchasedis the date the asset was purchased.first_periodis the end date of the first period.salvageis the value of the asset at the end of its useful life.periodis the accounting period number for which the depreciation is calculated.rateis the rate of depreciation.depreciation_coefis the depreciation coefficient, which increases the rate of depreciation (commonly set to 1.5 or 2).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=AMORDEGRC(10000, DATE(2023,1,1), DATE(2023,12,31), 1000, 1, 0.2, 2)calculates the accelerated depreciation for the first year of an asset with an initial cost of 10,000, a salvage value of 1,000, a depreciation rate of 20%, and a coefficient of 2.=AMORDEGRC(A1, A2, A3, A4, A5, A6, A7, 1)computes the depreciation using cell references for cost, purchase date, first period end date, salvage value, period, rate, coefficient, and with an actual/actual day count basis.
C¶
COUPDAYBS¶
Calculates the number of days from the beginning of the coupon period to the settlement date.
-
Purpose: This function is essential for determining the elapsed time in a coupon period, often used in bond calculations.
-
Formula:
COUPDAYBS(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPDAYBS(DATE(2023,1,15), DATE(2028,12,31), 2)computes the number of days between the beginning of the coupon period and the settlement date for a semi-annual bond maturing at the end of 2028.=COUPDAYBS(A1, A2, A3, 1)calculates the days using cell references for settlement date, maturity date, and frequency, with an actual/actual day count basis.
COUPDAYS¶
Calculates the number of days in the coupon period that contains the settlement date.
-
Purpose: This function is useful for determining the total number of days in a coupon period, often required in bond calculations.
-
Formula:
COUPDAYS(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPDAYS(DATE(2023,1,15), DATE(2028,12,31), 2)computes the total number of days in the coupon period for a semi-annual bond maturing at the end of 2028.=COUPDAYS(A1, A2, A3, 1)calculates the days using cell references for settlement date, maturity date, and frequency, with an actual/actual day count basis.
COUPDAYSNC¶
Calculates the number of days from the settlement date to the next coupon date.
-
Purpose: This function is useful for determining the remaining time in a coupon period, often used in bond calculations.
-
Formula:
COUPDAYSNC(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPDAYSNC(DATE(2023,1,15), DATE(2028,12,31), 2)computes the number of days from the settlement date to the next coupon date for a semi-annual bond maturing at the end of 2028.=COUPDAYSNC(A1, A2, A3, 1)calculates the days using cell references for settlement date, maturity date, and frequency, with an actual/actual day count basis.
COUPNCD¶
Calculates the next coupon date after the settlement date.
-
Purpose: This function is crucial for determining the next payment date for bonds with periodic coupon payments.
-
Formula:
COUPNCD(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPNCD(DATE(2023,1,15), DATE(2028,12,31), 2)calculates the next coupon date after the settlement date for a semi-annual bond maturing at the end of 2028.=COUPNCD(A1, A2, A3, 1)calculates the next coupon date using cell references for settlement date, maturity date, and frequency, with an actual/actual day count basis.
COUPNUM¶
Calculates the number of coupon payments between the settlement date and the maturity date.
-
Purpose: This function is crucial for determining the total number of coupon payments for a bond over its remaining life.
-
Formula:
COUPNUM(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPNUM(DATE(2023,1,15), DATE(2028,12,31), 2)calculates the total number of semi-annual coupon payments from the settlement date to the maturity date for a bond maturing at the end of 2028.=COUPNUM(A1, A2, A3, 1)computes the total coupon payments using cell references for settlement date, maturity date, frequency, with an actual/actual day count basis.
COUPPCD¶
Calculates the previous coupon date before the settlement date.
-
Purpose: This function is essential for determining the coupon payment date immediately preceding the settlement date, often used in bond calculations.
-
Formula:
COUPPCD(settlement, maturity, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.frequencyis the number of coupon payments per year (1 = annual, 2 = semi-annual, 4 = quarterly).-
basis(optional) is the day-count basis to use (0 = 30/360, 1 = actual/actual, 2 = actual/360, etc.). -
Example Usage:
=COUPPCD(DATE(2023,1,15), DATE(2028,12,31), 2)calculates the previous coupon date before the settlement date for a semi-annual bond maturing at the end of 2028.=COUPPCD(A1, A2, A3, 1)calculates the previous coupon date using cell references for settlement date, maturity date, and frequency, with an actual/actual day count basis.
CUMIPMT¶
Calculates the cumulative interest paid on a loan or an investment between two periods.
-
Purpose: This function is essential for determining the total interest paid over a specified range of payments, which is useful in financial analysis and loan management.
-
Formula:
CUMIPMT(rate, nper, pv, start_period, end_period, type) rateis the annual interest rate of the loan or investment.nperis the total number of payment periods for the loan or investment.pvis the present value of the loan or investment (principal).start_periodis the first period in the range of payment periods for which to calculate the interest.end_periodis the last period in the range of payment periods for which to calculate the interest.-
typespecifies when payments are due:0= End of the period.1= Beginning of the period.
-
Example Usage:
=CUMIPMT(5%/12, 60, 30000, 1, 12, 0)calculates the total interest paid over the first year (12 months) on a 5% annual interest rate loan with 60 total payments and a principal of 30,000 (payments are made at the end of the period).=CUMIPMT(A1, A2, A3, A4, A5, A6)calculates the cumulative interest using cell references for rate, number of periods, present value, start and end periods, and payment type.
CUMPRINC¶
Calculates the cumulative principal paid on a loan or an investment between two periods.
-
Purpose: This function is essential for determining the total principal paid over a specified range of payment periods, which is particularly useful in financial analysis and loan management.
-
Formula:
CUMPRINC(rate, nper, pv, start_period, end_period, type) rateis the annual interest rate of the loan or investment.nperis the total number of payment periods for the loan or investment.pvis the present value of the loan or investment (principal).start_periodis the first period in the range of payment periods for which to calculate the principal.end_periodis the last period in the range of payment periods for which to calculate the principal.-
typespecifies when payments are due:0= End of the period.1= Beginning of the period.
-
Example Usage:
=CUMPRINC(5%/12, 60, 30000, 1, 12, 0)calculates the total principal paid over the first year (12 months) on a 5% annual interest rate loan with 60 total payments and a principal of 30,000 (payments are made at the end of the period).=CUMPRINC(A1, A2, A3, A4, A5, A6)computes the cumulative principal using cell references for rate, number of periods, present value, start and end periods, and payment type.
D¶
DB¶
Calculates the depreciation of an asset for a specified period using the fixed-declining-balance method.
-
Purpose: This function is used to determine the depreciation expense of an asset for a given period, based on the fixed-declining balance method, which is a common depreciation method in financial analysis.
-
Formula:
DB(cost, salvage, life, period, [month]) costis the initial cost of the asset.salvageis the salvage value of the asset (value at the end of the depreciation period).lifeis the total number of periods (useful life) over which the asset will be depreciated.periodis the specific period for which to calculate depreciation.-
month(optional) specifies the number of months in the first year of depreciation (defaults to 12 if omitted). -
Example Usage:
=DB(10000, 1000, 5, 1)calculates the depreciation for the first year for an asset with an initial cost of 10,000, a salvage value of 1,000, and a useful life of 5 years.=DB(A1, A2, A3, A4, A5)computes the depreciation for the specified period using cell references for cost, salvage value, useful life, period, and number of months.
DDB¶
Calculates the depreciation of an asset for a specified period using the double-declining balance method.
-
Purpose: This function is used to determine the depreciation expense of an asset for a given period, based on the double-declining balance method, which accelerates depreciation compared to the straight-line method.
-
Formula:
DDB(cost, salvage, life, period, [factor]) costis the initial cost of the asset.salvageis the salvage value of the asset (value at the end of the depreciation period).lifeis the total number of periods (useful life) over which the asset will be depreciated.periodis the specific period for which to calculate depreciation.-
factor(optional) specifies the rate of depreciation acceleration (defaults to 2 for double-declining balance). -
Example Usage:
=DDB(10000, 1000, 5, 1)calculates the depreciation for the first year for an asset with an initial cost of 10,000, a salvage value of 1,000, and a useful life of 5 years, using the default factor of 2.=DDB(A1, A2, A3, A4, 1.5)computes the depreciation for the specified period using cell references for cost, salvage value, useful life, period, and a custom factor of 1.5.
DISC¶
Calculates the discount rate for a security.
-
Purpose: This function is essential for determining the discount rate of a security based on its price, redemption value, and duration.
-
Formula:
DISC(settlement, maturity, pr, redemption, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.pris the price of the security per $100 face value.redemptionis the redemption value of the security per $100 face value.-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=DISC(DATE(2023,1,15), DATE(2024,1,15), 95, 100)calculates the discount rate for a security with a settlement date of January 15, 2023, maturity one year later, a price of $95, and a redemption value of $100 using a default day-count basis.=DISC(A1, A2, A3, A4, 1)computes the discount rate using cell references for settlement date, maturity date, price, redemption value, and an actual/actual day-count basis.
DOLLARDE¶
Converts a dollar price expressed as a fraction into a decimal dollar value.
-
Purpose: This function is used to convert a financial value expressed in fractional notation (such as bond prices) into its equivalent decimal form to simplify calculations and analysis.
-
Formula:
DOLLARDE(fractional_dollar, fraction) fractional_dollaris the dollar value expressed as a fraction (e.g.,$1.75where0.75represents fractional parts like3/4).-
fractionis the denominator of the fraction used in the fractional dollar value (e.g.,4for quarters).- Note:
fractionmust be an integer greater than 0; otherwise, the function returns an error.
- Note:
-
Example Usage:
=DOLLARDE(1.75, 4)converts$1.75(1 and 75/100 as fractional) with a denominator of4into its equivalent decimal form.=DOLLARDE(A1, A2)converts the value ofA1expressed as a fractional dollar into decimal using the denominator inA2.
DOLLARFR¶
Converts a dollar price expressed as a decimal into a fraction dollar value.
-
Purpose: This function is used to convert a financial value expressed in decimal form (e.g., bond prices) into its equivalent fractional form for easier representation in specific contexts, such as trading or reporting.
-
Formula:
DOLLARFR(decimal_dollar, fraction) decimal_dollaris the dollar value expressed in decimal form (e.g.,$1.75).-
fractionis the denominator of the fraction used for the conversion (e.g.,4for quarters).- Note:
fractionmust be an integer greater than 0; otherwise, the function returns an error.
- Note:
-
Example Usage:
=DOLLARFR(1.75, 4)converts$1.75(1 and 75/100 in decimal form) into its equivalent fractional form with a denominator of4:$1.3(1 and 3/4).=DOLLARFR(A1, A2)converts the value inA1(expressed as a decimal) into its fractional equivalent using the denominator specified inA2.
DURATION¶
Calculates the Macauley duration of a security with periodic interest payments.
-
Purpose: This function is used to determine the Macauley duration of a security, which is a measure of the weighted average time until a security's cash flows are received. It is commonly used in bond pricing and interest rate risk management.
-
Formula:
DURATION(settlement, maturity, coupon, yld, frequency, [basis]) settlementis the settlement date of the security.maturityis the maturity date of the security.couponis the annual coupon rate of the security.yldis the annual yield of the security.frequencyspecifies the number of coupon payments per year:1= Annual.2= Semi-annual.4= Quarterly.
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=DURATION(DATE(2023,1,1), DATE(2033,1,1), 5%, 4%, 2)calculates the Macauley duration of a 10-year bond with a 5% annual coupon rate, 4% annual yield, and semi-annual coupon payments using the default 30/360 day-count basis.=DURATION(A1, A2, A3, A4, A5, 1)computes the Macauley duration using cell references for settlement date, maturity date, coupon rate, annual yield, frequency, and an actual/actual day-count basis.
E¶
EFFECT¶
Calculates the effective annual interest rate based on the nominal annual interest rate and the number of compounding periods per year.
-
Purpose: This function is used to determine the effective annual interest rate, which accounts for the effects of compounding over a year, making it easier to compare rates across financial products with different compounding frequencies.
-
Formula:
EFFECT(nominal_rate, npery) nominal_rateis the nominal (stated) annual interest rate.-
nperyis the number of compounding periods per year. -
Example Usage:
=EFFECT(5%, 4)calculates the effective annual interest rate for a nominal rate of 5% with quarterly compounding ( 4 periods per year).-
=EFFECT(A1, A2)computes the effective interest rate using the nominal annual rate inA1and the number of compounding periods inA2. -
Notes:
nominal_ratemust be greater than 0.nperymust be an integer greater than or equal to 1; otherwise, the function returns an error.
F¶
FV¶
Calculates the future value of an investment based on periodic, constant payments and a constant interest rate.
-
Purpose: This function is used to determine the future value of an investment or loan when you know the periodic payments, interest rate, and duration.
-
Formula:
FV(rate, nper, pmt, [pv], [type]) rateis the interest rate per period.nperis the total number of periods.pmtis the payment made each period (negative for outgoing payments).pv(optional) is the present value or initial investment. Default is0.-
type(optional) indicates when payments are due:0= End of the period (default).1= Beginning of the period.
-
Example Usage:
=FV(5%/12, 60, -100, -1000)calculates the future value of an investment with monthly payments of $100, an initial investment of $1000, over 60 months at an annual interest rate of 5% (monthly rate =5%/12).=FV(A1, A2, A3, A4, 1)computes the future value using cell references for rate, number of periods, payments, initial present value, and assumes payments are made at the beginning of the period.
FVSCHEDULE¶
Calculates the future value of an investment based on a starting principal and a schedule of interest rates.
-
Purpose: This function is used to determine how much an investment will grow based on a series of varying interest rates over time.
-
Formula:
FVSCHEDULE(principal, schedule) principalis the initial amount of the investment.-
scheduleis an array (or range) of interest rates applied to the investment for each period. -
Example Usage:
=FVSCHEDULE(1000, {0.05, 0.04, 0.03})calculates the future value of a $1000 investment after applying 5%, 4%, and 3% interest rates over three periods.-
=FVSCHEDULE(A1, A2:A4)computes the future value using the principal inA1and the schedule of interest rates in the rangeA2:A4. -
Notes:
- The
schedulearray can contain positive, negative, or zero values, representing various interest rate scenarios. - If the
schedulearray is empty, the function returns the initialprincipal.
I¶
INTRATE¶
Calculates the interest rate for a fully invested security.
-
Purpose: This function determines the annual interest rate for a security given its settlement and maturity dates, investment amount, and redemption value.
-
Formula:
INTRATE(settlement, maturity, investment, redemption, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the security (the date when the security expires).investmentis the amount invested in the security.redemptionis the amount to be received at maturity.-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=INTRATE(DATE(2022,1,1), DATE(2023,1,1), 1000, 1050)calculates the annual interest rate for an investment of $1000 with a redemption value of $1050 and a one-year term using the default 30/360 day-count basis.=INTRATE(A1, A2, A3, A4, 1)computes the interest rate based on the settlement date, maturity date, investment, redemption, and an actual/actual day-count basis specified in the referenced cells.
IPMT¶
Calculates the interest portion of a payment for a given period in an investment or loan with constant periodic payments and a constant interest rate.
-
Purpose: This function is used to determine the interest component of a payment during a specific period. It is useful for understanding how much of each payment is applied toward interest.
-
Formula:
IPMT(rate, per, nper, pv, [fv], [type]) rateis the interest rate per period.peris the period for which the interest component is calculated (must be between1andnper).nperis the total number of periods.pvis the present value or principal of the loan/investment.fv(optional) is the future value or the desired balance after the last payment. Default is0.-
type(optional) indicates when payments are due:0= End of the period (default).1= Beginning of the period.
-
Example Usage:
=IPMT(5%/12, 1, 60, -10000)calculates the interest portion of the first monthly payment for a 5-year loan of $ 10,000 with a 5% annual interest rate compounded monthly.=IPMT(A1, A2, A3, A4, 0, 1)computes the interest portion using cell references for rate, period, total periods, loan value, a future value of0, and payments due at the beginning of the period.
IRR¶
Calculates the internal rate of return for a series of cash flows occurring at regular intervals.
-
Purpose: This function is used to determine the discount rate at which the net present value (NPV) of a series of cash flows equals zero. It’s widely used in financial analysis to evaluate the profitability of investments.
-
Formula:
IRR(values, [guess]) valuesis an array (or range) of cash flows, where:- The first value represents the initial investment (typically negative).
- Subsequent values represent net cash inflows or outflows occurring at regular intervals.
-
guess(optional) is a number that serves as a starting point for the iterative calculation. Default is0.1( 10%). -
Example Usage:
=IRR({-1000, 200, 300, 400, 500})calculates the internal rate of return for an investment with an initial cost of $1000 and cash inflows of $200, $300, $400, and $500 over four periods.=IRR(A1:A5, 0.1)computes the IRR using the cash flows in the rangeA1:A5and a guess of10%.
ISPMT¶
Calculates the interest paid during a specific period of an investment or loan amortized over time.
-
Purpose: This function is used to determine the interest paid on the principal for a specific period assuming arithmetic (linear) amortization.
-
Formula:
ISPMT(rate, per, nper, pv) rateis the interest rate per period.peris the specific period for which the interest is calculated (must be between1andnper).nperis the total number of periods.-
pvis the present value or principal of the loan/investment. -
Example Usage:
=ISPMT(5%/12, 1, 60, -10000)calculates the interest for the first period of a 5-year loan of $10,000 with a 5% annual interest rate compounded monthly.=ISPMT(A1, A2, A3, A4)computes the interest based on the interest rate, period, total periods, and loan value provided in cellsA1,A2,A3, andA4.
M¶
MDURATION¶
Calculates the modified duration of a security with periodic interest payments, which measures the price sensitivity of the security to interest rate changes.
-
Purpose: This function is used to determine the effective duration of a bond, considering the interest rate and coupon payments. It gives insight into the bond's interest rate risk.
-
Formula:
MDURATION(settlement, maturity, coupon, yld, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the security (the date when the security expires).couponis the annual coupon rate of the security (as a percentage of face value).yldis the annual yield of the security.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=MDURATION(DATE(2022, 1, 1), DATE(2032, 1, 1), 0.05, 0.06, 2)calculates the modified duration of a bond with a 5% annual coupon rate, 6% annual yield, semi-annual payments, and a 10-year maturity.=MDURATION(A1, A2, A3, A4, A5, 0)computes the modified duration using the settlement date, maturity date, coupon rate, annual yield, frequency, and a 30/360 day-count basis provided in the referenced cells.
MIRR¶
Calculates the modified internal rate of return for a series of cash flows, considering both the cost of investment and the reinvestment rate of returns.
-
Purpose: This function is used to determine the profitability of an investment by taking into account both the financing cost and the reinvestment rate. MIRR adjusts the IRR by considering a more realistic reinvestment scenario.
-
Formula:
MIRR(values, finance_rate, reinvest_rate) valuesis an array (or range) of cash flows, where:- The first value represents the initial investment (typically negative).
- Subsequent values represent net cash inflows or outflows occurring at regular intervals.
finance_rateis the cost of financing or the rate at which the investment is financed.-
reinvest_rateis the rate at which the positive cash flows are reinvested. -
Example Usage:
=MIRR({-1000, 200, 300, 400, 500}, 0.1, 0.12)calculates the modified internal rate of return for an investment with an initial cost of $1000, cash inflows of $200, $300, $400, and $500, a finance rate of 10%, and a reinvestment rate of 12%.=MIRR(A1:A5, 0.08, 0.1)computes the MIRR using the cash flows in the rangeA1:A5, a financing rate of 8%, and a reinvestment rate of 10%.
N¶
NOMINAL¶
Calculates the nominal annual interest rate given the effective annual rate and the number of compounding periods per year.
-
Purpose: This function is used to determine the nominal interest rate required to achieve a given effective interest rate over a specified number of compounding periods. It is commonly used in financial calculations to convert effective rates into nominal rates.
-
Formula:
NOMINAL(effect_rate, npery) effect_rateis the effective annual interest rate (in decimal form, e.g.,0.05for 5%).-
nperyis the number of compounding periods per year. -
Example Usage:
=NOMINAL(0.05, 12)calculates the nominal annual interest rate for an effective annual rate of 5% with monthly ( 12) compounding.=NOMINAL(A1, A2)computes the nominal rate using the effective annual rate and the number of compounding periods specified in cellsA1andA2.
NPER¶
Calculates the number of periods for an investment or loan based on constant periodic payments and a constant interest rate.
-
Purpose: This function is used to determine how many periods it will take to pay off a loan or reach an investment goal given periodic payments, an interest rate, and a future value.
-
Formula:
NPER(rate, pmt, pv, [fv], [type]) rateis the interest rate per period.pmtis the payment made each period (must remain constant throughout the duration).pvis the present value or the lump sum amount of the loan/investment.fv(optional) is the future value or the desired value after the last payment. Default is0.-
type(optional) indicates when payments are due:0= End of the period (default).1= Beginning of the period.
-
Example Usage:
=NPER(5%/12, -200, -10000)calculates the number of months required to pay off a $10,000 loan with a monthly payment of $200 and a 5% annual interest rate compounded monthly.=NPER(A1, A2, A3, 0, 1)computes the number of periods using the interest rate, payment amount, present value, a future value of0, and payments due at the beginning of the period specified in cellsA1,A2, andA3.
NPV¶
Calculates the net present value of an investment based on a series of periodic cash flows and a discount rate.
-
Purpose: This function is used to determine the present value of future cash flows based on a given discount rate, accounting for the time value of money.
-
Formula:
NPV(rate, values) rateis the discount rate per period.-
valuesis an array (or range) of cash flows, which can include both negative (outflows) and positive (inflows) values. Cash flows must be spaced equally in time. -
Example Usage:
=NPV(0.08, {-1000, 300, 400, 500, 600})calculates the net present value of an investment with an initial cost of $1000 (outflow), and cash inflows of $300, $400, $500, and $600 over four periods, using a discount rate of 8%.=NPV(A1, A2:A6)calculates the NPV using the discount rate provided in cellA1and the cash flow values in the rangeA2:A6.
O¶
ODDFPRICE¶
Calculates the price per $100 face value of a security with an odd first period (longer or shorter than usual).
-
Purpose: This function is used to determine the price of a bond with an irregular first coupon period. This is typically the result of bonds issued between standard coupon dates.
-
Formula:
ODDFPRICE(settlement, maturity, issue, first_coupon, rate, yld, redemption, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the bond (the date when the bond expires).issueis the issue date of the security (when the bond is issued).first_couponis the date of the first coupon payment.rateis the annual coupon rate of the security (as a percentage of face value).yldis the annual yield of the security (the interest rate of the bond).redemptionis the redemption value of the bond per $100 of face value.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=ODDFPRICE(DATE(2023, 1, 15), DATE(2030, 1, 15), DATE(2022, 7, 1), DATE(2023, 3, 1), 0.04, 0.05, 100, 2)calculates the price of a bond with a 4% annual coupon rate, a 5% annual yield, a semi-annual payment frequency, a maturity date of January 15, 2030, and an odd first coupon period ending on March 1, 2023.=ODDFPRICE(A1, A2, A3, A4, A5, A6, 100, A7, 1)computes the price of a bond with the settlement date, maturity date, issue date, first coupon date, coupon rate, yield, redemption value, frequency, and day-count basis provided in the referenced cells.
ODDFYIELD¶
Calculates the yield of a security with an odd first period (longer or shorter than usual).
-
Purpose: This function is used to determine the yield of a bond with an irregular first coupon period, often observed in bonds issued between standard coupon dates.
-
Formula:
ODDFYIELD(settlement, maturity, issue, first_coupon, rate, price, redemption, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the bond (the date when the bond expires).issueis the issue date of the security (when the bond is issued).first_couponis the date of the first coupon payment.rateis the annual coupon rate of the security (as a percentage of face value).priceis the price of the security per $100 of face value.redemptionis the redemption value of the bond per $100 of face value.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=ODDFYIELD(DATE(2023, 1, 15), DATE(2030, 1, 15), DATE(2022, 7, 1), DATE(2023, 3, 1), 0.04, 95, 100, 2)calculates the yield of a bond with a 4% annual coupon rate, a price of $95 per $100 face value, a semi-annual payment frequency, a maturity date of January 15, 2030, and an odd first coupon period ending on March 1, 2023.=ODDFYIELD(A1, A2, A3, A4, A5, A6, 100, A7, 1)computes the yield of a bond using the settlement date, maturity date, issue date, first coupon date, coupon rate, bond price, redemption value, frequency, and day-count basis provided in the referenced cells.
ODDLPRICE¶
Calculates the price of a security with an odd last period (longer or shorter than usual).
-
Purpose: This function is used to determine the price of a bond with an irregular last coupon period, often observed in bonds maturing between standard coupon dates.
-
Formula:
ODDLPRICE(settlement, maturity, last_coupon, rate, yld, redemption, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the bond (the date when the bond expires).last_couponis the date of the last coupon payment before maturity.rateis the annual coupon rate of the security (as a percentage of face value).yldis the annual yield of the security (the interest rate of the bond).redemptionis the redemption value of the bond per $100 of face value.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=ODDLPRICE(DATE(2023, 1, 15), DATE(2030, 1, 15), DATE(2029, 7, 1), 0.04, 0.05, 100, 2)calculates the price of a bond with a 4% annual coupon rate, a 5% annual yield, a semi-annual payment frequency, a maturity date of January 15, 2030, and an odd last coupon period starting on July 1, 2029.=ODDLPRICE(A1, A2, A3, A4, A5, 100, A6, 1)computes the price of a bond using the settlement date, maturity date, last coupon date, coupon rate, yield, redemption value, frequency, and day-count basis provided in the referenced cells.
ODDLYIELD¶
Calculates the yield of a security with an odd last period (longer or shorter than usual).
-
Purpose: This function is used to determine the yield of a bond with an irregular last coupon period, often observed in bonds maturing between standard coupon dates.
-
Formula:
ODDLYIELD(settlement, maturity, last_coupon, rate, price, redemption, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the bond (the date when the bond expires).last_couponis the date of the last coupon payment before maturity.rateis the annual coupon rate of the security (as a percentage of face value).priceis the price of the security per $100 of face value.redemptionis the redemption value of the bond per $100 of face value.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=ODDLYIELD(DATE(2023, 1, 15), DATE(2030, 1, 15), DATE(2029, 7, 1), 0.04, 95, 100, 2)
calculates the yield of a bond with a 4% annual coupon rate, a price of $95 per $100 face value, a semi-annual payment frequency, a maturity date of January 15, 2030, and an odd last coupon period starting on July 1, 2029.=ODDLYIELD(A1, A2, A3, A4, A5, 100, A6, 1)
computes the yield of a bond using the settlement date, maturity date, last coupon date, coupon rate, bond price, redemption value, frequency, and day-count basis provided in the referenced cells.
P¶
PDURATION¶
Calculates the number of periods required for an investment to grow to a specified future value given a fixed interest rate.
-
Purpose: This function is used to determine how long it will take for a given investment to grow to a specified future value, assuming a fixed periodic interest rate.
-
Formula:
PDURATION(rate, pv, fv) rateis the interest rate per period (must be positive).pvis the present value or initial amount of the investment.-
fvis the future value or the amount to which the investment is expected to grow. -
Example Usage:
=PDURATION(0.05, 1000, 2000)calculates the number of periods required for a $1000 investment to grow to $2000 with a 5% rate of return per period.=PDURATION(A1, A2, A3)computes the number of periods using the rate inA1, present value inA2, and desired future value inA3.
PMT¶
Calculates the payment for a loan based on constant payments and a constant interest rate.
-
Purpose: This function is used to calculate the payment amount for a loan or investment based on a fixed interest rate and a fixed number of periods.
-
Formula:
PMT(rate, nper, pv, [fv], [type]) rateis the interest rate per period.nperis the total number of payment periods in the loan or investment.pvis the present value or total loan amount.fv(optional) is the future value or the remaining balance after the final payment (default is 0).-
type(optional) indicates when payments are due:0= End of the period (default if omitted).1= Beginning of the period.
-
Example Usage:
=PMT(0.05/12, 60, -30000)calculates the monthly payment for a loan of $30,000 over 5 years with an annual interest rate of 5%. Payments are made at the end of the period, and there is no remaining balance.=PMT(A1/12, A2, A3)computes the payment amount using the interest rate inA1, the number of periods inA2, and the loan amount inA3.
PPMT¶
Calculates the payment on the principal for a loan or investment based on constant payments and a constant interest rate for a given period.
-
Purpose: This function is used to calculate the principal portion of a payment for a specific period in the lifetime of a loan or investment, assuming fixed periodic payments and a constant interest rate.
-
Formula:
PPMT(rate, per, nper, pv, [fv], [type]) rateis the interest rate per period.peris the specific period for which you want to calculate the principal payment (must be between 1 andnper).nperis the total number of payment periods in the loan or investment.pvis the present value or total loan amount.fv(optional) is the future value or the remaining balance after the final payment (default is 0).-
type(optional) indicates when payments are due:0= End of the period (default if omitted).1= Beginning of the period.
-
Example Usage:
=PPMT(0.05/12, 1, 60, -30000)calculates the principal portion of the first monthly payment for a $30,000 loan with a 5% annual interest rate over 5 years. Payments are made at the end of the month, and there is no remaining balance.=PPMT(A1/12, A2, A3, A4)computes the principal portion of a payment using the interest rate inA1, the period inA2, the number of periods inA3, and the loan amount inA4.
PRICE¶
Calculates the price per $100 face value of a security that pays periodic interest.
-
Purpose: This function is used to determine the market price of a bond or similar security paying periodic interest based on a constant yield.
-
Formula:
PRICE(settlement, maturity, rate, yield, redemption, frequency, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the security (the date when the security expires).rateis the annual coupon rate of the security (as a percentage of face value).yieldis the annual yield of the security (as a percentage of face value).redemptionis the redemption value of the bond per $100 of face value.frequencyis the number of coupon payments per year:1= Annual2= Semi-annual4= Quarterly
-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=PRICE(DATE(2023, 1, 15), DATE(2030, 1, 15), 0.04, 0.05, 100, 2)calculates the price of a bond with a 4% annual coupon rate, a 5% annual yield, a semi-annual payment frequency, a maturity date of January 15, 2030, and assumes the default day-count basis of 30/360.=PRICE(A1, A2, A3, A4, 100, A5, 1)computes the price of a bond using the settlement date, maturity date, coupon rate, yield, redemption value, payment frequency, and day-count basis specified in referenced cells.
PRICEDISC¶
Calculates the price per $100 face value of a discounted security.
-
Purpose: This function is used to calculate the price of a discounted security (such as a Treasury bill) based on its face value, discount rate, and time to maturity.
-
Formula:
PRICEDISC(settlement, maturity, discount, [redemption], [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the security (the date when the security expires).discountis the discount rate of the security (as a percentage of face value).redemptionis the redemption value of the security per $100 of face value (default is $100).-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=PRICEDISC(DATE(2023, 1, 1), DATE(2024, 1, 1), 0.05)calculates the price of a discounted security with a 5% discount rate, a maturity date of January 1, 2024, and assumes the default redemption value of $100 and the 30/360 day-count basis.=PRICEDISC(A1, A2, A3, A4, A5)computes the price of a discounted security using the settlement date inA1, maturity date inA2, discount rate inA3, redemption value inA4, and day-count basis inA5.
PRICEMAT¶
Calculates the price per $100 face value of a security that pays interest at maturity.
-
Purpose: This function is used to determine the market price of a security that pays interest at maturity, based on the settlement date, maturity date, annual coupon rate, yield, and day-count basis.
-
Formula:
PRICEMAT(settlement, maturity, issue, rate, yield, [basis]) settlementis the settlement date of the security (the date after issuance when the security is purchased).maturityis the maturity date of the security (the date when the security expires).issueis the issue date of the security (the original date the security was issued).rateis the annual coupon rate of the security (as a percentage of face value).yieldis the annual yield of the security (as a percentage of face value).-
basis(optional) specifies the day-count basis to use:0= 30/360 (US convention, default if omitted).1= Actual/actual.2= Actual/360.3= Actual/365.4= European 30/360.
-
Example Usage:
=PRICEMAT(DATE(2023, 1, 15), DATE(2030, 1, 15), DATE(2022, 1, 15), 0.04, 0.05)calculates the price of a security with a 4% annual coupon rate, 5% annual yield, issue date of January 15, 2022, and maturity date of January 15, 2030, assuming the default day-count basis of 30/360.=PRICEMAT(A1, A2, A3, A4, A5, A6)computes the price of a security using the settlement date inA1, maturity date inA2, issue date inA3, coupon rate inA4, yield inA5, and day-count basis inA6.
PV¶
Calculates the present value of a loan or investment based on a constant periodic interest rate and number of payment periods.
-
Purpose: This function is used to determine the current value of a series of future payments or receipts, given a fixed periodic interest rate.
-
Formula:
PV(rate, nper, pmt, [fv], [type]) rateis the interest rate per period.nperis the total number of payment periods.pmtis the payment made each period (must be consistent throughout).fv(optional) is the future value or cash balance desired after the last payment (default is 0).-
type(optional) indicates when payments are due:0= End of the period (default if omitted).1= Beginning of the period.
-
Example Usage:
=PV(0.05/12, 60, -500)calculates the present value of a loan with monthly payments of $500 over 5 years at a 5% annual interest rate. Payments are made at the end of each period, and there is no remaining balance.=PV(A1/12, A2, A3, A4, A5)computes the present value using the interest rate inA1, the number of periods inA2, the payment inA3, the future value inA4, and the payment type inA5.
R¶
RATE¶
Calculates the interest rate per period of a loan or investment.
-
Purpose: This function is used to determine the periodic interest rate required for an investment or loan to achieve a specified future value, given periodic payments, a present value, and the number of periods.
-
Formula:
RATE(nper, pmt, pv, [fv], [type], [guess]) nperis the total number of payment periods in the investment or loan.pmtis the payment made each period (must be consistent throughout).pvis the present value or starting amount of the investment or loan.fv(optional) is the future value or desired balance after the last payment (default is 0).type(optional) indicates when payments are due:0= End of the period (default if omitted).1= Beginning of the period.
-
guess(optional) is your guess for the rate (default is 0.1 or 10%). -
Example Usage:
=RATE(60, -500, 20000)calculates the periodic interest rate for a loan of $20,000 with monthly payments of $500 over 60 months, assuming payments are made at the end of each period.=RATE(A1, A2, A3, A4, A5, A6)computes the periodic interest rate using the total number of periods inA1, the periodic payment amount inA2, the present value inA3, the future value inA4, the payment type inA5, and the initial rate guess inA6.
RECEIVED¶
Calculates the amount received at maturity for a fully invested security.
-
Purpose: This function is used to calculate the amount received at maturity for a security that is purchased at a discount to its face value, given the settlement date, maturity date, discount rate, and security's face value.
-
Formula:
RECEIVED(settlement, maturity, discount, [redemption], [basis]) - settlement: The date when the security is purchased or settled. This is the start date of the investment.
- maturity: The date when the security matures and the investor receives the payment. This must be after the settlement date.
- investment: The amount invested or the initial price paid for the security.
- discount: The annual discount rate of the security (as a decimal or percentage).
-
[basis] (optional): The day count basis used to calculate the interest. Defaults to
0(US 30/360 convention) if omitted. Possible values:0: US (NASD) 30/360.1: Actual/actual.2: Actual/360.3: Actual/365.4: European 30/360.
-
Example Usage:
=RECEIVED(DATE(2023, 1, 15), DATE(2025, 1, 15), 0.05)calculates the amount received at maturity for a security purchased on January 15, 2023, with a maturity date of January 15, 2025, and an annual discount rate of 5%, assuming a redemption value of $100 and the default day-count basis of 30/360.=RECEIVED(A1, A2, A3, A4, A5)computes the maturity amount using the settlement date inA1, the maturity date inA2, the discount rate inA3, the redemption value inA4, and the day-count basis inA5.
RRI¶
Calculates the equivalent interest rate for the growth of an investment.
-
Purpose: This function is used to determine the equivalent annual growth rate of an investment over a specified number of periods.
-
Formula:
RRI(nper, pv, fv) nperis the number of periods during which the investment grows.pvis the present value or the starting amount of the investment.-
fvis the future value or the end amount of the investment. -
Example Usage:
=RRI(10, 1000, 2000)calculates the annual growth rate required for an investment to grow from $1,000 to $2,000 over 10 years.=RRI(A1, A2, A3)computes the equivalent growth rate using the number of periods inA1, the starting value inA2, and the ending value inA3.
S¶
SLN¶
Calculates the straight-line depreciation of an asset for one period.
-
Purpose: This function is used to compute the depreciation of an asset at a constant rate over its useful life.
-
Formula:
SLN(cost, salvage, life) cost: The initial cost or purchase price of the asset.salvage: The value of the asset at the end of its useful life.-
life: The total useful life of the asset (in periods). -
Example Usage:
=SLN(5000, 200, 10)calculates the annual depreciation of an asset with an initial cost of $5,000, a salvage value of $200, and a useful life of 10 years.=SLN(A1, A2, A3)computes the straight-line depreciation using the cost inA1, the salvage value inA2, and the asset's useful life inA3.
SYD¶
Calculates the sum-of-years' digits depreciation of an asset for a specified period.
-
Purpose: This function is used to compute the depreciation of an asset at an accelerated rate over its useful life based on the sum-of-years' digits method.
-
Formula:
SYD(cost, salvage, life, period) cost: The initial cost or purchase price of the asset.salvage: The value of the asset at the end of its useful life.life: The total useful life of the asset (in periods).-
period: The specific period for which depreciation is calculated (must be between 1 andlife). -
Example Usage:
=SYD(5000, 200, 10, 1)calculates the depreciation for the first year of an asset with an initial cost of $5,000, a salvage value of $200, and a useful life of 10 years.=SYD(A1, A2, A3, A4)computes the sum-of-years' digits depreciation using the cost inA1, the salvage value inA2, the asset's useful life inA3, and the period inA4.
T¶
TBILLEQ¶
Calculates the bond-equivalent yield for a Treasury bill.
-
Purpose: This function is used to compute the annualized yield of a Treasury bill based on its discount rate.
-
Formula:
TBILLEQ(settlement, maturity, discount) settlement: The date when the Treasury bill is purchased or settled. This is the start date of the investment.maturity: The date when the Treasury bill matures.-
discount: The discount rate of the Treasury bill (as a decimal or percentage). -
Example Usage:
=TBILLEQ(DATE(2023, 1, 15), DATE(2023, 7, 15), 0.045)calculates the bond-equivalent yield for a Treasury bill purchased on January 15, 2023, with a maturity date of July 15, 2023, and a 4.5% discount rate.=TBILLEQ(A1, A2, A3)computes the bond-equivalent yield using the settlement date inA1, the maturity date inA2, and the discount rate inA3.
TBILLPRICE¶
Calculates the price per $100 face value for a Treasury bill.
-
Purpose: This function is used to compute the price of a Treasury bill based on the settlement date, maturity date, and the discount rate.
-
Formula:
TBILLPRICE(settlement, maturity, discount) settlement: The date when the Treasury bill is purchased or settled. This is the start date of the investment.maturity: The date when the Treasury bill matures.-
discount: The discount rate of the Treasury bill (as a decimal or percentage). -
Example Usage:
=TBILLPRICE(DATE(2023, 1, 15), DATE(2023, 7, 15), 0.045)calculates the price of a Treasury bill with a settlement date of January 15, 2023, a maturity date of July 15, 2023, and a 4.5% discount rate.=TBILLPRICE(A1, A2, A3)computes the price using the settlement date inA1, the maturity date inA2, and the discount rate inA3.
TBILLYIELD¶
Calculates the yield of a Treasury bill.
-
Purpose: This function is used to compute the annualized yield of a Treasury bill based on its settlement date, maturity date, and price.
-
Formula:
TBILLYIELD(settlement, maturity, price) settlement: The date when the Treasury bill is purchased or settled. This is the start date of the investment.maturity: The date when the Treasury bill matures.-
price: The price per $100 face value of the Treasury bill. -
Example Usage:
=TBILLYIELD(DATE(2023, 1, 15), DATE(2023, 7, 15), 98.5)calculates the annualized yield for a Treasury bill purchased on January 15, 2023, with a maturity date of July 15, 2023, and a price of $98.50 per $100 face value.=TBILLYIELD(A1, A2, A3)computes the yield using the settlement date inA1, the maturity date inA2, and the price inA3.
V¶
VDB¶
Calculates the depreciation of an asset for a specified period using the variable declining balance method.
-
Purpose: This function is used to compute the depreciation of an asset at an accelerated rate over multiple periods, where the depreciation rate can vary.
-
Formula:
VDB(cost, salvage, life, start_period, end_period, [factor], [no_switch]) cost: The initial cost or purchase price of the asset.salvage: The value of the asset at the end of its useful life.life: The total useful life of the asset (in periods).start_period: The start of the period for which depreciation is calculated.end_period: The end of the period for which depreciation is calculated.factor(optional): The rate at which the balance declines. If omitted, defaults to 2 (for double-declining balance).-
no_switch(optional): A logical value indicating whether to switch to straight-line depreciation when it is more advantageous. Defaults toFALSE. -
Example Usage:
=VDB(10000, 2000, 5, 0, 1)calculates the depreciation for the first year of an asset with an initial cost of $10,000, a salvage value of $2,000, and a useful life of 5 years.=VDB(10000, 2000, 5, 1, 3, 1.5, TRUE)computes the depreciation from year 1 to year 3 using a factor of 1.5 and without switching to straight-line depreciation.=VDB(A1, A2, A3, A4, A5, A6, A7)computes the variable declining balance depreciation using values from cellsA1throughA7.
X¶
XIRR¶
Calculates the internal rate of return for a series of cash flows occurring at irregular intervals.
-
Purpose: This function is used to compute the internal rate of return (IRR) for a schedule of cash flows that are not equally spaced in time.
-
Formula:
XIRR(cashflows, dates, [guess]) cashflows: An array of cash flow amounts. These can be positive (inflows) and negative (outflows).dates: An array of dates corresponding to the cash flows. The first date in the array is considered the start of the schedule.-
guess(optional): An optional value for the initial guess of the IRR. Defaults to 0.10 (10%) if omitted. -
Example Usage:
=XIRR({-10000, 2750, 4250, 3250, 2750}, {DATE(2023, 1, 1), DATE(2023, 6, 1), DATE(2024, 1, 1), DATE(2024, 6, 1), DATE(2025, 1, 1)})calculates the internal rate of return for a series of cash flows and their associated dates.=XIRR(A1:A5, B1:B5, 0.1)computes the IRR using cash flow data fromA1:A5, corresponding dates fromB1:B5, and an initial guess of 10%.
XNPV¶
Calculates the net present value for a series of cash flows occurring at irregular intervals.
-
Purpose: This function is used to compute the net present value (NPV) for a schedule of cash flows that are not equally spaced in time, using a specified discount rate.
-
Formula:
XNPV(rate, cashflows, dates) rate: The discount rate to apply to the cash flows.cashflows: An array of cash flow amounts. These can be positive (inflows) and negative (outflows).-
dates: An array of dates corresponding to the cash flows. The first date in the array is considered the start of the schedule. -
Example Usage:
=XNPV(0.05, {-10000, 2750, 4250, 3250, 2750}, {DATE(2023, 1, 1), DATE(2023, 6, 1), DATE(2024, 1, 1), DATE(2024, 6, 1), DATE(2025, 1, 1)})calculates the net present value of the cash flows given a 5% discount rate and their respective dates.=XNPV(A1, A2:A6, B2:B6)computes the NPV using the discount rate inA1, cash flow data fromA2:A6, and dates fromB2:B6.
Y¶
YIELD¶
Calculates the annual yield of a security that pays periodic interest.
-
Purpose: This function is used to compute the annualized yield of a security that pays interest periodically, based on the settlement date, maturity date, rate, price, redemption, frequency, and basis.
-
Formula:
YIELD(settlement, maturity, rate, pr, redemption, frequency, [basis]) settlement: The date when the security is purchased or settled. This is the start date of the investment.maturity: The date when the security matures.rate: The annual coupon rate of the security (as a decimal or percentage).pr: The price of the security per $100 face value.redemption: The redemption value per $100 face value.frequency: The number of interest payments per year. Valid values are:1for annual2for semi-annual4for quarterly
-
basis(optional): The day count basis to use. Defaults to0. Valid values are:0for US (NASD) 30/3601for actual/actual2for actual/3603for actual/3654for European 30/360
-
Example Usage:
=YIELD(DATE(2023, 1, 15), DATE(2028, 1, 15), 0.05, 95.0, 100.0, 2)calculates the annual yield of a security purchased on January 15, 2023, with a maturity date of January 15, 2028, a 5% annual coupon rate, a price of $95.00, a redemption value of $100.00, and semi-annual interest payments.=YIELD(A1, A2, A3, A4, A5, A6, A7)computes the annual yield using settlement and maturity dates inA1andA2, the coupon rate inA3, the price inA4, the redemption value inA5, the frequency inA6, and the day count basis inA7.
YIELDDISC¶
Calculates the annual yield of a discounted security (a security that doesn't pay periodic interest but is issued at a discount and matures at face value).
-
Purpose: This function is used to compute the annualized yield of a discounted security based on its settlement date, maturity date, price, and redemption value.
-
Formula:
YIELDDISC(settlement, maturity, pr, redemption, [basis]) settlement: The date when the discounted security is purchased or settled. This is the start date of the investment.maturity: The date when the discounted security matures.pr: The price of the discounted security per $100 face value.redemption: The redemption value per $100 face value (usually $100).-
basis(optional): The day count basis to use. Defaults to0. Valid values are:0for US (NASD) 30/3601for actual/actual2for actual/3603for actual/3654for European 30/360
-
Example Usage:
=YIELDDISC(DATE(2023, 1, 15), DATE(2023, 7, 15), 98.5, 100)calculates the annual yield for a discounted security purchased on January 15, 2023, with a maturity date of July 15, 2023, a price of $98.50, and a redemption value of $ 100.=YIELDDISC(A1, A2, A3, A4, A5)computes the yield using the settlement date inA1, the maturity date inA2, the price inA3, the redemption value inA4, and the basis inA5.
YIELDMAT¶
Calculates the annual yield of a security that pays interest at maturity.
-
Purpose: This function is used to compute the annualized yield of a security that pays interest at maturity, based on its settlement date, maturity date, issue price, redemption value, and day count basis.
-
Formula:
YIELDMAT(settlement, maturity, issue, rate, pr, [basis]) settlement: The date when the security is purchased or settled. This is the start date of the investment.maturity: The date when the security matures.issue: The date when the security was originally issued.rate: The annual coupon rate of the security (as a decimal or percentage).pr: The price of the security per $100 face value.-
basis(optional): The day count basis to use. Defaults to0. Valid values are:0for US (NASD) 30/3601for actual/actual2for actual/3603for actual/3654for European 30/360
-
Example Usage:
=YIELDMAT(DATE(2023, 1, 15), DATE(2028, 1, 15), DATE(2020, 1, 15), 0.05, 95.0, 0)calculates the annual yield of a security that was issued on January 15, 2020, purchased on January 15, 2023, with a maturity date of January 15, 2028, a 5% annual coupon rate, a price of $95.00, and using the US (NASD) 30/360 day count basis.=YIELDMAT(A1, A2, A3, A4, A5, A6)computes the annual yield using settlement and maturity dates inA1andA2, the issue date inA3, the coupon rate inA4, the price inA5, and the day count basis inA6.