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.
Syntax =xl.payment.split(annual_rate, nper, principal, per)
=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
| Name | Required | What to pass |
|---|---|---|
| annual_rate | Required | Annual note rate. |
| nper | Required | Total number of monthly payments. |
| principal | Required | Amount borrowed, positive. |
| per | Required | Which 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
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rate | 6.90% | ||
| 2 | Months | 60 | ||
| 3 | Principal | 25000 | ||
| 4 | Period | 1 | ||
| 5 | Payment | 493.85 | 143.75 | 350.10 |
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.