Excel for Finance Intermediate Lesson 2: NPV, IRR, XIRR and Payback

Excel for Finance Intermediate Lesson 2: NPV, IRR, XIRR and Payback featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min read

πŸ“˜ Excel for Finance Intermediate Β· Lesson 2 of 8

In this article
  1. XIRR for real dates
  2. Practice
  3. Continue learning

Two projects each cost β‚Ή10 lakh. A pays more early, B more later.

Advertisement
Project A Project B
NPV at 10% β‚Ή67,255 β‚Ή99,410
IRR 12.64% 13.01%
Payback Year 4 Year 4
NPV:  =NPV(10%, B3:B7) + B2          ' year-0 outflow added separately
IRR:  =IRR(B2:B7)
Payback year: =XMATCH(TRUE, SCAN(0, B2:B7, LAMBDA(a,v,a+v)) >= 0) - 1
⚠️ NPV() treats the first value as one period away. Including the year-0 investment inside it under-states NPV. Add it outside, as above.

XIRR for real dates

An SIP of β‚Ή10,000 a month for 24 months worth β‚Ή2,85,000 at the end: XIRR uses the actual dates of every flow.

=XIRR(cash_flows, dates)     β†’ 17.24% a year

Invested: β‚Ή2,40,000. Simple “gain / invested” (18.75%) ignores that most money was invested for less than two years; XIRR doesn’t.

πŸ’‘ When NPV and IRR disagree on which project is better (different sizes or timing), go with NPV at your real cost of capital.

Practice

Download the workbook below. Type your formula in the yellow column; the Check column turns green when it matches Excel’s own answer, and the Answers sheet has a working formula for every task. Tax rates and limits in the examples are for practice; verify current rules before real use.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong