Forum Discussion

Bob_H45's avatar
Bob_H45
Copper Contributor
Nov 28, 2023
Solved

XIRR not working

Hi. I am having problems with the XIRR function in Excel. I have same number of dates / values all formatted properly. I have negative and positive values. I am noticing it works as long as the calcu...
  • JoeUser2004's avatar
    Nov 28, 2023

    Bob_H45 

     

    XIRR has trouble with daily changes, presumably because when we annualize a daily change, it can result in an astronomical value.  (I can investigate further later.)

     

    XNPV does not support non-positive discount rates.  A design flaw, IMHO.

     

    And Goal Seek will not proceed if the value of the "set cell" (=XNPV...) is an Excel error (#NUM) initially.

     

    Use SUMPRODUCT instead.  For example, with J61 initial empty or zero, and the following in J62:

     

    =SUMPRODUCT($G$54:$G$93/(1+J61)^(($F$54:$F$93-$F$54)/365))

     

    Goal Seek derives a discount rate of 20.4577715104322% with the following set-up:

     

    Set cell: J62

    To value: 0

    By changing cell: J61

Resources