Scott, thanks, but I also wanted to use this logic to change starting and
ending points for XNPV calculations, such as
XNPV(10%, A1:A4, B1:B4), XNPV(10%, A2:A4, B2:B4), XNPV(10%, A3:A4, B3:B4),
XNPV(10%, A4:A4, B4:B4),
with the range depending on what date I enter in another cell C1 (the date
in C1 would of course correspond to a date in B1 to B4), some kind of
"lookup" function embedded in the XNPV function?
Thanks

Signature
CARMEN HOVENDICK
>
> Carmen Wrote:
[quoted text clipped - 24 lines]
>
> Scott
Maistrye - 22 Jul 2006 19:00 GMT
Carmen Wrote:
> Scott, thanks, but I also wanted to use this logic to change startin
> and
[quoted text clipped - 12 lines]
> --
> CARMEN HOVENDICK
Ok, I'm assuming based on what you said that C1 will equal one of th
values from A1:A4.
Try this formula, and fill down.
=XNPV(10%
OFFSET($B$1,MATCH(A1,$A$1:$A$4,0)-1,0,MATCH($C$1,$A$1:$A$4,0)-MATCH(A1,$A$1:$A$4,0)+1,1)
OFFSET($A$1,MATCH(A1,$A$1:$A$4,0)-1,0,MATCH($C$1,$A$1:$A$4,0)-MATCH(A1,$A$1:$A$4,0)+1,1))
It's a bit long, but basically the OFFSETs set your range to be fro
the starting value corresponding to the row it's in to the ending valu
in C1. Both are identical, except that one is based on B1 and one o
A1.
You will get a #REF error for each row in A that has a date greate
than C1. You might want to put this formula inside of an IF(C1>A1,""
[Above Formula]) to get rid of the #REF error.
Scot