+ Reply to Thread
Results 1 to 12 of 12

Week to date, month to date, year to date using SUMIFS

  1. #1
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Week to date, month to date, year to date using SUMIFS

    Hello, please can someone help with my problem. I am trying to create a month to date and year to date formula using SUMIFS. I have managed to do this regarding week to date but struggling with month to date and year to date.

    See example data attached.

    A note on the data is that the weeks and months do not correspond to the actual weeks and months of the year. They are in line with my companies fiscal dates which do not match up to actual weeks in the year etc..

    I reckon it’s a simple solution but my brain is no working anymore!

    I have populated the figures I am trying to reach in cells D10 and D11.

    Appreciate your help, thanks!
    Attached Files Attached Files

  2. #2
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    Try

    Month-to-date

    =SUMIFS('example data'!B:B,'example data'!A:A,">=" &EOMONTH($C$5,-1)+1,'example data'!A:A,"<=" &$C$5)

    Year-to-date

    =SUMIFS('example data'!B:B,'example data'!A:A,">="&DATE($C$2,1,1),'example data'!A:A,"<="&$C$5)

  3. #3
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Week to date, month to date, year to date using SUMIFS

    Thanks John, the year to date formula works but the month to date formula seems to fall short slightly. If I copy your formula I get 256,309, when the result I am looking for is 297,498...

    Thanks again.

  4. #4
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    Check your data: you sum from J5: should be J8!

  5. #5
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Week to date, month to date, year to date using SUMIFS

    Yes that's the start of March in actual terms, but the start of March in 2017 for my company is on 26-Feb. The start of March will also be on a different date in 2016 or 2018 etc.. when referring to my company dates.

  6. #6
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    And how are we to know that month-to data are not a calendar month?

  7. #7
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Week to date, month to date, year to date using SUMIFS

    I'm hoping from introducing help columns in the example data sheet this could be done? I have matched up the company months and company month number of the year in columns E and F that correspond to the actual dates in column A.

    Wish my company just used the normal dates, would make this a lot easier!

  8. #8
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    The easiest way is to have a table with 12 entries giving the Start date of the company months. We can use a simple lookup rather than rely on your "helper" columns

    EDIT: I see the data in "Example" should enable A "lookup": will now change formula.
    Last edited by JohnTopley; 06-23-2017 at 01:06 PM.

  9. #9
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Week to date, month to date, year to date using SUMIFS

    Right got you, see attached a list of our start dates for the month for this year. Thanks!
    Attached Files Attached Files

  10. #10
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    In C6 (Month Start date)

    =INDEX('example data'!$A$2:$A$160,MATCH($C$3&Sheet1!$C$2,'example data'!$E$2:$E$160&'example data'!$G$2:$G$160,0))

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    in C10

    =SUMIFS('example data'!B:B,'example data'!A:A,">="&$C$6,'example data'!A:A,"<="&$C$5)

  11. #11
    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,206

    Re: Week to date, month to date, year to date using SUMIFS

    Update:

    Based on the table you provided, you could replace formula in C6 with

    =VLOOKUP($C$3,'start and end dates'!$E$4:$F$15,2,0)

  12. #12
    Registered User
    Join Date
    05-09-2014
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Week to date, month to date, year to date using SUMIFS

    Thank you John! I will try this out later on and let you know. Appreciate your help

+ 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. Week to date, Month to date, Qtr to date and Year to date
    By Neilesh Kumar in forum Excel General
    Replies: 4
    Last Post: 06-10-2016, 08:53 AM
  2. [SOLVED] Formula to compare date (including month and year) from a listed date to today's date
    By mhewitson15 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-11-2014, 05:31 PM
  3. [SOLVED] Using SumProduct for dates inclusive of Year to Date, Month to date, Quarter to Date
    By cartica in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-26-2014, 04:22 PM
  4. calculating month to date, year to date, week to date
    By labogola in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2014, 05:21 AM
  5. Replies: 1
    Last Post: 12-15-2011, 05:32 AM
  6. how to insert month date year and day of week
    By Sachi Noma in forum Excel General
    Replies: 3
    Last Post: 05-18-2006, 10:10 PM
  7. [SOLVED] how to insert month date year and day of week
    By Sachi Noma in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 05-18-2006, 10:10 PM

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