The NPV function in Google Sheets is a powerful financial tool that allows users to assess the viability of an investment by calculating its net present value. This function considers a series of cash flows that occur over time and applies a discount rate to these future cash flows, enabling users to determine the present value of an investment’s returns.
Syntax
NPV(discount_rate, cash_flow1, [cash_flow2, ...])
- discount_rate: The rate used to discount future cash flows, expressed as a decimal.
- cash_flow1: The first cash flow, representing income or expense to include in the calculation.
- cash_flow2: (Optional) Additional cash flows that will also be part of the overall NPV calculation.
Example #1
=NPV(0.1, 1000, 2000, 3000)
This function calculates the net present value for cash flows of 1000, 2000, and 3000 at a 10% discount rate. The expected result is approximately 4860.84.
Example #2
=NPV(0.05, -5000, 1500, 2500, 3500)
Here, the NPV function is used to evaluate an investment that costs 5000 initially, with subsequent cash inflows of 1500, 2500, and 3500 at a 5% discount rate. The result is about 98.81.
Example #3
=NPV(0.07, 300, 400, 500)
This function computes the net present value of cash flows of 300, 400, and 500 at a 7% discount rate, yielding a result of approximately 1098.64.
Error handling
- NUM! Indicates an invalid numeric value provided for the discount rate or cash flows.
- VALUE! This error occurs if a non-numeric input is supplied in any of the cash flow arguments.
- N/A Appears when there are no cash flows provided, preventing the calculation of NPV.