【推薦本文原因】
Google sheets要如何計算員工年資? 要怎麼計算兩個日期之間的日期差? 當你在處理Google Sheets工作表時,有時會遇到需要計算員工年資的情況,通常無論你是在撰寫報告、整理數據還是做清單,掌握DATEDIF函數的技巧,讓你的工作更加分。今日這次為你準備了簡單易懂的Google Sheets DATEDIF函數的教學步驟,帶你了解如何在Google Sheets中快速計算員工年資!
內容目錄
Google Sheets DATEDIF函數 的重要性
使用DATEDIF函數可以快速計算員工年資,通過計算兩個日期之間的年、月或天數,能精確地確定員工的服務年限,從而有助於公司進行工齡管理、獎勵分配和退休計劃等工作。這個函數簡單易用,只需輸入員工的入職日期和當前日期即可獲得結果,避免了手動計算的繁瑣和潛在錯誤,提高了工作效率和準確性,從而支援更有效的人力資源決策。
下面的步驟將教你如何使用DATEDIF函數,快速計算員工年資,來提高工作效率。
Google Sheets教學|DATEDIF函數
- 首先,我們先計算年分差異,點選欲產生結果儲存格

- 輸入=DATEDIF( )

- 在( )中輸入到職日期,即D6

- 接著輸入目前日期,即,D2

- 並按下鍵盤的F4鍵,轉換成絕對位置

- 最後輸入單位,即 ,”Y”

- 按下ENTER,完成公式結果

- 雙擊儲存格右下角實心圓,套用全部

- 再來要計算月份差,我們先複製年份的公式

- 並貼上月份儲存格

- 只要更改最後面的單位 改成 ,”YM”

- 按下ENTER,完成公式結果

- 雙擊儲存格右下角實心圓,套用全部

- 完成計算年資啦!

本文為 今日訊息 自產精華,請勿商用或以任何方式散播、贈送、販售。未經許可不得轉載、摘抄、複製及建立圖像等任何使用。如需轉載,請通過 今日訊息 申請獲得授權。圖片來源:【Canva】
今日Summary
恭喜你,現在已經學會如何在Google Sheets中使用DATEDIF函數,Excel 真的有很多可以學習的地方! Google Sheets 是辦公室效率必備的神器,多學習將可以幫助你更有效地使用試算表,看起來就會超級專業。記住,多練習這些步驟,你會越來越熟練,Google Sheets表格的整理將不再是一件難事。
💡再幫今日小夥伴統整一下「Google Sheets DATEDIF函數」的方法:
1️⃣ 計算年份差異 =DATEDIF( 到職日期, 目前日期, “Y”)
例如=DATEDIF( D6, $D$2 , “Y”)
2️⃣ 計算月份差異 =DATEDIF( 到職日期, 目前日期, “YM”)
例如 :=DATEDIF( D6, $D$2 , “YM”)
<為您推薦>