Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Date Dif Formula

Hi Smartsheet community,

Looking to see if anyone has figured out if it's possible to use the the DATEDIF formula.

When a Start date and end date are used in the formula it would produce the years and months between the date range.

Example

Start date: 1/1/25

End date: 2/1/25

Tenure: 0 years, 1 months

The formula that i use in excel to get this to work is as follow

=DATEDIF(F4,G4,"y") & " years, " & DATEDIF(F4,G4,"ym") & " months"

The formula I used in SS that I get #UNPARSEABLE is

=DATEDIF([Hire Date]@row,[Termination Date]@row,"y") & " years, " & DATEDIF([Hire Date]@row,[Termination Date]@row,"ym") & " months"

Am I missing something in my SS formula? Not sure why this wouldn't work. Thanks in advance.

Tags:

Best Answer

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions