# Another question about nested IF statements!

Options

Dear Community,

I'd like to combine the two below IF statements, so that if the due date is in the past it will state "Overdue" in the Status column, I can't seem to get it to work :( any suggestions?

=IF([% Complete]98 = 1, "Complete", IF([% Complete]98 = 0, "Not Started", "In Progress"))

=IF([End Date]@row < TODAY(), "Overdue")

Tags:

• ✭✭✭✭✭✭
Options

Try this

=IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress")))

Options

Awesome Nic, thank you so much, it worked a charm!

Options

Apologies Nic, but where there is no start date indicated, it's flagging up as Overdue, is there any way to amend the formula to say if start date = blank, then state "Not Started"

=IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress")))

• ✭✭✭✭✭✭
Options

Sure thing:

=IF(ISBLANK([Start Date]@row), "Not Started", IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress"))))

Options

Perfect Nic, thank you so much for your help, really appreciated!

• ✭✭✭✭✭✭
Options

Try this

=IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress")))

Options

Awesome Nic, thank you so much, it worked a charm!

Options

Apologies Nic, but where there is no start date indicated, it's flagging up as Overdue, is there any way to amend the formula to say if start date = blank, then state "Not Started"

=IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress")))

• ✭✭✭✭✭✭
Options

Sure thing:

=IF(ISBLANK([Start Date]@row), "Not Started", IF(AND([% Complete]@row <> 1, [End Date]@row < TODAY()), "Overdue", IF([% Complete]@row = 1, "Complete", IF([% Complete]@row = 0, "Not Started", "In Progress"))))