FormulaSurge
All articles

Article

Excel IRR NPV PMT

Excel IRR NPV PMT and financial functions - the patterns for valuation loan amortisation and investment analysis.

  • irr
  • npv
  • pmt
  • excel financial functions
3 min readBy
Excel IRR NPV PMT

The financial functions are the foundation of every valuation, loan, and savings model. The ten functions below cover 90% of what the senior uses in any finance engagement. The five mistakes are the ones that quietly break a model - catch them on the mid-build review and the model survives the audit.

The ten functions

  • NPV(rate, value1, value2, ...)

    Net present value of a series of cash flows at a constant discount rate. Assumes equal spacing between cash flows.

    =NPV(0.10, 100, 200, 300, 400) returns 778.12 (assuming period 1 to period 4).

  • XNPV(rate, values, dates)

    Net present value with actual dates. Use this for any cash flow series that is not evenly spaced.

    =XNPV(0.10, {100, 200, 300, 400}, {DATE(2026,1,1), DATE(2026,6,1), DATE(2027,1,1), DATE(2028,1,1)}) returns the NPV with actual day-count.

  • IRR(values, [guess])

    Internal rate of return. The discount rate at which NPV equals zero.

    =IRR({-1000, 300, 400, 500, 600}) returns the periodic rate (about 27% per period).

  • XIRR(values, dates, [guess])

    Internal rate of return with actual dates.

    =XIRR({-1000, 300, 400, 500, 600}, {DATE(2026,1,1), DATE(2026,12,31), DATE(2027,12,31), DATE(2028,12,31), DATE(2029,12,31)}) returns the annual IRR.

  • PMT(rate, nper, pv, [fv], [type])

    Periodic payment of a loan or annuity. Negative if you are paying; positive if you are receiving.

    =PMT(0.05/12, 360, 500000) returns the monthly payment on a 30-year, 5%, ₹5L mortgage.

  • IPMT(rate, per, nper, pv)

    Interest portion of a payment in a specific period.

    =IPMT(0.05/12, 1, 360, 500000) returns the interest in the first month.

  • PPMT(rate, per, nper, pv)

    Principal portion of a payment in a specific period.

    =PPMT(0.05/12, 1, 360, 500000) returns the principal in the first month.

  • FV(rate, nper, pmt, [pv], [type])

    Future value of a series of payments.

    =FV(0.07/12, 12*30, -1000) returns the value of ₹1,000/month for 30 years at 7% annual return.

  • PV(rate, nper, pmt, [fv], [type])

    Present value of a series of payments.

    =PV(0.05, 10, -1000) returns the present value of ₹1,000/year for 10 years at 5% discount rate.

  • RATE(nper, pmt, pv, [fv], [type], [guess])

    Periodic interest rate of an annuity.

    =RATE(360, -1500, 500000) returns the monthly rate on a 30-year, ₹1,500/month, ₹5L loan.

The ten financial functions and what each one returns.

The five mistakes to avoid

  • NPV with the initial investment in the wrong period

    NPV discounts the first cash flow by one period. If the initial investment is at time 0, it must be added separately, not included in the NPV range. The fix: =initial_investment + NPV(rate, cash_flows_from_period_1). The senior puts the initial investment on the Assumptions tab and references it in the formula.

  • Using NPV with irregular dates

    NPV assumes equal spacing. For irregular dates (capital calls, milestone payments), XNPV is the correct function. The fix: pass the dates as a range to XNPV, and ensure the dates are real Excel dates (not text).

  • IRR with no sign change in the cash flows

    IRR requires at least one positive and one negative value in the series. If all cash flows are positive, there is no rate at which NPV equals zero, and IRR returns #NUM!. The fix: check the cash flow series; if all positive, the model is missing the initial investment.

  • PMT with no rate argument

    PMT requires the periodic rate. If the rate is annual, divide by the number of periods per year. The fix: PMT(annual_rate/12, nper*12, pv) for monthly payments on an annual rate. The senior wraps the rate calculation in a named cell to make the formula auditable.

  • Mixing up PV and FV in PMT

    PV is positive if you are receiving (borrowing), negative if you are paying (lending). FV is the future value, usually 0 for a fully-amortised loan. The fix: be explicit about the sign convention. The senior uses comments in the formula bar to document the sign.

