+ Reply to Thread
Results 1 to 7 of 7

Using SUMIFS() with Date criterion.

Hybrid View

Danielcurran Using SUMIFS() with Date... 01-12-2015, 03:11 PM
Ace_XL Re: Using SUMIFS() with Date... 01-12-2015, 03:19 PM
Tony Valko Re: Using SUMIFS() with Date... 01-12-2015, 04:14 PM
FDibbins Re: Using SUMIFS() with Date... 01-12-2015, 03:27 PM
Danielcurran Re: Using SUMIFS() with Date... 01-12-2015, 03:42 PM
FDibbins Re: Using SUMIFS() with Date... 01-12-2015, 03:56 PM
Danielcurran Re: Using SUMIFS() with Date... 01-12-2015, 03:58 PM
  1. #1
    Registered User
    Join Date
    10-28-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    11

    Using SUMIFS() with Date criterion.

    I'm currently working in Excel 2010.

    I'm using this formula
    =SUMIFS(Z2:Z1000588, C2:C999999,"CONN APPLIANCES, INC", R2:R999999,">12/30/14")
    and getting a #VALUE! error.

    I was curious if I'm doing something wrong with the equation. I want to sum up Column Z if Column C is "CONN APPLIANCES, INC" and if Column R is later than 12/30/14.

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Using SUMIFS() with Date criterion.

    Your ranges are inconsistent

    Use SUMPRODUCT
    =SUMPRODUCT(Z2:Z999999*(C2:C999999="CONN APPLIANCES, INC")*(R2:R999999>12/30/14)

    or SUMIFS
    =SUMPRODUCT(Z2:Z999999*,C2:C999999,"CONN APPLIANCES, INC",R2:R999999,">"&12/30/14)
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Using SUMIFS() with Date criterion.

    Quote Originally Posted by Ace_XL View Post

    Use SUMPRODUCT
    =SUMPRODUCT(Z2:Z999999*(C2:C999999="CONN APPLIANCES, INC")*(R2:R999999>12/30/14)
    That gets evaluated as 12 divided by 30 divided by 14 or 0.0285714285714286.

    Better to use a cell to hold the date then refer to that cell.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Using SUMIFS() with Date criterion.

    Also, unless you really need the range to be that long, consider shortening it. A SP with a range that big will tend to slow your file down, is used a lot
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    10-28-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    11

    Re: Using SUMIFS() with Date criterion.

    @Ace_XL - The formula is no longer giving an error but its including days that are less than the given date still. I tested your sumifs formula on a small set of data and it sums anywhere it sees "CONN APPLIANCES, INC" regardless of the date.

    @FDibbins - Its a dynamic table that has 450,000 rows already, I doubt it would ever get to 999,999 rows but i'll take into consideration your tip of shortening the range.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Using SUMIFS() with Date criterion.

    Another thought...

    Put your date in it's own cell, then reference it from the SUMIFS()...
    =SUMIFS(Z2:Z1000588, C2:C999999,"CONN APPLIANCES, INC", R2:R999999,">"&A1)

  7. #7
    Registered User
    Join Date
    10-28-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    11

    Re: Using SUMIFS() with Date criterion.

    Yeah its odd, it works if I reference the date from another cell but it doesn't work if I type out the date, if it works it works though. Thanks for the help guys!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VLOOKUP issue using date as criterion
    By dobbinuk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-24-2014, 08:07 AM
  2. Find value based on item number (first criterion) and date (second criterion)
    By ivan.stajin in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2014, 10:47 AM
  3. [SOLVED] SUMIFS produces a value of 0 when a second criterion is added
    By apkdsmith in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-18-2013, 03:43 AM
  4. Calculating Based on date Criterion
    By andrewc in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-05-2013, 06:34 AM
  5. Replies: 4
    Last Post: 04-24-2012, 11:01 AM

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