Excel IRR and XIRR: Bug analyser

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

Want to conduct a sales-free "basics of money management" session in your office?
I conduct free seminars to employees or societies. Only the very basics and getting-started steps are discussed (no scary math):For example: How to define financial goals, how to save tax with a clear goal in mind; How to use a credit card for maximum benefit; When to buy a house; How to start investing; where to invest; how to invest for and after retirement etc. depending on the audience. If you are interested, you can contact me: freefincal [at] Gmail [dot] com. I can do the talk via conferencing software, so there is no cost for your company. If you want me to travel, you need to cover my airfare (I live in Chennai)

Connect with us on social media


Do check out my books


You Can Be Rich Too with Goal-Based InvestingYou can be rich too with goal based investing

My first 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 customg solutions for your lifestye! 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 want
My second 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 youngearner

The ultimate guide to travel by Pranav Surya

Travel-Training-Kit-Cover 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 ₹199 (instant download)

Create a "from start to finish" financial plan with this free robo advisory software template


Free Apps for your Android Phone

All calculators from our book, “You can be Rich Too" are now available on Google Play!
Install Financial Freedom App! (Google Play Store)
Install Freefincal Retirement Planner App! (Google Play Store)
Find out if you have enough to say "FU" to your employer (Google Play Store)

About Freefincal

Freefincal has open-source, comprehensive Excel spreadsheets, tools, analysis and unbiased, conflict of interest-free commentary on different aspects of personal finance and investing. If you find the content useful, please consider supporting us by (1) sharing our articles and (2) disabling ad-blockers for our site if you are using one. We do not accept sponsored posts, links or guest posts request from content writers and agencies.

Blog Comment Policy

Your thoughts are vital to the health of this blog and are the driving force behind the analysis and calculators that you see here. We welcome criticism and differing opinions. I will do my very best to respond to all comments asap. Please do not include hyperlinks or email ids in the comment body. Such comments will be moderated and I reserve the right to delete the entire comment or remove the links before approving them.

4 thoughts on “Excel IRR and XIRR: Bug analyser

  1. really i do not understand the subject matter due to my limitation , but for my work, i put the last entry as the a/m balance as received or paid as on date in your earlier version of such calculator , and i got the correct figure, i i think. for all practical purpose , i think, that would be enough. i am afraid i may have commented irrelevant without understanding. apologized..

  2. really i do not understand the subject matter due to my limitation , but for my work, i put the last entry as the a/m balance as received or paid as on date in your earlier version of such calculator , and i got the correct figure, i i think. for all practical purpose , i think, that would be enough. i am afraid i may have commented irrelevant without understanding. apologized..

Comments are closed.