The five mistakes that quietly break a financial function.

How the senior wires them together

A senior-built valuation model uses IRR, XIRR, NPV, XNPV, and PMT in different places. The pattern: XIRR for the deal IRR (because deal cash flows are irregular); XNPV for the deal NPV at the target IRR; PMT for any debt service schedule; FV for any earnout calculation. The five functions are on the Assumptions tab, named, and referenced from the calculation tabs. The senior documents each one in the comments field on the named range so the next reader understands the sign convention.

References

  1. [1] Microsoft Support: IRR function
  2. [2] Microsoft Support: NPV function
  3. [3] Microsoft Support: PMT function
Free · 10 minutes · No obligation

Send us the workbook your CFO reads. We will tell you which checks fail.

We run the same seven mechanical checks on every workbook we audit. No judgement calls, no scope creep - just a written list of which numbers you should stop trusting and why. Free, in a written reply within a working day.

  • Hard-coded totals
  • Hidden rows in SUM ranges
  • Headline trace to source
  • Hard-coded assumptions
  • Correct data types
  • Reconciliation to source
  • Fresh refresh timestamp

Want an answer right now? Run the free Workbook X-ray on your file. It checks it in your browser in seconds.

checks.xlsx
Auto-runs on refresh
  1. 01No hard-coded totalsPass
  2. 02Hidden rows in SUM rangesFail
  3. 03Headline traces to sourcePass
  4. 04No hard-coded assumptionsFail
  5. 05Correct data typesPass
  6. 06Reconciled to sourcePass
  7. 07Fresh refresh timestampPass
Checks tab · 7/7Runs on every refresh
JS

Written by

Founder & Principal Consultant · FormulaSurge · 10+ years of hands-on Excel work

Senior Excel practitioner with 10+ years across Power Query, Power Pivot, VBA and financial modeling. The patterns on this page are the same ones I build into client workbooks - fixed scope, fixed price, named owner. Read the full author bio. Stuck on a formula? Get a free fix.

Free tool · 10 sec · runs in your browser

Formula Explainer

Paste any formula and read it in plain English, step by step in the order Excel calculates it.

Open the tool

Related service

Need this built for your team?

See Financial Modeling - fixed price in writing, built end-to-end. Not sure of the scope? A Scoping Sprint ($99 / ₹4,999) gives you an exact quote first.

Read more

10+ years in ExcelNamed senior ownerNDA signedFixed price, in writing30-day support

Frequently asked

Questions readers ask most.

What is the difference between IRR and NPV in Excel?

NPV (Net Present Value) is the absolute value of an investment in today's money. IRR (Internal Rate of Return) is the discount rate at which NPV equals zero. NPV tells you how much value the investment creates. IRR tells you the rate of return. The senior uses both - NPV for absolute decisions, IRR for relative comparison across investments of different sizes.

Why is my IRR returning #NUM!?

Three common causes. (1) The cash flow series has no sign change - IRR requires at least one positive and one negative value, (2) The cash flows are too volatile and Excel cannot converge, (3) The guess argument is too far from the actual IRR. The fix: check the cash flow series, simplify if needed, and provide a guess argument that is close to the expected IRR.

What is the difference between NPV and XNPV?

NPV assumes equal spacing between cash flows. XNPV uses the actual dates. For cash flows that are not evenly spaced, XNPV is the correct function. The senior uses XNPV for any series that includes irregular timing - capital calls, drawdowns, milestone payments. The pattern is the same; only the date input changes.

How do I build a loan amortisation table in Excel?

Five columns: Period, Payment (PMT), Interest (IPMT), Principal (PPMT), Balance. The PMT is the constant payment. The interest is the balance times the periodic rate. The principal is the payment minus the interest. The balance is the previous balance minus the principal. The senior builds the table with 12-360 rows depending on the loan term.

What is the difference between FV and PV?

