+ Reply to Thread
Results 1 to 4 of 4

SUMIF based on multiple date criteria

  1. #1
    Registered User
    Join Date
    08-23-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    SUMIF based on multiple date criteria

    I have a somewhat suitable formula to enter values based on multiple criteria into a worksheet from other worksheets in my workbook.

    Please Login or Register  to view this content.
    I would like to know if there is anyway i can use a cell reference to the dates i specified in row 1 of cashflow worksheet, rather than manually entering in the dates in the formula. This will help when i have to change the dates in row 1. I tried to enter C1 and D1 as "datevalue" to see if that would help...

    Any suggestions are appreciated.
    Attached Files Attached Files
    Last edited by titantough; 06-13-2011 at 03:02 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 multiple date criteria

    Replace the whole Data function with just the cell reference.

    e.g.

    SUMIF(Labour!CASHFLOW_LABOUR_DATE,"<="&D$1,......
    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
    08-23-2010
    Location
    Alberta, Canada
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: SUMIF based on multiple date criteria

    Well, wasn't that easy? Are you able to tell me why i need the "&" symbol in my formula?

    Thanks so much

  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 multiple date criteria

    I am not sure how to explain it, but with Sumif and Countif and other 2007 counterparts... Averageif, Countifs, Sumifs, you have to enclose conditions within quotes except for when doing a direct reference like such as you are doing. You also had it in your original formula where the operator "<=" was enclosed in quotes, but the DATE() function wasn't it, since it itself was being evaluated.. and if it were in the quotes, it would not be evaluated.... Excel is funny that way....

+ 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