I have a column Birthday which contains the date of the user's birthday. I would like to create a calculated column to hold the user's next birthday.
For instance, if I wanted to know the birthday in 2014, this would be the formula:
=DATE(2014;MONTH(Birthday);DAY(Birthday))
But I would really like to know the user's next birthday. Meaning, if the user hasn't had a birthday this year, then the year would be 2014, otherwise, it would be 2015.
More precisely:
If Month(Birthday) > Month(Today): =DATE(2014;MONTH(Birthday);DAY(Birthday))
If Month(Birthday) = Month(Today) && Day(Birthday) >= Day(Today): =DATE(2014;MONTH(Birthday);DAY(Birthday))
Else =DATE(2015;MONTH(Birthday);DAY(Birthday))
However, a formula as simple as the following fails, due to the syntax not being right
=IF([Birthday]>[Birthday], [Birthday], [Birthday])