+ Reply to Thread
Results 1 to 4 of 4

Rolling 12 month return by portfolio using product(if()) array

  1. #1
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Rolling 12 month return by portfolio using product(if()) array

    Hi all,

    This has been giving me fits all afternoon, and would love to get a fresh perspective. I am trying to create a rolling 12 month return by portfolio, but can't get the formula to grab 12 exactly months of returns. Any help is greatly appreciated. Sample spreadsheet attached....

    Thanks, Brad
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,219

    Re: Rolling 12 month return by portfolio using product(if()) array

    Hi Brad,

    Take a look at a Pivot answer where I've grouped by Month and done a running total of the percent numbers. Does this get closer?
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Rolling 12 month return by portfolio using product(if()) array

    Hi Marvin,

    Thanks for the reply. Unfortunately you cannot sum returns. To get a return across more than 1 period you have to geometrically link them (1+Jan Return)*(1+Feb return)-1=jan thru feb return. I may approach the pivot table route later on, however, I'd have to get much more acquainted with them.

    It won't be elegant but the formula is going to look something like this in cell d34 (i hope)...now if i can only figure out the parentheses

    {=PRODUCT(IF((((YEAR(B34)-YEAR(B$21:B$99))*12)+(MONTH(B34)-MONTH(B$21:B$99))<12)*(((YEAR(B34)-YEAR(B$21:B$99))*12)+(MONTH(B34)-MONTH(B$21:B$99))>=0)*(A$21:A$98=A34)*(B$21:B$99<=B34)=1,(1+C$21:C$98),FALSE))-1}

    Brad

  4. #4
    Registered User
    Join Date
    10-16-2012
    Location
    Florida
    MS-Off Ver
    Excel 2013
    Posts
    31

    Re: Rolling 12 month return by portfolio using product(if()) array

    Think this is it...

    =PRODUCT(IF((((YEAR(B33)-YEAR(B$21:B$99))*12)+(MONTH(B33)-MONTH(B$21:B$99))<12)*(((YEAR(B33)-YEAR(B$21:B$99))*12)+(MONTH(B33)-MONTH(B$21:B$99))>=0)*(A$21:A$99=A33)*(B$21:B$99<=B33)=1,(1+C$21:C$99),FALSE))-1

    ctrl-shft-enter

+ 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. Replies: 7
    Last Post: 09-13-2014, 05:37 PM
  2. Replies: 3
    Last Post: 07-16-2014, 02:53 PM
  3. sumproduct for portfolio return
    By ammartino44 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-21-2013, 04:16 PM
  4. Replies: 1
    Last Post: 05-17-2006, 11:55 PM
  5. Replies: 2
    Last Post: 11-30-2005, 04:15 PM

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