Formula for At Risk Flag

Hi Experts,

I am using the following formula to turn the At Risk flag red when the condition is true. But I am getting a #UNPARSEABLE error. The formula is trying to say:

If either of these conditions is true, I want to turn the At Risk flag red:

When an End Date is within 3 days of today AND % complete is below 80%

When an End Date is in the past AND % complete is not 100%

=IF(OR(AND(([End Date]@row >= TODAY(-3),[% Complete]@row < .8),([End Date]@row < TODAY(), [% Complete]@row < 1))), 1, 0)

Any help would be appreciated. Thanks in advance.

Tom McCann

Tags:

Best Answer

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    edited 06/15/21 Answer ✓

    Hi @Tom McCann

    Hope you are fine, please try the following formula as per your conditions:

    =IFERROR(IF(OR(AND([% Complete]@row < 0.8, [End Date]@row >= TODAY(-3)), (AND([% Complete]@row < 1, [End Date]@row > TODAY()))), 1), "")


    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

Answers

  • Bassam Khalil
    Bassam Khalil ✭✭✭✭✭✭
    edited 06/15/21 Answer ✓

    Hi @Tom McCann

    Hope you are fine, please try the following formula as per your conditions:

    =IFERROR(IF(OR(AND([% Complete]@row < 0.8, [End Date]@row >= TODAY(-3)), (AND([% Complete]@row < 1, [End Date]@row > TODAY()))), 1), "")


    PMP Certified

    bassam.khalil2009@gmail.com

    ☑️ Are you satisfied with my answer to your question? Please help the Community by marking it as an ( Accepted Answer), and I will be grateful for your "Vote Up" or "Insightful"

  • Hi @Bassam Khalil ,

    Thank you for the quick response. That is exactly what I need.

    Tom McCann

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!