Display actual date among 3 date columns (forecast, planned and Actual dates)

I have 3 columns in Smartsheet. They are forecast date, planned date and actual date. I need a new column such that the condition should be if only forecast date is present display that. If both forecast and planned date are present, display planned date. If all 3 dates are present, display actual date. I tried to use this formula below but id didn't work. Please help.

=IF(ISDATE([Actual Date]@row), [Actual Date]@row, IF(ISDATE([Planned Date]@row), [Planned Date]@row, IF(ISDATE([Forecast Date]@row), [Forecast Date]@row, "")))

Answers