+ Reply to Thread
Results 1 to 8 of 8

Year To Date Return Formula - automation needed

  1. #1
    Registered User
    Join Date
    07-22-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Year To Date Return Formula - automation needed

    Hi, I am looking for some help before I got absolutely crazy! I am looking for a formula that will let me calculate a YTD return from a list of monthly returns.This is simply a product calculation of the relative returns. My problem is i need something that will recognise the year and when it starts so that when i drag down the formula i dont need to reselect the cells everytime the year changes! ~Any advice will be greatly appreciated!! See attached file.
    Attached Files Attached Files
    Last edited by brains; 07-24-2009 at 10:38 AM. Reason: read forum rules after posting my first thread!

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Year To Date Return Formula - automation needed

    Not sure I follow... are you looking to just Sum B, ie:

    H3: =SUM($B3:INDEX($B:$B,ROWS(B$1:B3)-(MONTH($A3)-1)))

    or

    H3: =SUM(OFFSET($B3,,,-MONTH($A3),1))

    the latter though more succinct is Volatile (Offset)

    or are you looking to do something more complex ? If so can you provide desired output ?

  3. #3
    Registered User
    Join Date
    07-22-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Year To Date Return Formula - automation needed

    I have attached the file again and tried to highlight what i want to do. Basically i want a single formula that i can drag from e3:e31 returning the values shown in D3:d31. The cells in green show that each time the year changes. i need to change the formula manually. I am looking for a formula i can drag from top to bottom that captures the year change in the YTR return calculation....
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-22-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Year To Date Return Formula - automation needed

    I have just realised that that has worked! thankyou so much for your help! I spent days looking at that! Thanks again

  5. #5
    Registered User
    Join Date
    07-22-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Year To Date Return Formula - automation needed

    That is a cool solution. So if that is the YTD formula, how then would i calculate a QTD figure?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Year To Date Return Formula - automation needed

    Not sure which you're using ... I suspect perhaps OFFSET ?

    Using your last sample file, for Qtr:

    F2: =PRODUCT(OFFSET($C2,,,-(1+MOD(MONTH($A2)-1,3)),1))
    copied down

  7. #7
    Registered User
    Join Date
    07-22-2009
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Year To Date Return Formula - automation needed

    you are the man...thanks for that!

  8. #8
    Registered User
    Join Date
    02-03-2013
    Location
    San Francisco
    MS-Off Ver
    Excel 2008 for Mac
    Posts
    8

    Re: Year To Date Return Formula - automation needed

    Hi all,

    Hoping to revive this old thread, it has been very helpful but I'm encountering an issue for accounts without a full first year of performance. Neither the index nor offset formulas work for YTD if I delete the first few months of the year. See attached for an example.. is there any way to get around this?

    YTD Calc Help (1).xls

+ 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