LAMBDA · Financial

Compound growth LAMBDA

xl.compound.fv returns the future balance of a starting amount and a monthly deposit. $8,000 and $300 a month at 5% for 15 years is $97,096.31.

Microsoft 365, Excel 2024, and Excel for the web. Excel 2021 does not have LAMBDA.

Download the workbook

Syntax =xl.compound.fv(present, annual_rate, years, monthly, [compounds], [when])

xl.compound.fv
=LAMBDA(present,annual_rate,years,monthly,[compounds],[when],
  LET(
    n, IF(ISOMITTED(compounds), 12, compounds),
    t, IF(ISOMITTED(when), 0, when),
    IF(OR(NOT(ISNUMBER(n)), n<=0, NOT(ISNUMBER(years)), years<0, AND(t<>0, t<>1)), NA(),
      FV(IF(annual_rate=0, 0, IF(n=12, annual_rate/12, (1+annual_rate/n)^(n/12)-1)), years*12, -monthly, -present, t))
  )
)

Arguments

NameRequiredWhat to pass
presentRequiredAmount already saved, as a positive number. The minus sign that FV expects lives inside the name.
annual_rateRequiredNominal annual rate. 5% is 0.05, or a cell formatted as a percent. This is not an APY. A zero rate returns the deposits plus the starting balance.
yearsRequiredHow many years. The name multiplies by 12, so 15 is 180 monthly deposits. A negative year count returns
monthlyRequiredDeposit each month, as a positive number. Use 0 when you are only growing a lump sum.
compoundsOptionalTimes the nominal rate compounds each year. 1 is annual, 4 is quarterly, 12 is monthly, and 365 is daily. Omit it and the name uses 12. Any positive number is allowed. Zero or less returns
whenOptional0, the default, deposits at the end of each month. 1 deposits at the beginning. Anything else returns

Examples

$8,000 already saved, $300 at the end of each month, 5% compounded monthly, 15 years

=xl.compound.fv(8000, 0.05, 15, 300)

Result $97,096.31

The same plan, with each deposit at the beginning of the month

=xl.compound.fv(8000, 0.05, 15, 300, 12, 1)

Result $97,430.43

The same deposits, with the 5% nominal rate compounded daily

=xl.compound.fv(8000, 0.05, 15, 300, 365, 0)

Result $97,189.39

A zero rate on that same 15-year plan

=xl.compound.fv(8000, 0, 15, 300, 12, 0)

Result $62,000.00

=FV(B2/12,B3*12,-B4,-B1)B5
Fifteen years
AB
1Starting balance8000
2Annual rate5%
3Years15
4Monthly deposit300
5Future value$97,096.31
A picture of the sheet, not a live calculator. B2 stores 5% as 0.05. The future-value formula negates the deposit and the starting balance so the result is positive. Currency format shows $97,096.31.

xl.compound.fv is the balance after a run of monthly deposits on top of money already saved. On $8,000, with $300 at the end of each month and a 5% nominal rate compounded monthly, 15 years ends at $97,096.31. The arguments are positive. The sign convention that FV uses stays inside the name.

The 5% is the sample nominal rate on the FV page and on How to calculate compound interest in Excel. It is not a quoted savings yield. This is not a forecast, and it is not tax, legal, or lending advice.

Add it to the workbook

Copy the formula in the block above, including the line breaks. Choose Formulas, Name Manager, New. Set the name to xl.compound.fv, the scope to Workbook, and paste into Refers to. Excel Labs can do the same step: open the Advanced Formula Environment, add that name, and save it back to the workbook. A cell then calls =xl.compound.fv(...). Leave the last two arguments out for monthly compounding and an end-of-month deposit. The brackets on compounds and when make those arguments optional, and ISOMITTED is the test that supplies 12 and 0. Pass both when the deposit lands at the beginning of the month.

The sample workbook, with the name already saved, is compound-growth.xlsx. Its Future value column is the Excel 2021 formula below, aimed at the yellow inputs. In Microsoft 365 that column can be =xl.compound.fv(B5,C5,D5,E5,F5,G5).

The name needs Microsoft 365, Excel 2024, or Excel for the web. Excel 2021 returns #NAME? for LAMBDA even when it already has XLOOKUP, FILTER, or LET. With the starting balance in B2, the nominal annual rate in C2, the years in D2, the monthly deposit in E2, the compounds per year in F2, and the timing in G2, Excel 2021 can use this instead:

=IF(OR(NOT(ISNUMBER(F2)),F2<=0,NOT(ISNUMBER(D2)),D2<0,AND(G2<>0,G2<>1)),NA(),FV(IF(C2=0,0,IF(F2=12,C2/12,(1+C2/F2)^(F2/12)-1)),D2*12,-E2,-B2,G2))

The 15-year sample, written out with the numbers, is the FV page’s formula:

=FV(0.05/12, 15*12, -300, -8000)

How it works

Monthly deposits need a monthly rate. When the nominal rate compounds 12 times a year, that rate is the annual rate divided by 12. The sample is 0.05/12, and FV of that rate for 180 months is 97,096.31459…, which currency format shows as $97,096.31.

Any other compounding schedule is converted to the monthly rate that grows the same way over one month. Annual compounding uses (1+0.05)^(1/12)-1. Daily compounding uses (1+0.05/365)^(365/12)-1, with 365 days in the year. Quarterly uses 4. FV then runs the monthly deposits at that equivalent rate. A beginning-of-month deposit is FV’s type argument, 1. The starting balance is already there at the beginning, so the timing flag moves only the deposits.

A zero nominal rate skips the power. FV returns the starting balance plus the deposits. On this sample that is $62,000.

The effective annual rate of 5% compounded monthly is (1+0.05/12)^12-1, about 5.116%. EFFECT returns that figure. It already includes the compounding. Passing it into this name as if it were a new nominal rate compounds twice.

Limits

The deposits are monthly even when the quoted rate compounds annually, quarterly, or daily. A deposit on a particular calendar day, a leap day, or a rate that changes midyear is a different model. Years are turned into months by multiplying by 12. Inflation is not subtracted. Nothing here is a tax-deferred account. A traditional IRA, a Roth IRA, and a taxable brokerage do not grow the same way after tax.

xl.cagr is the rate between two amounts when nothing is deposited in the middle. A balance with deposits along the way is this name, not a CAGR. The retirement calculator is a separate workbook. Its sample is ten year-end deposits of $24,500, not this monthly plan.