+ Reply to Thread
Results 1 to 7 of 7

XIRR and Dates

  1. #1
    Registered User
    Join Date
    07-03-2015
    Location
    Cape Town
    MS-Off Ver
    2013
    Posts
    4

    Cool XIRR and Dates

    Hello

    First post on here - quite happy to have found the site.

    Anycase, I have the following problem: Calculating a monthly return from the following cashflows: In the first calc I use the end dates of the month and the second calc the start dates. Which is the correct one??

    Market Values:
    3/31/2015 337,833,316.28 4/1/2015 337,833,316.28
    4/30/2015 -351,945,656.95 5/1/2015 -351,945,656.95

    Cash flows for month:
    4/16/2015 4,067,094.17 4/16/2015 4,067,094.17
    4/17/2015 4,164,693.78 4/17/2015 4,164,693.78
    4/20/2015 -459,636.00 4/20/2015 -459,636.00
    4/29/2015 227,969.68 4/29/2015 227,969.68

    Return using XIRR: 1.7905% 1.7891%


    If anyone can shed some light on this it would be great

    Liebschki

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: XIRR and Dates

    Quote Originally Posted by Liebschki View Post
    Calculating a monthly return from the following cashflows: In the first calc I use the end dates of the month and the second calc the start dates. Which is the correct one?
    I would use the closing values on the end dates (3/31 and 4/30).

    Quote Originally Posted by Liebschki View Post
    Return using XIRR: 1.7905% 1.7891%
    I do not agree with your method of calculating the (effective) monthly IRR.

    Apparently, your formula is: =(1+XIRR(values,dates))^(30/365) - 1.

    I would use: =(1+XIRR(values,dates))^(1/12) - 1.

    The point is: we want to consider each month to be an equal number of days. 30 is used when the year is consider to have 360 days. But Excel XIRR assumes 365 days per year. So a month is 365/12 days.

  3. #3
    Registered User
    Join Date
    07-03-2015
    Location
    Cape Town
    MS-Off Ver
    2013
    Posts
    4

    Re: XIRR and Dates

    Great, thanks for the insight.

    Another question is then raised: If I specify the date as the last day of the month as suggested, and no "time of day" is specified, what is the default value that excel uses? ie. does 3/31/2015 mean the stroke of midnight as we move from the 30th to the 31st, or the stroke of midnight as we move from the 31st to the 1st? (lol I hope the question is clear?)

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: XIRR and Dates

    According to the help file for the XIRR function (https://support.office.com/en-us/art...b-a303ad9adc9d ), the dates are truncated to integer dates, meaning midnight at the start of that date. So, 3/31/2015 means the stroke of midnight as you move from the 30th to the 31st.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: XIRR and Dates

    Quote Originally Posted by Liebschki View Post
    Another question is then raised: If I specify the date as the last day of the month as suggested, and no "time of day" is specified, what is the default value that excel uses? ie. does 3/31/2015 mean the stroke of midnight as we move from the 30th to the 31st, or the stroke of midnight as we move from the 31st to the 1st?
    Since XIRR ignores the time portion (represented as a decimal fraction), time of day does not matter. You can think of it as the same time of day on each date; whatever time of day you wish. The fact is: 00:00 is midnight, and midnight is the first time of any particular date. So 3/31/2015, 3/31/2015 00:00 and 3/31/2015 12:00 AM are identical: the date is 3/31/2015.

    If you want to incorporate time of day into the IRR calculation (ill-advised, IMHO), you can use SUMPRODUCT to calculate the NPV, and use Solver to determine the IRR that causes the NPV to be (relatively) close to zero. The NPV formula is:

    =SUMPRODUCT(V1:V100/(1+R1)^((D1:D100)-D1))

    where V1:V100 are the values; D1:D100 are the dates (D1 must be the earliest date; otherwise, order does not matter); and R1 is the IRR (initially zero or empty). Set up Solver with the NPV cell as the Objective cell (To Value Of 0), and R1 as the Variable cell. It is prudent to add the Constraint R1 >= -99.99%; some value greater than -100%.

    Since the SUMPRODUCT formula does not truncate V1:V100, any time portion is automagically incorporated into the calculation (again, ill-advised, IMHO).
    Last edited by joeu2004; 07-06-2015 at 11:49 AM.

  6. #6
    Registered User
    Join Date
    07-03-2015
    Location
    Cape Town
    MS-Off Ver
    2013
    Posts
    4

    Re: XIRR and Dates

    Great thanks, you've been of great help.

  7. #7
    Registered User
    Join Date
    07-03-2015
    Location
    Cape Town
    MS-Off Ver
    2013
    Posts
    4

    Re: XIRR and Dates

    Thank you very much indeed

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help with XIRR
    By billyshears in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-09-2015, 11:34 AM
  2. [SOLVED] XIRR vs. IRR
    By bruceisaacson in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2014, 02:52 PM
  3. [SOLVED] XIRR in VBA?
    By Don Wiss in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-10-2011, 03:02 PM
  4. xirr
    By john in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-26-2006, 06:10 AM
  5. To XIRR or Not To XIRR
    By Jonathan in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-17-2006, 10:20 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1