Unwalled

Module 3 · Lesson 2 of 3 · Beginner to intermediate

Discounting, returns and debt functions

On this page

Learning objectives

  • Choose periodic or date-aware functions for the timing of cash flows.
  • Check a return estimate with manual discounting.
  • Model a level-payment loan using consistent signs and periods.

Place cash flows on a timeline

In Transactions!E11:E13 enter −100, 55 and 66 USD thousands. The first payment is today. The following two are at the ends of years 1 and 2. At 10%, their present values are 50.00 and 54.5455. NPV discounts its first supplied value one full period, so add the time-zero outlay separately. IRR uses the entire series and seeks a rate where the NPV is zero. The periodic IRR here is about 13.27%. A series with multiple sign changes can have multiple IRRs or no economically useful return. Compare NPV at the decision hurdle and inspect the cash flows rather than relying on the solver alone.

Move the 55 receipt to July 1, 2026, with a January 1, 2026 outlay and the 66 receipt on January 1, 2028. XNPV and XIRR use actual dates and a 365-day discount basis. XNPV uses the first date as time zero and takes the outlay inside the range. Earlier cash lifts XNPV at a positive hurdle. Dates and values must have equal lengths, use real numeric Excel dates and include positive and negative flows. Keep the first date the earliest. XIRR can return #NUM! when it cannot solve for a rate.

Capital budgeting functions
SyntaxWorkbook formulaExpected result
NPV(rate,value1,[value2],…)=NPV(10%,Transactions!E12:E13)+Transactions!E114.5455
IRR(values,[guess])=IRR(Transactions!E11:E13)13.27%
XNPV(rate,values,dates)=XNPV(10%,Transactions!E11:E13,Transactions!D11:D13)≈7.01
XIRR(values,dates,[guess])=XIRR(Transactions!E11:E13,Transactions!D11:D13)≈16.14%

Derive a loan payment and verify direction

A lender advances 100 at inception and receives two equal payments at year end. At 10% annual interest Excel returns 57.6190 per year with an input present value of −100. From a borrower's perspective the cash receipt is +100 and payments are negative. Verify the first payment includes interest of 10 and principal of 47.6190, leaving 52.3810 of debt. The second interest amount is 5.2381, so the second payment clears principal and interest.

Optional fv is the ending balance and defaults to zero for this loan. Optional type is 0 for end-of-period payments, 1 for start. For monthly payments, use 12 × years periods and convert the stated rate to a monthly rate according to its compounding convention. RATE returns a rate per modeled period and solves iteratively. An annual effective rate from a monthly rate compounds over 12 months. Opposite cash-flow signs and aligned timing make the payment and present value agree.

Level-payment and compounding functions
SyntaxWorked formulaOutput
PMT(rate,nper,pv,[fv],[type])=PMT(10%,2,-100)57.619
RATE(nper,pmt,pv,[fv],[type],[guess])=RATE(2,PMT(10%,2,-100),-100)10% per year
PV(rate,nper,pmt,[fv],[type])=PV(10%,2,PMT(10%,2,-100))-100
FV(rate,nper,pmt,[pv],[type])=FV(10%,2,0,-100)121

Lesson glossary

1 term

Time zero
The valuation date from which later receipts and payments are discounted.

Search the module glossary

Workbook exercise

Download the starter workbook (.xlsx)

Build the time-value calculations in the Finance section of Analysis. Compare NPV with XNPV, then change the first receipt date by three months and document the direction of the change.

Unwalled does not store your workbook or your answers.

What is the annual payment on 100 over two years at 10%?

Practice questions

Why add the −100 outside NPV?
A monthly RATE result is 1%. What is the annual effective rate?

Prepare to explain it aloud

Explain why XIRR is preferable when receipts are irregular · Walk through the sign of a lender's loan payment

Editorial references

Unwalled Finance Knowledge Library

  • Chapter 20 · Professional analyst workflow, Excel modeling and quality control