
π This article includes 1 downloadable practice file β
In this article
Two projects each cost βΉ10 lakh. A pays more early, B more later.
| 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.
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.
Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.
π Practice files for this article
- πPractice workbookTwo projects plus a 24-month SIP, 8 tasks.β¬ XLSX Β· 15 KB
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.
Atul (AJ) builds office-automation and local-first AI tools as Atulya AI, and works with Excel, SAP and Oracle EPM every day. He writes about the shortcuts, macros and automations that actually save time β plus the occasional wacky fact. Videos on YouTube: Lazy Automator AI (@LazyAutomatorAI).
More posts by Atul βStuck on a step? Ask a question and the AI answers using this article.