+ Reply to Thread
Results 1 to 10 of 10

SUMIF autofill date criteria

  1. #1
    Registered User
    Join Date
    07-18-2016
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    9

    SUMIF autofill date criteria

    So, I'm trying to use the autofill function in a SUMIF formula.


    this is the base formula.
    =SUMIF($B$5:$B$221,"01/03/2016",$C$5:$C$221)

    I'm trying to get this.
    =SUMIF($B$5:$B$221,"01/03/2016",$C$5:$C$221)
    =SUMIF($B$5:$B$221,"02/03/2016",$C$5:$C$221)
    =SUMIF($B$5:$B$221,"03/03/2016",$C$5:$C$221)

    But, I'm getting this
    =SUMIF($B$5:$B$221,"01/03/2016",$C$5:$C$221)
    =SUMIF($B$5:$B$221,"01/03/2016",$C$5:$C$221)
    =SUMIF($B$5:$B$221,"01/03/2016",$C$5:$C$221)

    It's my first post here so if I'm doing something wrong please tell me.

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

    Re: SUMIF autofill date criteria

    01/03/2016

    What date is that? Is that Jan 3 2016 or Mar 1 2016?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    07-18-2016
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    9

    Re: SUMIF autofill date criteria

    Mar 1 2016

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: SUMIF autofill date criteria

    Maybe something like:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    BSB

  5. #5
    Registered User
    Join Date
    07-18-2016
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    9

    Re: SUMIF autofill date criteria

    I don't know how you did that. But it works!
    Thank you BadlySpelledBuoy

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

    Re: SUMIF autofill date criteria

    Quote Originally Posted by cktoo View Post
    Mar 1 2016
    I would enter the date in a cell:

    A5 = 01/03/2016

    Then do this:

    =SUMIF($B$5:$B$221,A$5+ROWS(A$1:A1)-1,$C$5:$C$221)

  7. #7
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: SUMIF autofill date criteria

    Happy to help

    All it's doing is adding a number to the date you already have.
    ROWS($1:1) counts the number of rows in the range 1:1. In this case 1, then subtracts 1 from that to make zero.
    Because there is a $ before the start row, that remains the same as you drag the formula down but no $ before the end row means that one increments.
    So in the first formula it's adding zero to the date, in the second row it's adding 1 to the date, in the third it's adding 2 etc.

    Hope that helps explain it.

    BSB

  8. #8
    Registered User
    Join Date
    07-18-2016
    Location
    Brazil
    MS-Off Ver
    2016
    Posts
    9

    Re: SUMIF autofill date criteria

    It really does =)
    Your explanation will help me in future works.
    Thanks again!

  9. #9
    Registered User
    Join Date
    12-12-2019
    Location
    Philippines
    MS-Off Ver
    2007
    Posts
    1

    Re: SUMIF autofill date criteria

    Hi. Can you also help me with this?

    I'm trying to get
    =SUMIF(A:A,"6/12/19",C:C)
    =SUMIF(A:A,"7/12/19",C:C)
    =SUMIF(A:A,"8/12/19",C:C)

    But, I am getting this
    =SUMIF(A:A,"6/12/19",C:C)
    =SUMIF(A:A,"6/12/19",C:C)
    =SUMIF(A:A,"6/12/19",C:C)

    I've been searching since yesterday, then I found this thread. Hope you could help me, thanks!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,642

    Re: SUMIF autofill date criteria

    Administrative Note:

    Hello SKVLL and Welcome to Excel Forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original.

    Please see Forum Rule #4 about hijacking and start a new thread for your query.

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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. SUMIF(S) with date criteria
    By jfs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2014, 01:20 PM
  2. [SOLVED] SUMIF within date criteria?
    By loshington in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-24-2013, 10:45 AM
  3. [SOLVED] SUMIF only if matching a date criteria
    By Adsup01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2012, 11:14 PM
  4. [SOLVED] SUMIF by date and one additional criteria
    By ardais in forum Excel General
    Replies: 14
    Last Post: 06-17-2012, 03:37 PM
  5. SumIf using date criteria range and one other criteria
    By DJTMONEY in forum Excel General
    Replies: 1
    Last Post: 04-20-2010, 04:10 PM
  6. help! on sumif w/ date using multiple criteria
    By japorms in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2006, 04:34 PM
  7. Sumif using dynamic date criteria
    By bkube01 in forum Excel General
    Replies: 3
    Last Post: 08-25-2006, 11:11 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