+ Reply to Thread
Results 1 to 18 of 18

Calculating Monthly Returns

  1. #1
    Registered User
    Join Date
    06-28-2006
    Posts
    46

    Calculating Monthly Returns

    Hello Everyone!

    Basically, I have a list of dates with respective balances. I am wondering how to get Excel to determine if the end of the month has passed after a certain date and then calculate the return for that month. What is the most efficient way in your opinion?

    Here is a small data sample:

    27/12/2005 06:23 0.3%
    27/12/2005 05:47 -0.6%
    29/12/2005 06:53 1.3%
    04/01/2006 17:55 -0.1%
    09/01/2006 15:35 3.99%
    09/01/2006 15:46 2.54%
    09/01/2006 17:07 1.8%
    12/01/2006 07:12 -2%
    12/01/2006 13:37 1.5%
    12/01/2006 13:39 0.8%
    12/01/2006 13:58 0.01%


    Many thanks,

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    What do you mean with ".. calculate the return for that month." ?

    Is this about opening and closing balances ?

  3. #3
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Hello WinteE,

    Thank you for your query. My apologies if it was unclear.

    What I mean by "monthly return" is the sum of (financial) figures for a month.

    In the data sample, the monthly return for December 2005 would be 1% and for January 2006: 5.1418% .

    What I am trying to find is an excel formula that would consider the dates in the first column, and sum the figures in the second column if they are within the month.

    Many thanks,

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You can extract the month and year from the date by using MONTH() and YEAR(). Join these two together as MONTH()&YEAR() in a separate column next to the date and value.
    Based on the number of the month (1) and year (2006) combined to 12006 you now can use the COUNTIF() function to get the totals by month.

    Erik

  5. #5
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Hello Erik,

    Thank you very much for your reply.

    Assuming that all dates value are in column A, all return values are in column B, and all "month ID" value are in column C, and months (in "mmm/yy" format) are in column D, should it give something like this :

    COUNTIF(B:B, C:C=D1)

    ?

    Many thanks,
    Last edited by duration; 04-28-2007 at 11:12 AM.

  6. #6
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Assumed :
    A4 = date, B4 = return value, C4 = MONTH(A4)&YEAR(A4).
    and so on for lines 2, 3 etc.

    A1 = 1 (monthnumber), B1 = 2006 (year), C1 = =COUNTIF(C4:C100,A1&B1,B4:B100).

    Now C1 will show the total of return values for january 2006.

    To find out what syntax you have to use for a function you better use the function wizard.
    Last edited by WinteE; 04-28-2007 at 10:53 AM.

  7. #7
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    I am not sure to understand, can you please give me an example of what I should input in E1 to get the monthly return for Dec-07... The COUNTIF() returns that there is too many arguments

    I have included a screenshot.

    Many thanks,
    Attached Images Attached Images

  8. #8
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Type in cell E1 =COUNTIF(C:C,C1,B:B)

  9. #9
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Sorry but it returns the "You've entered too many arguments for this function" error message

    Same thing with COUNTIFS()

  10. #10
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    In what country do you live, American or European ? When you are an European citizen you need to replace , by ; in the functions.

  11. #11
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    I live in the UK, and I always use commas "," in functions. I tried with ";" as well and it is actually worse

    I use Excel 2007, do you think this could be the reason?

    Do you think you could zip me your excel sheet and upload it on the forums? that would be very nice!

  12. #12
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    I worked out a little example.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    MAGIC!

    Thank you sooo much! This is beautiful.

  14. #14
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You're welcome.

  15. #15
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    Now I am having troubles with calculating daily returns

    I use the same method, and i add a daily value using the day (DAY) function.

    However, a few days in the year return the same value, example:

    DATE DATE_ID
    21/02/2007 2122007
    02/12/2007 2122007

    Do you have any idea how to solve the issue?

  16. #16
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    =COUNTIF(Range with dates , Date for sum , Range with values).

    As you want the total sum of one particular date you can search on the total date instead of month + year.
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  17. #17
    Registered User
    Join Date
    06-28-2006
    Posts
    46
    i see!

    thank you!

  18. #18
    Registered User
    Join Date
    09-17-2012
    Location
    Kent
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Calculating Monthly Returns

    I have been battling with this for almost a while.Followed the thread,it was helpful in giving me the understanding but did not really help..I was working with daily data for 10 years(2000 to 2010)for my thesis.and I had to convert it to monthly average returns for the FTSE 350.
    I finally found the miracle..PIVOT tables.Wow, if you can understand this aspect of excel you are a winner.

+ 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