• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Total Experience

I decided to stick with text in year-and-month format using the deprecated DATEDIF function.

82071
Code:
SinglePeriod
= LET(
      years,  DATEDIF(start,1+end,"Y"),
      months, DATEDIF(start,1+end,"YM"),
      TEXT(years,"0\y;;;") & TEXT(months,"[<10]_m_m 0\m; 0\m")
  )
 
TotalExperience
= LET(
      days,   SUM(1+end-start),
      years,  DATEDIF(0,days,"Y"),
      months, DATEDIF(0,days,"YM"),
      TEXT(years,"0\y;;;") & TEXT(months,"[<10]_m_m 0\m; 0\m")
  )
The awkward bit was ensuring the year lined up as one goes from single to double digit month numbers.
 

Attachments

Back
Top