I have a field that calculates "Years of Service" and calculated to either TODAY for a active employee OR to the termination date if terminated. However, on the list dashboard if the start date is in the future it returns an error #Name?
How can I also add a statement that if "start date" is in future then do not calculate anything, instead either leave field blank or return the text "Future Start"? I have tried a few things but I cannot figure it out. Help would be appreciated! I am using SharePoint Online - Modern pages.
Here is the current statement I am using:
=CONCATENATE(IF(ISBLANK([Termination Date]),DATEDIF([Hire Date],NOW(),"y"),DATEDIF([Hire Date],[Termination Date],"y"))," yrs, ",IF(ISBLANK([Termination Date]),DATEDIF([Hire Date],NOW(),"ym"),DATEDIF([Hire Date],[Termination Date],"ym"))," mths")