+ Reply to Thread
Results 1 to 2 of 2

Subroutine for XIRR

  1. #1
    Registered User
    Join Date
    10-10-2010
    Location
    Topeka, Kansas
    MS-Off Ver
    Excel 2007
    Posts
    4

    Subroutine for XIRR

    Suppose 3 columns and 6 rows of a worksheet are
    as follows:

    A B C
    1 AJAX 1 JAN 2008 -400
    2 AJAX 3 FEB 2008 30
    3 AJAX 1 DEC 2009 600
    4 WIDG 2 FEB 2008 -500
    5 WIDG 3 MAR 2009 25
    6 WIDG 1 DEC 2009 740


    XIRR(C1:C3, B1:B3) returns an internal rate of return for
    AJAX

    XIRR(C4:C6, B4:B6) returns an internal rate of return for
    WIDG

    How would one write a VBA subroutine that will do this?

    Note: The number of items increases each period, so
    I need a routine that loops through all the AJAXs, lists
    the IRR in a blank cell, then loops through all the WIDGs
    and lists the IRR in a blank cell. When a blank cell
    is encountered at the bottom of the list--the subroutine
    stops.

    Any help appreciated.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-10-2010
    Location
    Topeka, Kansas
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Subroutine for XIRR

    Attached is an update to this problem, which explains it better. Any advice, pointers to code snippets, etc. most welcomed.

    Charlie100
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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