Cellgrids Cellgridsby LearnWithRinkesh
Home › Excel tutorials › NPV Function in Excel (Net Present Value)

How to Use the NPV Function in Excel to Check if an Investment Is Worth It

By Rinkesh Shah · Business Analyst, 8 years in data · Updated 2026-10-31

▶ Video coming soon

Money today is worth more than the same money next year. NPV brings future cash flows back to today's value using a discount rate. If the total is positive, the project earns more than your required return.

Syntax

=NPV(rate, value1, [value2], ...)

The rate is the discount rate per period, such as 10% a year.

The mistake almost everyone makes

NPV assumes the first value is received at the end of period 1. The money you spend today (period 0) must therefore be added separately, not placed inside NPV.

Worked example

You invest 100,000 today. You expect 30,000, 40,000, 50,000 and 40,000 over the next four years. Discount rate is 10%. Cash flows are in C3:C6 and the investment is in C2 as a negative number (-100000).

=NPV(10%, C3:C6) + C2

The four inflows are worth about 125,200 in today's money, so the result is about +25,200. The project is worth doing at a 10% required return.

NPV, XNPV and IRR

Common mistakes

Worked example

Rate 10% in B1, cash flows for years 1 to 3 in B3:B5 (3000, 4000, 5000), initial investment of 8000. =NPV(B1,B3:B5)-8000. NPV discounts from period 1, so subtract the initial cost separately.

Common mistakes

Frequently asked questions

What does a positive NPV mean?

The project earns more than the discount rate.

NPV or XNPV?

XNPV uses actual dates for irregular cash flows.

What rate should I use?

The required return or cost of capital for the project.

Practice this online, free

Reading is only half of learning Excel. Cellgrids is a free place for online Excel practice: solve Excel formula exercises in a live spreadsheet, prepare for Excel interview questions, and work through business case studies built for data analytics and business analytics roles.

Practice these formulas: NPV, PMT, RATE.

Start Excel practice → Case studies