Calculating number of years between dates


I have tried a few of the formulas I found in the community to calculate the number of years of service for our team members, but I keep getting an Invalid Operation message.

Here is the formula I tired and a shot of the columns I am working with. What am I missing?

=IF(Date@row > [Count Date]@row, YEAR(Date@row) - YEAR([Count Date]@row), "")


Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!