LAMBDA · Financial

Payment split LAMBDA

xl.payment.split spills the payment, the interest, and the principal for one month. Month 1 of the $25,000 car loan at 6.9% for 60 months is $493.85, $143.75, and $350.10.

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

Syntax =xl.payment.split(annual_rate, nper, principal, per)

xl.payment.split
=LAMBDA(annual_rate, nper, principal, per,
  LET(
    r, annual_rate / 12,
    pmt, PMT(r, nper, -principal),
    interest, IPMT(r, per, nper, -principal),
    principal_paid, PPMT(r, per, nper, -principal),
    HSTACK(pmt, interest, principal_paid)
  )
)

Arguments

NameRequiredWhat to pass
annual_rateRequiredAnnual note rate.
nperRequiredTotal number of monthly payments.
principalRequiredAmount borrowed, positive.
perRequiredWhich month, from 1 through nper.

Examples

First month of the car loan

=xl.payment.split(6.9%, 60, 25000, 1)

Result Payment $493.85, interest $143.75, principal $350.10

=PMT(B1/12,B2,-B3)B5
Split
ABCD
1Rate6.90%
2Months60
3Principal25000
4Period1
5Payment493.85143.75350.10
A picture of the sheet, not a live calculator. C5 and D5 are the rest of the spill.

xl.payment.split is one row of the amortization schedule. For the $25,000 car loan at 6.9% over 60 months, month 1 is a $493.85 payment, of which $143.75 is interest and $350.10 is principal. The interest is exact: 25000 × 0.069 / 12. The other two figures are the currency form of the unrounded PMT and the remainder.

The principal is passed in positive. The LAMBDA negates it for PMT, IPMT, and PPMT so all three results come back positive and add up.

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.payment.split, 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.payment.split(...).

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.

How it works

r is the monthly rate. PMT, IPMT, and PPMT all see -principal. HSTACK spills payment, interest, and principal across three cells. Interest plus principal equals the payment, before currency rounding.

Limits

This is one month, not the whole schedule. xl.mortgage.schedule spills every month. A zero rate makes IPMT return zero and PMT return the level principal, which is fine. You do not need this LAMBDA for that case if a simple division is clearer.