+ Reply to Thread
Results 1 to 6 of 6

How to sumifs auto increment date change for a criteria?

  1. #1
    Registered User
    Join Date
    06-14-2016
    Location
    NY, US
    MS-Off Ver
    2010
    Posts
    6

    How to sumifs auto increment date change for a criteria?

    Hi all,

    I'm new to excel forum and trying to learn excel! Thanks for your help in advance.

    I'm trying to do a sumifs based on two criteria, one of the criteria being "date". The formula I have now is this:

    =sumifs(actual_cost, category, "Food", date, "6/14/16")

    Keep in mind the actual_cost, category and date are name range I created.

    I have to do this for 365 days starting 6/14/16, 6/15/16, 6/16/16....and so on.

    Is there a way for the dates to automatically increment so I don't have to manually enter for each date?

    Thanks for any advice!

  2. #2
    Forum Contributor
    Join Date
    06-14-2016
    Location
    Brookland, Arkansas
    MS-Off Ver
    2007,2021
    Posts
    129

    Re: How to sumifs auto increment date change for a criteria?

    There are several things I could think of doing in this situation.

    One idea is:
    If you do not mind having another column, just put your start date that you want in the top row, and drag down. It will increase the date by one every row, then in your formula you can just do a relative reference to the cells with the dates in them. Finally you can hide the column that has that dates in it so you don't have to look at it.

  3. #3
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211

    Re: How to sumifs auto increment date change for a criteria?

    If you don't want a helper column as mention by "TheMechEngineer" then try this...

    =SUMIFS(actual_cost, category, "Food", date, "6/14/16"+ROWS(A$1:A1)-1)

    copy down

  4. #4
    Registered User
    Join Date
    06-14-2016
    Location
    NY, US
    MS-Off Ver
    2010
    Posts
    6

    Re: How to sumifs auto increment date change for a criteria?

    Hi "TheMechEngineer" and "Teethless Mama" - thank you SO MUCH for your advice!

    I'm relatively new to these formula in excel, so bare with me...

    Teethless Mama - thank you for your tips - IT WORKED!!!

    But I want to understand the formula - if you can explain to me?

    =SUMIFS(actual_cost, category, "Food", date, "6/14/16"+ROWS(A$1:A1)-1)

    What does +ROW(A$1:A1)-1 mean? I'm having a hard time understanding this part.

    Your clarification will be so helpful for me!

    THANK YOU AGAIN!!!!

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: How to sumifs auto increment date change for a criteria?

    The ROWS(A$1:A1)-1 acts as a counter so as you drag the formula down you get ROWS(A$1:A1)-1, ROWS(A$1:A2)-1, ROWS(A$1:A3)-1 which returns value of 1-1=0, 2-1=1 , 3-1=2 onwards.

    This adds 0,1,2 to the date in each row so you get 6/14/16, 6/15/16, 6/16/16 .....

  6. #6
    Registered User
    Join Date
    06-14-2016
    Location
    NY, US
    MS-Off Ver
    2010
    Posts
    6

    Re: How to sumifs auto increment date change for a criteria?

    Hi "John Topley" THANK YOU SO MUCH - it makes sense completely!!

    The only thing is that when I tried to drag it down/copy down, the formula doesn't copy downwards..I don't understand why.

    I tried to go into Formula and click the "automatic calculation" but it still doesn't work.

    FYI - If you look at the screenshots - I have two tabs, one tab for daily expense, the 2nd tab for summary of daily expense by category.
    In the daily expense by category (2nd tab), I am using that SUMIFS formula to add up category expense based on input from 1st tab.

    The only way it copies down is if I copy and paste each cell...but not if I want to drag it down....

    Any advice?
    Screen Shot 2016-06-19 at 2.45.58 PM.pngScreen Shot 2016-06-19 at 2.46.21 PM.png
    Last edited by Ftsoi; 06-19-2016 at 02:50 PM. Reason: adding screenshots

+ 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. [SOLVED] sumifs with date & time criteria
    By mamachrissy1028 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2015, 04:56 PM
  2. Auto Increment Date on printing
    By Bealesy1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-23-2015, 11:13 PM
  3. [SOLVED] Sumifs Row equals a date, multiple criteria
    By nickmessick1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2014, 05:45 PM
  4. [SOLVED] SUMIFS + Multi criteria + Date Range
    By eyeope in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-11-2014, 07:43 AM
  5. [SOLVED] SumIfs function in VBA with Date as one criteria
    By Bezzie in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-08-2013, 12:11 PM
  6. [SOLVED] Trying to get the date (Within COUNTIF Formula) to increment when using auto-fill feature.
    By Carmstrong227 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-04-2013, 02:24 PM
  7. auto increment number with date
    By m_k in forum Excel General
    Replies: 6
    Last Post: 03-17-2012, 09:33 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