I'm trying to create a calculated column for a list that tracks personnel travelling.
There are two date columns in the list, one for their departure date and one for their return date.
I want a calculated column to identify their current status. Basically if neither date has passed I'd like it to say "Pending", if the departure date has passed but not the return date then "Abroad", if both dates have passed then "Complete".
I tried the below formula but keeping getting a syntax error. Can anyone see what's wrong?
=IF(AND([Departure Date] > NOW(), [Return Date] > NOW()), "Pending",
IF(AND([Departure Date] <= NOW(), [Return Date] >= NOW()), "Abroad",
IF(AND([Departure Date] < NOW(), [Return Date] < NOW()), "Complete", "")
)
)