Home

Nesting "IF" with "IF AND" functions with 4 values

KCharron
New Contributor

In my project management excel sheet, I'd like it to auto-populate whether a task is "Complete", "Overdue", "In Progress", or "Not Started" based on three cells and the dates they do or do not contain.

 

Here is what I have but I'm getting an error on it

=IF(OR(D10<TODAY(),D10=""),"Not Started",IF(NOT(ISBLANK(F10)),"Complete",IF(AND(F10="",E10<TODAY()),"Overdue","In Progress")))

 

If D10 is greater than today or blank, it should return "Not Started"

If F10 has a date, it should return "Completed"

If F10 is blank and E10 is greater than TODAY, it should return "Overdue"

If F10 is blank and E10 is less than TODAY, it should return "In Progress"

 

All but one function is working. If D10 is greater than today it is returning "In Progress" when it should return "Not Started".  I'm thinking my statements overlap or contradict somewhere but I'm stuck.

4 Replies

@KCharron 

 

It could be

=IF( ($D10>TODAY())+ISBLANK($D10),"Not Started",IF($F10>100,"Completed",IF($E10>TODAY(),"Overdue","In Progress")))

@Sergei Baklan thank you!  It solved my "Not Started" issue but wiped out my "Overdue" rule.

 

It all seems to work if I combine your solution with mine

=IF( ($D4>TODAY())+ISBLANK($D4),"Not Started",IF(NOT(ISBLANK(F4)),"Complete",IF(AND(F4="",E4<TODAY()),"Overdue","In Progress")))

Try this:
=IF(OR(D10>TODAY(),D10=“”),
“Not Started”,
IF(F10>0,”Completed”,
IF(AND(F10=“”,E10>TODAY()),
“Overdue”,”In Progress”)))

@KCharron 

 

IMHO, formula works - please check attached

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
13 Replies