+ Reply to Thread
Results 1 to 3 of 3

Calculate month to date returns, index and match

  1. #1
    Registered User
    Join Date
    06-19-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    30

    Calculate month to date returns, index and match

    Hi

    I would be grateful for someone's help

    I have a spreadsheet with the daily value and percentage change of an index. Column A shows the dates, column B is the value of the index and column C shows the percentage change each day. Cell C2 is the end date (today) of the data range.

    See attached spreadsheet.

    I have a series of calculations on the same worksheet which shows the 1 month, 3 month, 6 month, year to date and returns since inception which work off the date in C2. Therefore as I change the date in C2, the output changes for the 1 month, 3 month etc.

    The problem I have is with the month to date calculation. I have the year to date formulae working correctly, which was solved on here before, see below.

    =SUM(INDEX($B:$B,MATCH($C$2,$A:$A))/(INDEX($B:$B,MATCH(DATE(YEAR($C$2)-1,12,31),$A:$A))))-1

    Can someone help me change this formulae to work for month to date?

    Thanks

    Nick

    A copy of the spreadsheet is attached.
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Calculate month to date returns, index and match

    Try

    =SUM(INDEX($B:$B,MATCH($C$2,$A:$A))/(INDEX($B:$B,MATCH($C$2,$A:$A)-(365/12))))-1

    C+S+E
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Calculate month to date returns, index and match

    Maybe with an pivot table.
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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