如果入职日期在A1,截止日在B1,在C1录入:=DATEDIF(A1,B1,"Y")就可以了,C1显示的就是工作年限
=year(截止日期单元格)-year(入职日期单元格)
=YEARFRAC(D5,E5)