PV (Present Value) is today's value of a future cash flow. FV (Future Value) is the value of a present cash flow at a future date. The senior uses PV for valuation (what is a future cash flow worth today?) and FV for savings goals (how much will my monthly deposit be worth at retirement?). The two are inverses - PV(FV) returns the original.

What is the RATE function in Excel?

RATE returns the periodic interest rate of an annuity. The syntax is RATE(nper, pmt, pv, [fv], [type], [guess]). The senior uses RATE to find the interest rate when the payment and the present value are known - common in lease analysis, loan analysis, and any situation where the rate is not stated explicitly.

Get a Free Quote

Want this built for your team?

We deliver this kind of work for clients every week. Send your requirements, sample workbook or screenshot - we'll respond with a written scope and fixed price within one working day.

  • Written scope and fixed price before any build work starts
  • Live workbook reviews - you see progress from week one
  • Documented walkthrough and 30-day support at handover
  • Mutual NDA available
Replies within one working day, usually the same day

Calls scheduled in your timezone (UK, EU, US, UAE, APAC) · How a project works

Built for teams in

Industries and cities this work is set up for

Related

Keep reading

10 Excel Functions Every Analyst Should Know

Article

10 Excel Functions Every Analyst Should Know

Master these ten functions and 80% of your daily analysis gets faster

Read
Pivot Tables: From Raw Data to Insights

Article

Pivot Tables: From Raw Data to Insights

Turn thousands of raw Excel rows into a clear answer in under five minutes

Read
Automate Monthly Reports with Excel Macros

Article

Automate Monthly Reports with Excel Macros

Automate monthly Excel reports with Power Query and VBA - from recurring exports and refreshes to PDF delivery. See how to make the workflow reliable, then explore our fixed-scope automation service.

Read
Excel Charts That Tell a Story

Article

Excel Charts That Tell a Story

Choose the right chart and your data explains itself

Read
Power Query: Stop Copy-Pasting From Your Inbox

Article

Power Query: Stop Copy-Pasting From Your Inbox

Replace hours of manual copy-paste with one click - Power Query is the most underrated feature in Excel

Read
VLOOKUP vs XLOOKUP: 7 Differences + 4 Migration Steps (2026)

Article

VLOOKUP vs XLOOKUP: 7 Differences + 4 Migration Steps (2026)

What is the difference between VLOOKUP and XLOOKUP? Side-by-side comparison with 7 concrete differences 4 migration steps 5 real examples and the one reason VLOOKUP is still useful. Updated 2026.

Read
Conditional Formatting That Actually Highlights What Matters

Article

Conditional Formatting That Actually Highlights What Matters

Color scales and data bars are decorative. Use these rules to surface the rows that need action today.

Read
Data Validation: Save Rules and Stop Bad Data at the Door

Article

Data Validation: Save Rules and Stop Bad Data at the Door

How to save data validation rules in Excel, copy them across sheets, and set up drop-downs with dependent lists and custom error messages.

Read
Dynamic Arrays: The Excel Feature You Didn't Know You Had

Article

Dynamic Arrays: The Excel Feature You Didn't Know You Had

FILTER SORT UNIQUE SEQUENCE and the spill range - the modern way to build reports that update themselves.

Read
Designing a KPI Dashboard That People Actually Open

Article

Designing a KPI Dashboard That People Actually Open

Most Excel dashboards die in the 'final' folder. Here is the design checklist we use so yours get opened every Monday.

Read
Excel for CFOs: 7 Reports Every Finance Team Actually Uses

Article

Excel for CFOs: 7 Reports Every Finance Team Actually Uses

A working finance team needs seven reports - not sixty. Here are the seven every controller opens every Monday morning and the Excel pattern behind each one

Read
SUMPRODUCT: 5 Jobs It Does Better Than SUMIFS (2026)

Article

SUMPRODUCT: 5 Jobs It Does Better Than SUMIFS (2026)

The mental model that makes Excel SUMPRODUCT click - 5 jobs it does better than SUMIFS COUNTIFS AVERAGEIF MAXIFS with worked examples and the 4 mistakes to avoid. Updated 2026.

