With the current formula i'm able to verify system date with the value started with two characters but not more than 2 Characters. Can some one please help to fix this.
=IFERROR(IF(VALUE(MID(SUBSTITUTE(Source@row, " ", ""), 3, 2)) > VALUE(RIGHT(YEAR(TODAY()), 2)), "N/A", IF(AND(VALUE(MID(SUBSTITUTE(Source@row, " ", ""), 3, 2)) = VALUE(RIGHT(YEAR(TODAY()), 2)), VALUE(MID(SUBSTITUTE(Source@row, " ", ""), 5, 2)) > VALUE(MONTH(TODAY()))), "N/A", Source@row)), Source@row)
Ex: I need values to be displayed as in the Required column in the attached pic. However, it is displayed as in the Error column.(Just the highlighted values are not working correctly, remaining works )
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.