Excel IRR and XIRR: Bug analyser

Published: October 11, 2013 at 7:00 am

Last Updated on

Excel’s IRR and XIRR and simple but excellent tools to estimate the returns from a periodic investment in a volatile instruments (eg. Mutual fund SIP).

Unfortunately, two issues affect its usage:

  •  Bug(s) of unknown origin that make it give the wrong result sometimes.

Read more about this here: XIRR: A Bug? (Thanks to financial planner Hari, for sending me this link)

  • When the cash flow (receipts – payments) becomes small or negative, there are two possibilities
    1. XIRR or IRR gives only one of the many possible solutions

Read more about this here: IRR/XIRR – Excel – Limitations of Calculating Complex Cash Flow Returns

    1. XIRR or IRR simply gives an error
  • A Youtube video sent by Hari, discusses these issues well: A look at Excel’s XIRR function You can read my discussion with the author of the video, if interested.
  • For a slightly more technical account: Sins of IRR

 Q: Can we check the results of IRR and XIRR, spot bug, understand errors and obtain all possible solutions (if they exist) for a given cash flow?

A: Yes you can! With this tool

The Excel IRR and XIRR cash flow returns analyzer

You should use this tool to validate your results if 

  • XIRR gives you an abnormally small or large value, if IRR gives you an abnormally large value
  • The net cash flow (receipts – payments) is less than 1000

How it works

  • Using the mathematical expressions behind Excel functions NPV and XNPV, the analyzer gives you a range between which a possible solution to IRR or XIRR exists. For example if the answer is 10%, the limits of the range will be say, 5% to 15%.
  • This way all possible solutions ranges are determined.
  • Then for a given range, the solution is calculated using Excel’s GoalSeek
  • Using the GoalSeek result as a guess, the XIRR and IRR are calculated.

The analyzer allows you to check if results given by XIRR and IRR are unique and gives you the range between which all return solutions for a given cash flow exist.

Download the Excel IRR and XIRR Solution Analyzer

Do share if you found this useful
Share your thoughts on this topic at the  Reddit freefincal_user_forum

Reach your financial goals like a pro! Join our 1600+ Facebook Group on Portfolio Management! You can now reduce fear, doubt and uncertainty while investing for your financial goals! Sign up for our lectures on goal-based portfolio management and join our exclusive Facebook Community. The 1st lecture is free!
Want to check if the market is overvalued or undervalued? Use our market valuation tool (will work with any index!) or you buy the new Tactical Buy/Sell timing tool!
About the Author Pattabiraman editor freefincalM. Pattabiraman(PhD) is the founder, managing editor and primary author of freefincal. He is an associate professor at the Indian Institute of Technology, Madras. since Aug 2006. Connect with him via Twitter or Linkedin Pattabiraman has co-authored two print-books, You can be rich too with goal-based investing (CNBC TV18) and Gamechanger and seven other free e-books on various topics of money management. He is a patron and co-founder of “Fee-only India” an organisation to promote unbiased, commission-free investment advice. He conducts free money management sessions for corporates and associations on the basis of money management. Previous engagements include World Bank, RBI, BHEL, Asian Paints, Cognizant, Madras Atomic Power Station, Honeywell, Tamil Nadu Investors Association. For speaking engagements write to pattu [at] freefincal [dot] com
About freefincal & its content policy Freefincal is a News Media Organization dedicated to providing original analysis, reports, reviews and insights on developments in mutual funds, stocks, investing, retirement and personal finance. We do so without conflict of interest and bias. Follow us on Google News Freefincal serves more than one million readers a year (2.5 million page views) with articles based only on factual information and detailed analysis by its authors. All statements made will be verified from credible and knowledgeable sources before publication. Freefincal does not publish any kind of paid articles, promotions or PR, satire or opinions without data. All opinions presented will only be inferences backed by verifiable, reproducible evidence/data. Contact information: letters {at} freefincal {dot} com (sponsored posts or paid collaborations will not be entertained)
Connect with us on social media
Our publications

You Can Be Rich Too with Goal-Based Investing

You can be rich too with goal based investingPublished by CNBC TV18, this book is meant to help you ask the right questions, seek the right answers and since it comes with nine online calculators, you can also create custom solutions for your lifestyle! Get it now. It is also available in Kindle format.
Gamechanger: Forget Startups, Join Corporate & Still Live the Rich Life You Want Gamechanger: Forget Start-ups, Join Corporate and Still Live the Rich Life you wantThis book is meant for young earners to get their basics right from day one! It will also help you travel to exotic places at low cost! Get it or gift it to a young earner

Your Ultimate Guide to Travel

Travel-Training-Kit-Cover-new This is a deep dive analysis into vacation planning, finding cheap flights, budget accommodation, what to do when travelling, how travelling slowly is better financially and psychologically with links to the web pages and hand-holding at every step. Get the pdf for Rs 199 (instant download)
Free android apps