Help with Excel Function to return the correct status

New Contributor



I have an excel sheet where i need the "Status" column to either return a blank, "open", "overdue" or closed" status depending on the following scenarios:


If "Target" and "Completion" columns are blank then "Status" column should be blank too.

If "Target" has a date entered and "Completion" is blank then "Status" column should return "Open".

If "Target" and "Completion" columns both have dates then "Status" column should return "Closed".

However, if "Target" date has past today's date and "Completion" column is blank then "Status" column should return "Overdue".




i had used this formula but it's not showing the correct status:






2 Replies
best response confirmed by Hans Vogelaar (MVP)



Is this what you are looking for? 

Thank you so much! Yes that's exactly what i was looking for