Formula to Return Training Status with Multiple Outputs

aeorfi

New Member
Joined
Nov 13, 2019
Messages
1
I a table with 6 different input scenarios and need to return 4 different outputs depending on the input. The table data is all dates and I would like to fill the Status column with one of the following outputs.
  1. No-Value
  2. Complete
  3. On-Time
  4. Past-Due

An example of the scenarios in the table is below. The dates are in MM/DD/YYYY format.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]DUE DATE
[/TD]
[TD]COMPLETION DATE
[/TD]
[TD]OUTPUT
[/TD]
[TD]DESCRIPTION
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]No-Value[/TD]
[TD]Self explanatory[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]04/27/2019[/TD]
[TD]Complete[/TD]
[TD]No Due Date value so Complete only[/TD]
[/TR]
[TR]
[TD]01/13/2020[/TD]
[TD][/TD]
[TD]On-Time[/TD]
[TD]On-Time because Due Date is in the future with no completion.[/TD]
[/TR]
[TR]
[TD]03/09/2019[/TD]
[TD][/TD]
[TD]Past-Due[/TD]
[TD]Past Due because Due Date is in the past with no completion.[/TD]
[/TR]
[TR]
[TD]10/05/2019[/TD]
[TD]09/10/2019[/TD]
[TD]On-Time[/TD]
[TD]On-Time because completed before the Due Date.[/TD]
[/TR]
[TR]
[TD]03/30/2019[/TD]
[TD]04/22/2019[/TD]
[TD]Past-Due[/TD]
[TD]Past Due because completed after the Due Date.[/TD]
[/TR]
</tbody>[/TABLE]

[TABLE="width: 356"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]


I have tried different combinations of nested formulas and have not been able to produce all of the outputs correctly/consistently.

I am not familiar enough with VBA to create something but if that is the solution that is returned I understand it well enough to make use of it.

I appreciate any help that can be offered.
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
Hi & welcome to MrExcel.
How about
=IF(B2="",IF(A2="","No Value",IF(A2>=TODAY(),"On Time","Past-Due")),IF(A2="","Complete",IF(A2>=B2,"On Time","Past due")))
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top