Sumifs

Hello,

I was wondering if anyone could help me with a sum ifs function. A screenshot of the sheet is included. Basically I want a formula that says if the course name match and the date match, total the costs.

So in the example if the course date is 9/16/2024 and the course name is 300, add the three rows of cost.

I can get it to sum for each individually =sumif(Date:Date, [Date]@row) and =sumif(Course Name:Course Name, [Course Name]@row). But when I try to combine it does not work. I am not sure if it should be an (AND in there or something. Thanks!

Best Answer

  • SSFeatures
    SSFeatures ✭✭✭
    Answer ✓

    Hi @Whalstead1,

    You're correct that you want to use the SUMIFS function for this problem. The syntax for SUMIFS is a little bit different than the syntax for SUMIF.

    This formula should work for you:

    =SUMIFS(Cost:Cost, [Course Name]:[Course Name], [Course Name]@row, Date:Date, [Date]@row)
    

    This will search the rows, and sum the costs if the course names match and the dates match.

    Let me know if you have any questions about the formula!

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

    • Automatic sorting, sorting with filters, saving sort settings
    • Spell checking
    • Report PDF generator that supports grouped and summarized reports

Answers

  • SSFeatures
    SSFeatures ✭✭✭
    Answer ✓

    Hi @Whalstead1,

    You're correct that you want to use the SUMIFS function for this problem. The syntax for SUMIFS is a little bit different than the syntax for SUMIF.

    This formula should work for you:

    =SUMIFS(Cost:Cost, [Course Name]:[Course Name], [Course Name]@row, Date:Date, [Date]@row)
    

    This will search the rows, and sum the costs if the course names match and the dates match.

    Let me know if you have any questions about the formula!

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

    • Automatic sorting, sorting with filters, saving sort settings
    • Spell checking
    • Report PDF generator that supports grouped and summarized reports

  • Whalstead1
    Whalstead1 ✭✭✭

    Thank you so much! That worked!

  • SSFeatures
    SSFeatures ✭✭✭

    You're welcome, glad it worked!

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

    • Automatic sorting, sorting with filters, saving sort settings
    • Spell checking
    • Report PDF generator that supports grouped and summarized reports

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!