Read
How to Audit a Spreadsheet in 10 Minutes (2026)

Article

How to Audit a Spreadsheet in 10 Minutes (2026)

How to audit a spreadsheet in 10 minutes - the 7-step Excel checklist that catches the common errors before the CFO signs. Updated 2026.

Read
What-If Analysis in Excel: 3 Tools + 5 Examples (2026)

Article

What-If Analysis in Excel: 3 Tools + 5 Examples (2026)

What is What-If Analysis in Excel? Goal Seek Data Tables and Scenario Manager - three built-in tools explained with 5 worked examples for sensitivity break-even and forecasting. Updated 2026.

Read
Excel File Too Slow? 7 Fixes Before You Buy a New Tool

Article

Excel File Too Slow? 7 Fixes Before You Buy a New Tool

Seven fixes in order - turn nine out of ten slow files around before you migrate to Power BI or Tableau

Read
Power Pivot for People Who Hate Power Pivot

Article

Power Pivot for People Who Hate Power Pivot

The most powerful feature in Excel. The one nobody uses. Three concepts and five DAX functions - and the architecture that turns Excel into a real data tool

Read
Excel for CA Firms: 5 Automation Wins

Article

Excel for CA Firms: 5 Automation Wins

Five high-ROI Excel automations Indian CA firms use to eliminate manual GST TDS and ledger reconciliation.

Read
Excel Dashboard for Manufacturing Plant India

Article

Excel Dashboard for Manufacturing Plant India

How to build an executive Excel manufacturing dashboard that tracks daily production yield scrap % and machine downtime.

Read
Power Query Tutorial for Indian Finance Teams

Article

Power Query Tutorial for Indian Finance Teams

Step-by-step Power Query tutorial for Indian finance teams - automate data cleaning and ledger consolidation.

Read
Excel Month-End Close: How Indian SMEs Do It Faster

Article

Excel Month-End Close: How Indian SMEs Do It Faster

How Indian SMEs reduce month-end close from 5 days to under 4 hours using structured Excel pipelines.

Read
Hire a Remote Excel Consultant from India

Article

Hire a Remote Excel Consultant from India

Why US UK EU and APAC businesses hire remote Excel consultants from India - fixed price and overlapping hours.

Read

Article

Offshore Excel Freelancer: Fixed Price vs Hourly

Why fixed-price offshore Excel projects deliver higher ROI than open-ended hourly freelance contracts.

Read
How to Work with a Remote Excel Expert

Article

How to Work with a Remote Excel Expert

A 4-step framework for working seamlessly with a remote Excel specialist on remote engagements.

Read
Excel Consultant for Small Business (US UK AU)

Article

Excel Consultant for Small Business (US UK AU)

Four ways small businesses in the US UK and Australia use custom Excel automation to save thousands.

Read
Excel Financial Model Freelancer Remote

Article

Excel Financial Model Freelancer Remote

What to demand when hiring a remote financial modeling freelancer - FAST standards 3-statement integration and audit checks.

Read
Excel SUMIFS: The Formula That Runs Finance

Article

Excel SUMIFS: The Formula That Runs Finance

Excel SUMIFS formula explained - the workhorse of any finance dashboard. Sum by date range by category by multiple criteria with AND/OR logic. Examples and pitfalls.

Read
INDEX MATCH vs VLOOKUP

Article

INDEX MATCH vs VLOOKUP

INDEX MATCH vs VLOOKUP - structural differences why INDEX MATCH is more flexible and when XLOOKUP replaces both. Examples and migration tips.

Read
Excel LET and LAMBDA Functions

Article

Excel LET and LAMBDA Functions

Excel LET and LAMBDA functions explained - named sub-expressions custom reusable functions and the modern Excel patterns that replace messy nested formulas.

Read
Excel Named Ranges Best Practices

Article

Excel Named Ranges Best Practices

Excel named ranges - best practices for naming scope and structure. The patterns that keep workbooks auditable fast and easy to hand over.

Read
Excel Tables Deep Dive

