可用公式DATEDIF(A2,B2,"y")&"年"&DATEDIF(A2,B2,"ym")&"月"&DATEDIF(A2,B2,"Md")&"日"來計算。
1、以excel2010版本為例,如下圖所示,有入職時間和離職時間;
https://iknow-pic.cdn.bcebos.com/2fdda3cc7cd98d1025f470732c3fb80e7bec904b
2、首先在C2單元格輸入=DATEDIF(A2,B2,"y")&"年" 求出幾年;
https://iknow-pic.cdn.bcebos.com/f7246b600c3387441f3f533e5c0fd9f9d62aa0fe
3、然後再輸入DATEDIF(A2,B2,"ym")&"月"求出幾月,中間用符號&連線;
https://iknow-pic.cdn.bcebos.com/a1ec08fa513d26978281771f58fbb2fb4316d826
4、最後輸入DATEDIF(A2,B2,"Md")&"日"求出幾日,中間也是用符號&連線;
https://iknow-pic.cdn.bcebos.com/472309f790529822956f4681daca7bcb0a46d410
5、填完公式後按enter鍵即可計算出入職時間和離職時間的時間間隔了。
https://iknow-pic.cdn.bcebos.com/14ce36d3d539b6003ea270f5e450352ac65cb707
可用公式DATEDIF(A2,B2,"y")&"年"&DATEDIF(A2,B2,"ym")&"月"&DATEDIF(A2,B2,"Md")&"日"來計算。
1、以excel2010版本為例,如下圖所示,有入職時間和離職時間;
https://iknow-pic.cdn.bcebos.com/2fdda3cc7cd98d1025f470732c3fb80e7bec904b
2、首先在C2單元格輸入=DATEDIF(A2,B2,"y")&"年" 求出幾年;
https://iknow-pic.cdn.bcebos.com/f7246b600c3387441f3f533e5c0fd9f9d62aa0fe
3、然後再輸入DATEDIF(A2,B2,"ym")&"月"求出幾月,中間用符號&連線;
https://iknow-pic.cdn.bcebos.com/a1ec08fa513d26978281771f58fbb2fb4316d826
4、最後輸入DATEDIF(A2,B2,"Md")&"日"求出幾日,中間也是用符號&連線;
https://iknow-pic.cdn.bcebos.com/472309f790529822956f4681daca7bcb0a46d410
5、填完公式後按enter鍵即可計算出入職時間和離職時間的時間間隔了。
https://iknow-pic.cdn.bcebos.com/14ce36d3d539b6003ea270f5e450352ac65cb707