excel表格,入职日期在C2栏格式,如:2010-1-1,如何在D2格中计算工龄?

希望工龄格式为数值格式例:1.8 ,问题完毕!
2024-12-28 03:10:43
推荐回答(4个)
回答1:

d2=DATEDIF(C2,TODAY(),"M")/12 单元格格式设置为数值,保留一位小数就行了

回答2:

在d2中输入
=IF((MONTH(TODAY())-MONTH(C2))<0,(YEAR(TODAY())-YEAR(C2))-1&"."&(MONTH(TODAY())-MONTH(C2))+12,(YEAR(TODAY())-YEAR(C2))&"."&(MONTH(TODAY())-MONTH(C2)))

回答3:

=(TODAY()-C2)/360

回答4:

=(today()-c2)/365