Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
DesM
 
Posts: n/a
Default referencing cols in functions - NPV


I have an NPV calculation where I want to be able to change the number
of years for the NPV calculation by inputting different numbers into a
single cell (instead of having to change the range in the NPV formula
each time).
I have the years 1-8 in range C1:J1 and the yearly returns in C2:J2. In
A2 I have =NPV(8%,C2:J2). I want to use a cell (say A5) reference
instead on "J2" in this function.
So, if I enter 8 in A5 the NPV will sum the investment for 8 years
Can somebody help?
DesM


--
DesM
------------------------------------------------------------------------
DesM's Profile: http://www.excelforum.com/member.php...o&userid=24121
View this thread: http://www.excelforum.com/showthread...hreadid=377432

  #2   Report Post  
N Harkawat
 
Posts: n/a
Default

=NPV(8%,OFFSET(C2,0,0,1,A5))
will provide the NPV @ 8% for the range C2:J2 if A5=8


"DesM" wrote in message
...

I have an NPV calculation where I want to be able to change the number
of years for the NPV calculation by inputting different numbers into a
single cell (instead of having to change the range in the NPV formula
each time).
I have the years 1-8 in range C1:J1 and the yearly returns in C2:J2. In
A2 I have =NPV(8%,C2:J2). I want to use a cell (say A5) reference
instead on "J2" in this function.
So, if I enter 8 in A5 the NPV will sum the investment for 8 years
Can somebody help?
DesM


--
DesM
------------------------------------------------------------------------
DesM's Profile:
http://www.excelforum.com/member.php...o&userid=24121
View this thread: http://www.excelforum.com/showthread...hreadid=377432



  #3   Report Post  
cscorp
 
Posts: n/a
Default


Hi :)

Please, try this:


NPV(ir,OFFSET(C2,0,0,1,A5) )

Whe
ir: Is the interest rate, or a reference to the cell that contains the
interet rate.
c2: Initial reference for the initial year of the returns.
A5: Reference to the cell that contains the number of years to
consider.

Hope it helps!

Juan Carlos


--
cscorp
------------------------------------------------------------------------
cscorp's Profile: http://www.excelforum.com/member.php...o&userid=24015
View this thread: http://www.excelforum.com/showthread...hreadid=377432

  #4   Report Post  
DesM
 
Posts: n/a
Default


Fantastic. I have spent hours trying to sort this out and overnight I
get two fantastic replies.
I have more books on Excel and none of them mention that you can do
this with offset.
Thank you both very much.
Des M


--
DesM
------------------------------------------------------------------------
DesM's Profile: http://www.excelforum.com/member.php...o&userid=24121
View this thread: http://www.excelforum.com/showthread...hreadid=377432

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PASTE DOWN FUNCTIONS jackle Excel Worksheet Functions 0 May 25th 05 02:10 PM
how do i flip a column round in excel? shockwave_dave Excel Discussion (Misc queries) 5 April 5th 05 08:18 PM
3 questions about automated c++ com add-in worksheet functions gert Excel Worksheet Functions 0 March 10th 05 09:57 AM
Functions referencing unopened workbooks VB Newbie Excel Worksheet Functions 1 January 27th 05 01:11 AM
# of Functions per cell SUB-ZERO Excel Worksheet Functions 3 January 23rd 05 10:35 PM


All times are GMT +1. The time now is 02:03 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"