This is regarding on employee Status whether Active, Inactive or Archived.
Status is active when [Date End] column is blank or greater than TODAY. status is Archived when [date end]'s YEAR is less than Today's YEAR(ex. 2012<2017) OR [date end]'s month is less than Today's month(ex. 03<04) AND [date end]'s year is less than Today's year(ex. 2012<2017)
below is my code
=IF(OR(ISBLANK([Date End]),[Date End]>Today),"Active",(OR(VALUE(TEXT([Date End],"yyyy"))<VALUE(TEXT(Today,"yyyy")),AND(VALUE(TEXT([Date End],"m"))<VALUE(TEXT(Today,"m")),(VALUE(TEXT([Date End],"yyyy")))<VALUE(TEXT(Today,"yyyy"))),"Archived","Inactive")))
SharePoint is accepting my code but the value is either Active or #VALUE! I don't understand and cant find the error. please help!