+ Reply to Thread
Results 1 to 3 of 3

SUMIFS function with calculated criteria

  1. #1
    Registered User
    Join Date
    06-07-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 & Office 365
    Posts
    13

    SUMIFS function with calculated criteria

    I'm trying to extend the range of the SUMIFS( ) function criteria field. I could type in "01/31/2013" which would evaluate to TRUE if one of the records in the criteria field was this exact date. What I want is a month-end date (using the eomonth function) so that any date in the range 01/01/2013 through 01/31/2013 would evaluate to 01/31/2013. What I do not want to do is to have to create a dalculate column in the data and use that as a criteria range. I want to use d variable parameter in one step via the SUMIFS( ) function.
    Last edited by RollsWRangler; 06-24-2013 at 10:11 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,719

    Re: SUMIFS function with calculated criteria

    To do that with SUMIFS you can specify the month start and end date, e.g. with dates in column A and amounts to sum in B try

    =SUMIFS(B:B,A:A,">="&DATE(2013,1,1),A:A,"<="&DATE(2013,1,31)
    Audere est facere

  3. #3
    Registered User
    Join Date
    06-07-2012
    Location
    Houston, TX
    MS-Off Ver
    Excel 2010 & Office 365
    Posts
    13

    Re: SUMIFS function with calculated criteria

    Quote Originally Posted by daddylonglegs View Post
    To do that with SUMIFS you can specify the month start and end date, e.g. with dates in column A and amounts to sum in B try

    =SUMIFS(B:B,A:A,">="&DATE(2013,1,1),A:A,"<="&DATE(2013,1,31)
    Thanks! I modified your answer slightly to accommodate the situation where I have in cells A1 through A12 date constants "01/31/2013" through "12/31/2013" and I want to write one formula to copy into B1:B12 as follows:

    ... 'data'!a1:a999,">"&eomonth(a1,-1),'data'!a1:a999,">="&eomonth(a1,0) ...

    Now I can summarize invoices within multiple date ranges, which was where I was headed. Lesson learned 1) multiple criteria for one range, and 2) use ">=" inequality within quoted and append using ampersand to attach a cell reference (which may be complex).

+ 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