+ Reply to Thread
Results 1 to 9 of 9

SUMIFS by Specific Year in Date?

  1. #1
    Registered User
    Join Date
    07-26-2006
    MS-Off Ver
    Office 365
    Posts
    97

    SUMIFS by Specific Year in Date?

    I have a simple but perplexing issue. See attached.
    I am trying to write a formula that will sum by specific year but the date is a month, day, year format.

    In this case, I am not allowed to add a helper column to break out the year. Is there a way to break out the year within date.

    I have been trying to write either SUMIFS of SUMPRODUCT but can't get the syntax right.

    Any feedback helps.

    Thank you in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: SUMIFS by Specific Year in Date?

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,825

    Re: SUMIFS by Specific Year in Date?

    Not certain what all you have tried. This seems to work for me:

    1) =SUMIFS($D$5:$D$15,... --- range to be summed according to following conditions:
    2) criteria range 1 $C$5:$C$15, and the criteria for this condition is in $C$18
    ...,$C$5:$C$15,$C$18,...
    3) criteria range 2 and 3 will test if date is between 1 Jan of year in C and 31 Dec of year in C. DATE() function is a quick way to have a date.
    ...,$E$5:$E$15,">="&DATE(C20,1,1),$E$5:$E$15,"<="&DATE(C20,12,31))

    =SUMIFS($D$5:$D$15,$C$5:$C$15,$C$18,$E$5:$E$15,">="&DATE(C20,1,1),$E$5:$E$15,"<="&DATE(C20,12,31)) Note the mix of relative and absolute references for easy copying.

    Does that work for you?
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Forum Expert Roel Jongman's Avatar
    Join Date
    03-28-2015
    Location
    Netherlands
    MS-Off Ver
    Office 365
    Posts
    1,483

    Re: SUMIFS by Specific Year in Date?

    with a sumifs it would become

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


    also see attachment
    Attached Files Attached Files

  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,193

    Re: SUMIFS by Specific Year in Date?

    Or

    =SUMPRODUCT(($D$5:$D$15)*($C$5:$C$15=$C$18)*(YEAR($E$5:$E$15)=$C20))
    Last edited by JohnTopley; 04-22-2022 at 03:13 PM.
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: SUMIFS by Specific Year in Date?

    For fun:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    copied down

  7. #7
    Registered User
    Join Date
    07-26-2006
    MS-Off Ver
    Office 365
    Posts
    97

    Re: SUMIFS by Specific Year in Date?

    This is it! I was so close.

    My issue was a missing parenthesis. YEAR($E$5:$E$15=$C20) . Thank you!

  8. #8
    Registered User
    Join Date
    07-26-2006
    MS-Off Ver
    Office 365
    Posts
    97

    Re: SUMIFS by Specific Year in Date?

    Perfect. Thanks!

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,426

    Re: SUMIFS by Specific Year in Date?

    You're welcome.



    If you are satisfied with the solution(s) provided, please mark your thread as Solved.


    New quick method:
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

    Or you can use this way:

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save


    You may also want to consider thanking those people who helped you by clicking on the little star at the bottom left of their reply to your question.

+ 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. Replies: 5
    Last Post: 01-19-2022, 09:08 PM
  2. [SOLVED] SUMIFS formula needed when specific month, quarter, or year selected
    By excelteam777 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-25-2021, 09:39 AM
  3. [SOLVED] sumifs with multiple criteria and date range year
    By Gijs in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 10-24-2017, 02:08 AM
  4. Week to date, month to date, year to date using SUMIFS
    By jaredf in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-23-2017, 01:51 PM
  5. Replies: 1
    Last Post: 04-22-2015, 08:08 AM
  6. [SOLVED] SUMIFS and Date Criteria (Month Year etc...) but without helper column?
    By JungleJme in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 01-16-2013, 07:21 AM
  7. [SOLVED] Count days for specific year falling within in multi-year date range
    By jslo2013 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-04-2012, 05:58 PM

Tags for this Thread

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