Sum Only the Cells That Meet Certain Criteria

I want to sum the Estimated Number of Work Hours in a column, but only in those rows where the Status says "In Progress". Is this possible? Thank you in advance!

Best Answer

  • Paul Newcome
    Paul Newcome Community Champion
    edited 04/17/20 Answer ✓

    For your range in the same sheet, you want to enter the column name(s) separated by a colon. To reference an entire column, you would use

    [Column Name]:[Column Name]


    Which means that to correct the #UNPARSEABLE error, you just need to correct the new range to read as

    [Overall Resources Needed (Primary Task/Sub Tasks)]:[Overall Resources Needed (Primary Task/Sub Tasks)]


    =SUMIFS([Estimated Project Work Hours]:[Estimated Project Work Hours], Status:Status, "In Progress", [Overall Resources Needed (Primary Task/Sub Tasks)]:[Overall Resources Needed (Primary Task/Sub Tasks)], “Jeremiah Hammen”)


    EDIT:

    I also noticed something else after posting my comment. If you compare the quotes around Jeremiah Hammen to the quotes around In Progress, you will see the first set is straight up and down but the set around the name are slanted to show open quotes vs closed quotes. These slanted quotes are called "Smart Quotes". They come from programs such as Microsoft Word. Smart Quotes will break a formula every time.

    I am not sure what the other ones are called (not-smart quotes?), but to get those you would need to use a text program such as Notepad, type directly into Smartsheet, or type here in the Community.

    Here is the formula with the range fixed AND the quotes as well.

    =SUMIFS([Estimated Project Work Hours]:[Estimated Project Work Hours], Status:Status, "In Progress", [Overall Resources Needed (Primary Task/Sub Tasks)]:[Overall Resources Needed (Primary Task/Sub Tasks)], "Jeremiah Hammen")

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!