Hello,
I am trying to write a formula that subtracts two dates from one another IF the year in one of the dates is 2023. Both columns that have dates are formatted as date and I'm getting an invalid data type error.
=IF(YEAR([Last Hire Date]@row = "2024"), (([Proration Date Reference]@row - [Last Hire Date]@row)/365), "1")
The strange thing is the individual portions of the formula work i.e.
=YEAR([Last Hire Date]@row generates a 4 digit year
=([Proration Date Reference]@row - [Last Hire Date]@row)/365) returns an value.
Somehow together they don't work. Any help would be greatly appreciated.
Thanks