Can I set a range in a formula that based on a variable in another cell?

TTB333

New Member
Joined
Dec 30, 2017
Messages
1
I have a table of annual payments and I want to calculate the net present value of future payments (NPV) as of the “nth” year from now, where “n” is a number that I enter into another cell. I’m trying to calculate a payoff amount at some date in the future.

Let’s say I have 10 years of payments and I want to know what the NPV of all remaining payments will be at the end of year 3 with an 8% discount rate. The formula I’d use is as follows, with “‘{n}” representing the number I’ll enter in another cell:

=NPV(.08,$A${n}:$A$11)

I’d like the beginning of the range - A{n} - to be based off of whatever value I enter at B13 below.

Any ideas on how to do this?


imagepng
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Welcome to the Forum!

Try: =NPV(0.08,INDEX(A1:A11,B13):A11)

If B13 is 3, say, this will give you the value of the payments in years 3 to 11 inclusive. NPV assumes these payments are made at the end of the year, i.e. the NPV value will be at the start of year 3.

If you want the value at the end of year 3, you'll need:

=NPV(0.08,INDEX(A1:A11,B13+1):A11)

Or, if you want to also include the payment at t=4, either:

=NPV(0.08,INDEX(A1:A11,B13+1):A11)+INDEX(A1:A11,B13) , or
=1.08*NPV(0.08,INDEX(A1:A11,B13):A11)
 
Upvote 0

Forum statistics

Threads
1,214,827
Messages
6,121,803
Members
449,048
Latest member
greyangel23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top