Sumif with dates - how to show ending hours by month in a summary field

Is there a way for me to change up this formula so I don't have to come in each month and change the dates in the cells to pull the right data? This is a summary field with the formula calculating hours being worked that would end this month. Right now im going in each month and updating the dates but hoping to find a way for it to automatically do it so I never have to touch the formula again if at all possible.

=SUMIFS([Hours / Week]:[Hours / Week], [Product]:[Product], HAS(@cell, "XXX"), [End Date]:[End Date], >=DATE(2024, 2, 1), [End Date]:[End Date], <=DATE(2024, 2, 29), PM:PM, "person")


  • Carson Penticuff
    Carson Penticuff ✭✭✭✭✭✭

    Give this a try:

    =SUMIFS([Hours / Week]:[Hours / Week], [Product]:[Product], HAS(@cell, "XXX"), [End Date]:[End Date], YEAR(@cell) = YEAR(TODAY()), [End Date]:[End Date], MONTH(@cell) = MONTH(TODAY()), PM:PM, "person")

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!