Article

Excel Tables Deep Dive

Excel Tables deep dive - structured references automatic growth total rows slicers and the patterns that turn plain ranges into auditable data blocks.

Read
Excel IFS and SWITCH

Article

Excel IFS and SWITCH

Excel IFS and SWITCH functions explained - the modern replacements for nested IF formulas. Cleaner syntax easier to read and easier to debug.

Read
Excel TEXTJOIN and CONCAT

Article

Excel TEXTJOIN and CONCAT

Excel TEXTJOIN CONCAT and the rest of the text functions - modern patterns for joining splitting formatting and cleaning text in Excel.

Read
Excel ABC Inventory Analysis

Article

Excel ABC Inventory Analysis

Excel ABC analysis for inventory - classify SKUs by revenue contribution prioritise reorder reviews and cut working capital. Excel pattern with formulas.

Read
Excel RFM Customer Analysis

Article

Excel RFM Customer Analysis

Excel RFM analysis for customer segmentation - Recency Frequency Monetary value and the patterns that drive email and sales targeting. Excel formulas and example.

Read
Excel Cohort Analysis for SaaS

Article

Excel Cohort Analysis for SaaS

Excel cohort analysis for SaaS - retention curves expansion revenue net revenue retention. The pattern that every SaaS founder needs.

Read
Excel Sensitivity Analysis

Article

Excel Sensitivity Analysis

Excel sensitivity analysis with one-input and two-input Data Tables. The pattern that every financial model needs for break-even scenario and what-if analysis.

Read
Excel Keyboard Shortcuts

Article

Excel Keyboard Shortcuts

Excel keyboard shortcuts the senior uses every day - navigation selection formula entry formatting and the hidden shortcuts that save minutes per hour.

Read
Excel for Accountants

Article

Excel for Accountants

Excel for accountants and bookkeepers - the formulas patterns and workbooks that automate the monthly close the reconciliation and the client reporting.

Read
Excel for HR and Payroll

Article

Excel for HR and Payroll

Excel for HR and payroll - the templates and patterns for attendance leave payroll and headcount reporting. India-specific examples with PF ESI and TDS.

Read
Excel for Sales Pipeline

Article

Excel for Sales Pipeline

Excel for sales pipeline and forecasting - deal stages weighted pipeline quota tracking and forecast accuracy. Excel pattern for B2B sales teams.

Read
Excel vs Google Sheets

Article

Excel vs Google Sheets

Excel vs Google Sheets in 2026 - the honest comparison. When to use each the limits of Google Sheets and the patterns that work in both.

Read
Excel vs Power BI

Article

Excel vs Power BI

Excel vs Power BI in 2026 - the honest comparison. When to use each the limits of Power BI and the patterns that work in both.

Read
Excel Sparklines

Article

Excel Sparklines

Excel sparklines - tiny charts inside a single cell. The patterns for KPI tiles trend columns and dashboard compactness.

Read
Excel Combo Charts

Article

Excel Combo Charts

Excel combo charts - bar and line on the same axis with secondary axis for the second metric. The pattern for revenue and margin sales and forecast and any two-metric dashboard.

Read
Excel Waterfall Charts

Article

Excel Waterfall Charts

Excel waterfall charts - the bridge from one number to another. How to build one from scratch the P&L bridge use case and the data layout.

Read
Excel Pivot Charts

Article

Excel Pivot Charts

Excel pivot charts - the visual layer on top of a Pivot Table. The patterns that turn 100K-row tables into one-click dashboards with Slicers and Timelines.

Read
Excel Heatmap Conditional Formatting

Article

Excel Heatmap Conditional Formatting

Excel heatmap with conditional formatting - colour scales data bars and icon sets that turn tables into visual at-a-glance maps. The patterns for cohort schedule and variance analysis.

Read
Excel vs Python Pandas

Article

Excel vs Python Pandas

Excel vs Python Pandas in 2026 - the honest comparison. When to use each the limits of Pandas and the patterns that work in both.

Read
Excel vs Tableau

Article

Excel vs Tableau

