Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / March 2006

Tip: Looking for answers? Try searching our database.

Zero or negative rates and XNPV?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
LAHM - 20 Mar 2006 16:38 GMT
Hi,

Does anybody know why XNPV appears not to accept negative rates?

e.g. using the example in the Excel 2003 help: (i.e. amounts = -10000,
2750, 4250, 3250, 2750, dates = 01 Jan 2008, 01 Mar 2008, 30 Oct 2008,
15 Feb 2009, 01 Apr 2009) returns #NUM! for rates 0 or below. That is
=XNPV(0,amounts, dates). However when I composed a VBA function to
duplicate the formula for XNPV, as shown in the help, the value is 3000
when the rate is zero.

thanks,
L.
Niek Otten - 20 Mar 2006 16:58 GMT
=IF(A1-B1<0,"-","")&TEXT(ABS(A1-B1),"hh:mm")

If you want to calculate with it, use just =A1-B1. It will not show the way you want, but further calculations are correct.

Signature

Kind regards,

Niek Otten

> Hi,
>
[quoted text clipped - 9 lines]
> thanks,
> L.
Niek Otten - 20 Mar 2006 17:07 GMT
Sorry, posted reply to another question!
Signature

Kind regards,

> =IF(A1-B1<0,"-","")&TEXT(ABS(A1-B1),"hh:mm")
>
[quoted text clipped - 13 lines]
>> thanks,
>> L.
Daniel CHEN - 20 Mar 2006 17:16 GMT
Your VBA code is right.
If rate = 0, the NPV should be $3000.
If you use 0.0000001 as rate for XNPV function, you also get 3000.
Excel, or Microsoft makes XNPV function work only for positive rate - that's
normal in real world.

Signature

Best regards,
      ---
Yongjun CHEN
=================================
XLDataSoft - Data Analysis Expert, Excel/VBA Specialist
- - - - www.XLDataSoft.com - - - -
Free Excel-Based Data Processing Tool is Available for Download

=================================

> Hi,
>
[quoted text clipped - 9 lines]
> thanks,
> L.
LAHM - 20 Mar 2006 17:49 GMT
Thanks for your reply, that's what I suspected, but it's surprising
that Excel doesn't mention this in the help.  On a related matter, do
you think that the XNPV function would be used or called by the XIRR
function? The reason I ask is because it might explain why XIRR, in the
case of a cashflow which has two possible solutions, one of which is
negative, always appears to return the higher result?

Rgds,

Lachlan.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.