• 393K Members
• 3,461 Online
• 424K Conversations

New Contributor

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

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

# Re: Nesting "IF" with "IF AND" functions with 4 values

It could be

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

# Re: Nesting "IF" with "IF AND" functions with 4 values

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

# Re: Nesting "IF" with "IF AND" functions with 4 values

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

# Re: Nesting "IF" with "IF AND" functions with 4 values

IMHO, formula works - please check attached

Related Conversations