close

Hi,

I am using the following equation as my Profitability Index:

{=IF(ISERROR(-NPV(Rate, IF(SIGN(CF)=1, CF, 0))/NPV(Rate, IF(SIGN(CF)=-1, CF,
0))),
quot;Not Applic.quot;,
-NPV(Rate, IF(SIGN(CF)=1, CF, 0))/NPV(Rate, IF(SIGN(CF)=-1, CF, 0)))}

Rate=discount rate
CF=cash flow

I am simply taking NPV of positive values divided by NPV of negative values.
And if there is an error, a quot;Not Applicquot; note is displayed.

This is for a large project that spans more than one year during its
construction. So NPV of negative values is necessary.

Although the current equation works, is there a more elegant way of writing
this equation? Perhaps something that doesn't use formula arrays.

Thank you.

Best regards,
Kevin

Try ...

={-NPV(Rate,max(SIGN(CF),0))/NPV(Rate,(Min(SIGN(CF),0)}

I think using max and min is much more faster then the if statement.

Samo ... good luck--
Samo
------------------------------------------------------------------------
Samo's Profile: www.excelforum.com/member.php...oamp;userid=34413
View this thread: www.excelforum.com/showthread...hreadid=541868gt; Try ...
gt;
gt; ={-NPV(Rate,max(SIGN(CF),0))/NPV(Rate,(Min(SIGN(CF),0)}
gt;
gt; I think using max and min is much more faster then the if statement.
gt;
gt; Samo ... good luck
gt;

Samo,

Thank you for your help.

Best regards,
Kevin

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 software 的頭像
    software

    software

    software 發表在 痞客邦 留言(0) 人氣()