I have column "Source" with text values(some text with numbers too) and date values.. I need text value to be return as it is in "Target" column. However, for the date values, it need to compare with System date.
If year is greater than the current year and equal to current year but month is equal to or greater then current month value return should be "N/A".
If the year is less than current year and equal to current year but less than current month, exact value from source column should be returned.
Also, the values which does not have date format, need to return the exact source column value.
I tried with below formula but not working:
=IF(VALUE(MID(Source1, 3, 2)) > VALUE(RIGHT(YEAR(TODAY()), 2)), "N/A", IF(VALUE(MID(Source1 3, 2)) = VALUE(RIGHT(YEAR(TODAY()), 2)), IF(VALUE(MID(Source1, 5, 2)) > VALUE(MONTH(TODAY())), "N/A", IF(VALUE(MID(Source1 3, 2)) = VALUE(RIGHT(YEAR(TODAY()), 2)),IF(VALUE(MID(Source1, 5, 2)) = VALUE(MONTH(TODAY())), "N/A"), Source1)))).
I need the values to return as mentioned below: