+ Reply to Thread
Results 1 to 4 of 4

sumif based on dates

  1. #1
    Registered User
    Join Date
    07-23-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    14

    sumif based on dates

    *** Many thanks!!!


    I'm stuck on this formula and it's not returning the right values.

    So this is the structure of what I'm trying to do, I'm looking at EBITDA tab in row 5 which has dates going across, followed by C3 which is a date, and ending with $ amounts in row 7. I'm trying to sum everything in row 7 within the first 12 months of C3. However, when I sum up the first 12 months, it's not return the same value as I am calculating on my calculator.

    This is the formula I have right now:
    SUMIF(EBITDA!$B$5:$CG$5,EOMONTH(C3,12),EBITDA!$B7:$CG7)

    I tried this formula as well, but it's not the same as well:
    SUMIF(EBITDA!$B$5:$CG$5,"<EOMONTH(C3,12)",EBITDA!$B7:$CG7)

    Thanks for the help!
    Last edited by holycowbanana85; 07-23-2012 at 02:18 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sumif based on dates

    So do you want to sum everything from the month of C3 and 12 months previous? (i.e. the past 12 months?)
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    07-23-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: sumif based on dates

    Exactly! This is precisely what I'm trying to do.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: sumif based on dates

    Possibly

    =SUMIF(EBITDA!$B$5:$CG$5,">="&EOMONTH(C3,-13)+1,EBITDA!$B7:$CG7)-SUMIF(EBITDA!$B$5:$CG$5,">"&EOMONTH(C3,0),EBITDA!$B7:$CG7)

    This should sum everything from July 1st, 2011 to July 31, 2012

+ 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