XNPV
Financial

Returns the net present value for a schedule of cash flows

Syntax:

=XNPV(rate, values, dates)

Example:

=XNPV(0.09, B2:B5, A2:A5)