# 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:

• ✭✭✭✭✭✭

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), "")

bassam.khalil2009@gmail.com

• ✭✭✭✭✭✭

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), "")

bassam.khalil2009@gmail.com