Menu

#28 XIRR Function Undefined

open
nobody
None
5
2010-12-05
2010-12-05
Cerin
No

XIRR is a standard Excel function. However, when I try to use it inside a Formula() call, I get the error "unknown function: XIRR", because it's undefined in the file ExcelMagic.py

Unfortunately, where these numbers come from appears to be undocumented, so I have no idea how I'd add an entry for the XIRR formula. Please advise.

Discussion

  • Anonymous

    Anonymous - 2011-02-04

    XIRR is NOT a "standard function". It is part of the "Analysis ToolPak" aka ATP add-in kit. As such, it can't be invoked by the standard function mechanism in pyExcelerator. Consider moving to xlwt (maintained, enhanced fork of pyExcelerator).

     
  • Cerin

    Cerin - 2011-02-04

    I don't actually use Microsoft Excel, so I'm not aware of the various add-in kits. I meant XIRR is a standard function in that it's supported out-of-the-box in OpenOffice.

    I did evaluate xlwt. However, it doesn't support XIRR either, and hasn't been updated in nearly 2 years, so it's hardly more maintained.

     
  • John Machin

    John Machin - 2011-04-06

    Yes, xlwt needs a new release. xlwt is maintained, and is receiving enhancements. See www.python-excel.org. See the SVN repo at https://secure.simplistix.co.uk/svn/xlwt/trunk/

    AND xlwt 0.7.2 (the latest release) DOES include XIRR ... you must have downloaded an antique version; go to http://pypi.python.org/pypi/xlwt

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.