SUMFIS btwn dates

I am scratching my head because this is a simple formula I have used in the past, but I cannot figure out why this is returning 0 when there are 2 values that should be summed in this period:

=SUMIFS(Amount:Amount, Date:Date, <=DATE(2024, 6, 30), Date:Date, >DATE(2024, 3, 31))

Best Answer

  • SSFeatures
    SSFeatures ✭✭✭✭✭
    Answer ✓

    If you right click on the Date column and go to "Edit Column Properties", what is the Column Type? Is it Date or is it Text/Number?

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

Answers

  • SSFeatures
    SSFeatures ✭✭✭✭✭

    Hi @Btrombler ,

    I just made a sheet then tested out your formula and it works for me:

    Is this the real formula that you use in your sheet, or does your real formula use cross-sheet references or something? If they do use cross-sheet references, make sure that your reference includes the entire column.

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

  • hi @SSFeatures yes, that is the exact formula. Of note, this is in a sheet summary, not an actual cell.

  • SSFeatures
    SSFeatures ✭✭✭✭✭

    Ah good point. I just tried it as a sheet summary and it looks correct to me.

    Can you try recreating the field and see if that fixes the formula? Super weird!

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

  • @SSFeatures gave that a try, but it didnt seem to help :(

    =SUMIFS(Amount:Amount, Date:Date, <=DATE(2024, 6, 30), Date:Date, >DATE(2024, 3, 31))

  • SSFeatures
    SSFeatures ✭✭✭✭✭

    If you put the formula in a cell within the sheet, does it work?

    What if you try duplicate the Date column (e.g. Date2), then update the formula to use Date2? Similarly with Amount and "Amount2"?

    I'm just curious if something is buggy in your sheet somehow.

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

  • In the cell w/n the sheet, it still brings up "0"

    I tried with both the updated columns and a mix of one and not the other and they all turn up 0 :(

    =SUMIFS([Amount2]:[Amount2], [Date2]:[Date2], <=DATE(2024, 6, 30), [Date2]:[Date2], >DATE(2024, 3, 31))

  • just tried creating a WHOLE new sheet and c/p the data over and it's still turning up 0

    @SSFeatures

    =SUMIFS(Amount:Amount, Date:Date, <=DATE(2024, 6, 30), Date:Date, >DATE(2024, 3, 31))

  • SSFeatures
    SSFeatures ✭✭✭✭✭
    Answer ✓

    If you right click on the Date column and go to "Edit Column Properties", what is the Column Type? Is it Date or is it Text/Number?

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

  • @SSFeatures omg OF COURSE! that did it!! thank you so much. Can't believe i didnt check that piece.

  • SSFeatures
    SSFeatures ✭✭✭✭✭

    Haha no problem! I should have thought of that way earlier too. Took us both a long time for something simple lol. Glad it works now!

    Nathan Braun (Founder of SSFeatures) (nathan@ssfeatures.com)

    SSFeatures - The browser extension that adds more features into SmartSheet.

    • Report PDF generator that supports grouped and summarized reports
    • Automatic sorting, sorting with filters, saving sort settings
    • Hiding and unhiding columns, and spell checking

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!