How to combine formulas?

Hi all, I am trying to do some simple calculations for a project dashboard, e.g. showing the number of actions that are "not started", "in progress" (or those that are not complete or not cancelled) and that are also overdue, i.e. less than today's date. I managed to calculate the number of open actions, I also managed to calculate all actions that were due before today. But how do I combine a formula to get BOTH in one calculation?

I tried the formula below but that gives me an unparseable error.

=COUNTIFS({Actions Log Status}, <>"Complete", {Actions Log Status}, <>"Cancelled") AND (COUNTIF({Actions Log Due Date}, {Actions Log Due Date} < TODAY(0))

Any advice would be appreciated.

Best Answer

Answers

  • Hollie Green
    Hollie Green ✭✭✭✭✭✭

    Wasn't sure which way you were trying to go not fully awake yet this morning go provided how to do both.

    This formula will count the rows that meet all of the criteria from both formulas

    =COUNTIFS({Actions Log Status}, <>"Complete", {Actions Log Status}, <>"Cancelled",{Actions Log Due Date}, {Actions Log Due Date}, < TODAY(0))

    This formula will add the count of the rows that meet the first criteria and the rows that meet the criteria of the second formula.

    =COUNTIFS({Actions Log Status}, <>"Complete", {Actions Log Status}, <>"Cancelled") +(COUNTIF({Actions Log Due Date}, {Actions Log Due Date} < TODAY(0))

  • Hi Hollie,

    thanks for your reply. Your first formula is what I want to achieve, i.e. I want a count that meets the both the status and date criteria. However, when I try =COUNTIFS({Actions Log Status}, <>"Complete", {Actions Log Status}, <>"Cancelled",{Actions Log Due Date}, {Actions Log Due Date}, < TODAY(0)), I now get an "invalid operation" error and I have not managed to fix that.

    Do you have any other suggestions? Sorry for asking again...

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭
    Answer ✓

    You need to remove one of the Due Date cross sheet references.

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

  • Of course! Thank you so much, Paul, now it works a treat. :-)

  • Paul Newcome
    Paul Newcome ✭✭✭✭✭✭

    Happy to help. 👍️

    Come see me in Seattle at ENGAGE 2024! I will be at the 10xViz partner booth throughout as well as the "Lets Talk About Community" Meet & Eat table on Tuesday from 11:45am - 12:45pm!

    CERTIFIED SMARTSHEET PLATINUM PARTNER

    10xViz.com

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!