Excel vs Tableau in 2026 - the honest comparison. When to use each the limits of Tableau and the patterns that work in both.

Read
Excel Solver for Operations Research

Article

Excel Solver for Operations Research

Excel Solver for operations research - linear programming integer programming transportation assignment and workforce scheduling. The patterns and limits.

Read
Excel Monte Carlo Simulation

Article

Excel Monte Carlo Simulation

Excel Monte Carlo simulation - NORM.INV RAND and the data table pattern that turns a deterministic model into a probabilistic one. Risk analysis in Excel.

Read
Excel FORECAST.ETS

Article

Excel FORECAST.ETS

Excel FORECAST.ETS for seasonal forecasting and FORECAST.LINEAR for trend forecasting. The patterns for sales demand and revenue forecasting.

Read
Excel Linear Regression

Article

Excel Linear Regression

Excel linear regression with SLOPE INTERCEPT TREND RSQ and LINEST. The patterns for trend analysis sensitivity and what-if.

Read
Excel for Project Management

Article

Excel for Project Management

Excel for project management - Gantt charts task trackers resource allocation and status reporting. The patterns for IT construction and consulting projects.

Read
Excel for Restaurant Operations

Article

Excel for Restaurant Operations

Excel for restaurant operations - food cost recipe costing inventory daily sales and the patterns for the modern restaurant chain.

Read
Excel for E-commerce Inventory

Article

Excel for E-commerce Inventory

Excel for e-commerce inventory - multi-channel stock sync SKU master reorder point dead stock and the patterns for the modern D2C brand.

Read
Excel Templates vs Workbooks

Article

Excel Templates vs Workbooks

Excel templates vs workbooks - when to use each the .xltx file format the .xlsx runtime and the patterns for shippable Excel deliverables.

Read
Excel VBA vs Power Query

Article

Excel VBA vs Power Query

Excel VBA vs Power Query - when to use each the limits of VBA and the modern pattern that combines both. The senior-built automation stack.

Read
Excel Protect Sheet

Article

Excel Protect Sheet

Excel Protect Sheet and Protect Workbook - the patterns for locking formulas allowing user input and securing the workbook structure.

Read
Excel Error Handling with IFERROR

Article

Excel Error Handling with IFERROR

Excel error handling with IFERROR and IFNA - the modern pattern that turns #N/A #VALUE! #REF! and #DIV/0! into clean messages.

Read
Excel COPILOT Function Removed: Fix the #NAME? Errors

Article

Excel COPILOT Function Removed: Fix the #NAME? Errors

Microsoft removed the COPILOT worksheet function on 14 September 2026. How to find affected cells, keep the cached results and move to the Copilot pane.

Read
Excel REGEX Functions: REGEXTEST, REGEXEXTRACT, REGEXREPLACE

Article

Excel REGEX Functions: REGEXTEST, REGEXEXTRACT, REGEXREPLACE

Excel's three regex functions with worked examples - validate a GSTIN, extract emails, strip phone numbers - and the compatibility check before sharing.

Read
Excel TRIMRANGE and Trim References (A:.A) Explained

Article

Excel TRIMRANGE and Trim References (A:.A) Explained

TRIMRANGE and the trim-reference operators cut blank rows off range edges - syntax, examples and the mismatched-size trap.

Read
Excel GROUPBY and PIVOTBY: Pivot Tables as Formulas

Article

Excel GROUPBY and PIVOTBY: Pivot Tables as Formulas

GROUPBY and PIVOTBY build a summary table with one formula that recalculates on its own - syntax, five finance examples and what to check before replacing a PivotTable.

Read
Excel IMPORTCSV and IMPORTTEXT: Load a File With One Formula

Article

Excel IMPORTCSV and IMPORTTEXT: Load a File With One Formula

IMPORTCSV and IMPORTTEXT load a CSV or text file into a dynamic array with one formula - syntax, examples and why they are not ready for shared reports yet.

Read

Reading norms

How every article on this blog is written.

Same six rules on every post - from the first 10-functions article to the latest CFO report pattern. The writing matches the work.