• 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

binoyfalcon

New Member
Hi ,
how to get total experience year from year and month value

thank you
 

Attachments

  • WORK EXPERIENCE.xlsx
    10.4 KB · Views: 8
as you are concartenating - the display is in text
so *1 or +0
=(DATEDIF(B6,C6,"Y")&"." & DATEDIF(B6,C6,"YM"))*1
then it will sum
 

Attachments

  • WORK EXPERIENCE-ETAF.xlsx
    10.9 KB · Views: 10
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

  • WORK EXPERIENCE.xlsx
    12.6 KB · Views: 10
In "B11" =MIN(B6:B10)
In "C11" =MAX(C6:C10)
IN "D11" =DATEDIF(B11,C11,"Y")&"." & DATEDIF(B11,C11,"YM")
 

Attachments

  • WORK EXPERIENCE.xlsx
    10.5 KB · Views: 7
Back
Top