In the table below, I have 3 columns that are text/number fields: Final Document, Target Date, Actual Date.
In the Target MM/YYYY
and the Actual MM/YYYY
, I have a formula to pull the MM/YYYY from the Target date
and Actual Date
, but as you can see, there is "On Hold" and "Cancelled" text instead of a date in some of the cells. I'm trying to pull the date, otherwise, return the text in the cell . If the cell is empty, I want it to return "Active". Here are the formulas:
Target MM/YYYY:
=IFERROR(IF(MONTH([Target Date]@row) < 10, "0", "") + MONTH([Target Date]@row) + "/" + YEAR([Target Date]@row), "Active")
Actual MM/YYYY:
=IFERROR(IF(MONTH([Actual Date]@row) < 10, "0", "") + MONTH([Actual Date]@row) + "/" + YEAR([Actual Date]@row), "Active")
The three fields that are highlighted in gray are my formula columns.
Status:
With the status column, if the cell is empty, it should return "Active", if the cell has text, it should return the text, and if there is a date, it should return Complete.
=IF([Actual Date]@row = "", "Active", IF([Actual Date]@row = "On Hold", "On Hold", IF([Actual Date]@row = "Cancelled", "Cancelled", "Complete")))