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

  • I have a pretty basic sheet that I am using to develop a formula, and am encountering an issue I haven't seen before. The formula isn't including my second row for some reason. It isn't a huge issue f…
    User: "jjg279"
    Answered ✓
    9
    2
  • I'm sure that this is an easy fix but I've tried a bunch of different ways and can't get this to work. I need to get the max date from a sheet to feed it into my meta data sheet (dates are stored in d…
    User: "susanmgfin"
    Answered ✓
    8
    2
  • I need help to come up with the risk formula. I tried many different formulas and tried to modify it but just can't seem to have desired results. So these are the conditions I MUST meet: Program is a …
    User: "Ronak"
    Answered ✓
    29
    6