LookupLab
Home › Use Cases › Excel Formulas for Finance & Accounting

Excel Formulas for Finance & Accounting

Loan schedules, interest accrual and month-end reconciliation come down to a handful of formulas. Here are the ones that do the work, with live labs and examples computed by a real spreadsheet engine — plus the sign-convention mistake that makes PMT look “wrong”.

The functions you will actually use

FunctionWhat it does in this workflow
PMTMonthly payment on a loan: rate per period, number of periods, present value.
ROUNDRound currency to 2 decimals — and know when rounding each line vs. rounding the total diverges.
SUMIFSReconciliation totals with multiple conditions (account + date range + status).
XLOOKUPMatch bank-statement lines against your ledger; return a default when unmatched.
IFERRORGuard ratio and margin calculations against #DIV/0! when a base is zero.
DATEDIFComplete days/months/years between dates for interest accrual periods.

Worked examples (engine-computed)

Monthly payment on a $200,000 loan, 5% annual, 30 years
=ROUND(PMT(0.05/12, 360, 200000), 2)
Result: -1073.64 — computed with the same HyperFormula 3.5 engine that powers our labs, not hand-calculated.
Total interest paid over the life of that loan (positive = cost to borrower)
=ROUND(-(PMT(0.05/12,360,200000)*360 + 200000), 2)
Result: 186511.57 — computed with the same HyperFormula 3.5 engine that powers our labs, not hand-calculated.
The mistake to avoid. The PMT sign trap. PMT returns a negative number for a loan payment because it is cash leaving your pocket. It is not a bug. If you need a positive display, wrap it deliberately — =-PMT(...) or =ABS(PMT(...)) — and keep the convention consistent across the whole schedule. Flipping the sign of the loan amount instead silently breaks the interest columns.

Does PMT here match Excel exactly?

For standard loan inputs, yes — PMT implements the same annuity formula Excel uses. Our lab computes it with HyperFormula 3.5 in your browser; the PMT lab documents the sign convention and lets you test your own numbers.

Do I need an add-in for these functions?

No. PMT, ROUND, SUMIFS and IFERROR are built into every modern Excel version. XLOOKUP requires Excel 2021 or Microsoft 365; on older versions use INDEX-MATCH, which works everywhere.

Reconciling loans by hand?

The Loan Reconciliation Workbook ($9, one-time) ships a pre-built amortization schedule with the sign conventions and rounding rules already wired in.

Get the workbook — $9Open the free PMT lab

Other use cases