+ Reply to Thread
Results 1 to 15 of 15

SUMIFS Formula with Dates Not Working

  1. #1
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    SUMIFS Formula with Dates Not Working

    I'm trying to sum gross amounts (L13:L22) based on 2 criteria -- the first is if the amount is "line haul" (A13:A22) and second is if the date matches a certain MONTH (R13:R22 matches to S13). This is my formula, but it's producing a 0 result.

    =SUMIFS(L13:L22,A13:A22,"Line Haul",R13:R22,"=S13")

    In the attached spreadsheet the formulas are in U13 and U14 (on the 01-03-2020 & 01-10-2020 tabs)

    I'm thinking the problem may lie with my date references (in columns S & R) ... but I'm stumped.

    What am I doing wrong??
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    Re: SUMIFS Formula with Dates Not Working

    Try this:

    =SUMIFS(L13:L22,A13:A22,"Line Haul",R13:R22,S13)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.
    Don't forget to say "thank you" to those who have helped you in your thread. If you wish, you can also reward them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    I had tried that one too, but it also produces a 0 result I just don't get it! lol

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    Re: SUMIFS Formula with Dates Not Working

    OK - so attach a sample workbook, please.

  5. #5
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    Hmmm, I thought I had a attached a workbook .. are you not able to see it?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    Re: SUMIFS Formula with Dates Not Working

    Oops - LOL!!! I'll have a look.

  7. #7
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    Phew .. was getting worried there!! Thank you!!!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    Re: SUMIFS Formula with Dates Not Working

    The values in column R are all 12 - meaning December. Why do you think that any of these match S13?

  9. #9
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    I thought it was just formatting ... Column R is General and Column S is mmm. Even if I change the formatting to match, it's not working ... AND the 12's change to Jan when the formatting is mmm. It's baffling!

  10. #10
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    MS 365 Business (Win 10 - Work) & MS 365 Subscription Insider (Win 10 - Home)
    Posts
    40,647

    Re: SUMIFS Formula with Dates Not Working

    I am seeing a mixture of US and UK style formatting for the dates.

    Let's go back to basics: explain in words what you want that cell to sum and why.

  11. #11
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    I will be adding tabs to the workbook for each week. Within each week, I need to sum all the Gross Amounts for all "line hauls" that were delivered in the current month (U14) and the previous month (U13), based on the Settlement Date (H3) - which is a formula that matches the tab name. I will then be adding formulas in my YTD Summary to reference total line hauls for each month (this formula is not yet created).

  12. #12
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    634

    Re: SUMIFS Formula with Dates Not Working

    01-03-2020


    U13=IF($S13<>"",SUMPRODUCT(($A$13:$A$22=$A$13)*($D$13:$D$22<>"")*(MONTH($D$13:$D$22)=MONTH(S13))*($L$13:$L$22)),"")

    copy down


    01-10-2020

    U13=IF($S13<>"",SUMPRODUCT(($A$13:$A$22=$A$13)*($D$13:$D$22<>"")*(MONTH($D$13:$D$22)=MONTH($S13))*($L$13:$L$22)),"")


    Copy down
    Last edited by CARACALLA; 02-20-2020 at 03:23 PM.

  13. #13
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    OMG!!! THANK YOU, THANK YOU CARACALLA ---- that worked perfectly!!!!!! Wooohooooooo!!!

  14. #14
    Valued Forum Contributor
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    634

    Re: SUMIFS Formula with Dates Not Working

    You are welcome

  15. #15
    Registered User
    Join Date
    04-16-2013
    Location
    Colorado
    MS-Off Ver
    365
    Posts
    72

    Re: SUMIFS Formula with Dates Not Working

    Since "Line Haul" may not always appear on the first row, I had to change your formula to the following ...

    =IF($S13<>"",SUMPRODUCT(($A$13:$A$22="Line Haul")*($D$13:$D$22<>"")*(MONTH($D$13:$D$22)=MONTH(S13))*($L$13:$L$22)),"")

    Even with this change, it works beautifully! Thanks again!!!

+ 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 Formula not working?
    By nimv1 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-22-2018, 07:01 PM
  2. [SOLVED] SumIfs Formula is not working
    By Eaglepi in forum Excel General
    Replies: 6
    Last Post: 09-18-2018, 10:04 AM
  3. Replies: 5
    Last Post: 03-30-2016, 06:01 AM
  4. [SOLVED] SUMIFS formula not working with Dates
    By Bigred25 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-11-2014, 10:25 AM
  5. Sumifs between Dates not working
    By newbi004 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 05:47 AM
  6. sumifs with dates not working
    By paualou76 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-30-2011, 08:33 PM
  7. Sumifs formula not working
    By todd.graff@gmail.com in forum Excel General
    Replies: 6
    Last Post: 09-21-2009, 02:26 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