跳到主要內容

如何在Excel中快速計算加班和付款?

例如,有一個表記錄了工人的工作和下班時間,並且您想要計算加班時間和付款(如下圖所示),如何在Excel中快速解決此任務?
doc加班費1

計算加班和付款


箭頭藍色右氣泡 計算加班和付款

要計算加班時間和付款,您可以執行以下操作:

1.應用公式以首先顯示正常工作時間。 在單元格F1中,輸入此公式 =IF((((C2-B2)+(E2-D2))*24)>8,8,((C2-B2)+(E2-D2))*24),然後向下拖動自動填充手柄以顯示每天的正常工作時間。 看截圖:
doc加班費2

2.在顯示超時的單元格G2中,輸入此公式 =IF(((C2-B2)+(E2-D2))*24>8, ((C2-B2)+(E2-D2))*24-8,0),拖動 自動填充 現在,已經計算出每天的加班時間了。 看截圖:
doc加班費3

在以上公式中,C2和D2是午餐開始和結束的時間,B2和E2是登錄和註銷的時間,每天8是正常工作時間,您可以根據需要更改這些引用。

您可以計算總工作時間和付款。

3.在單元格F8中,鍵入此公式 = SUM(F2:F7) 並向右拖動以將此公式填寫到G8,現在已經獲得了常規小時和加班總時間。
doc加班費4

4.在要計算固定時間和加班費的單元格中,輸入公式 = F8 * I2 和公式 = G8 * J2 分別查看屏幕截圖:

在公式中,F8和G8是包含總常規小時數和總超時時間的像元,I2和J2包含每小時支付的費用。
doc加班費5

你可以申請 = F9 + G9 計算總付款,其中包括定期付款和加班付款。
doc加班費6


在Excel中輕鬆地將天/年/月/小時/分鐘/秒添加到日期時間

假設您在一個單元格中有一個日期時間格式數據,現在您需要在該日期中添加若干天,年,月,小時,分鐘或秒。 通常,使用公式是所有Excel用戶的第一種方法,但是很難記住所有公式。 用 Excel的Kutools日期和時間助手 實用程序,您可以輕鬆地將天,年,月,小時,分鐘或秒添加到日期時間,此外,您可以計算出日期差或基於給定生日的年齡,而無需記住任何公式。 點擊即可獲得 30 天的全功能免費試用!
doc第二小時添加小時
 
Kutools for Excel:擁有300多個便捷的Excel加載項,可以在30天內免費試用。

最佳辦公生產力工具

🤖 Kutools 人工智慧助手:基於以下內容徹底改變數據分析: 智慧執行   |  生成代碼  |  建立自訂公式  |  分析數據並產生圖表  |  呼叫 Kutools 函數...
熱門特色: 尋找、突出顯示或識別重複項   |  刪除空白行   |  合併列或儲存格而不遺失數據   |   沒有公式的回合 ...
超級查詢: 多條件VLookup    多值VLookup  |   跨多個工作表的 VLookup   |   模糊查詢 ....
高級下拉列表: 快速建立下拉列表   |  依賴下拉列表   |  多選下拉列表 ....
欄目經理: 新增特定數量的列  |  移動列  |  切換隱藏列的可見性狀態  |  比較範圍和列 ...
特色功能: 網格焦點   |  設計圖   |   大方程式酒吧    工作簿和工作表管理器   |  資源庫 (自動文字)   |  日期選擇器   |  合併工作表   |  加密/解密單元格    按清單發送電子郵件   |  超級濾鏡   |   特殊過濾器 (過濾粗體/斜體/刪除線...)...
前 15 個工具集12 文本 工具 (添加文本, 刪除字符,...)   |   50+ 圖表 類型 (甘特圖,...)   |   40+ 實用 公式 (根據生日計算年齡,...)   |   19 插入 工具 (插入二維碼, 從路徑插入圖片,...)   |   12 轉化 工具 (數字到單詞, 貨幣兌換,...)   |   7 合併與拆分 工具 (高級合併行, 分裂細胞,...)   |   ... 和更多

使用 Kutools for Excel 增強您的 Excel 技能,體驗前所未有的效率。 Kutools for Excel 提供了 300 多種進階功能來提高生產力並節省時間。  點擊此處獲取您最需要的功能...

產品描述


Office選項卡為Office帶來了選項卡式界面,使您的工作更加輕鬆

  • 在Word,Excel,PowerPoint中啟用選項卡式編輯和閱讀,發布者,Access,Visio和Project。
  • 在同一窗口的新選項卡中而不是在新窗口中打開並創建多個文檔。
  • 將您的工作效率提高 50%,每天為您減少數百次鼠標點擊!
Comments (6)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
data in b2 & c2
This comment was minimized by the moderator on the site
Intime 10:00am out time 6:40pm what is formula for working time.
This comment was minimized by the moderator on the site
=IF(F13<=TIME(10,0,0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),C13-TIME(8,48,0),0), IF(C13>F13-TIME(8,48,0)>=TIME(1,0,0),F13-TIME(8,48,0),0))
The formula works perfectly, except when I insert formula in H13 it shows ####### instead of 00:00
Dates and times that are negative or too large show as #######
Only after I enter times from C13 to E13, it shows time in H13
So, when I insert the formula in column H downwards for each day of the month, it shows #######
There are days when I’m not working, it show ####### and not 00:00
At the bottom in Total =SUM(H13:H44) it shows ####### and no time for the days I worked
This comment was minimized by the moderator on the site
How can I getting excel to calculate overtime in a template where the pay periods are first to the 15 and 16 through 31 st
This comment was minimized by the moderator on the site
hey so i have a timesheet for work i need it to calculate total hours, overtime 1 and overtime 2
where hours from 07:00-15:00 is normal hours so no overtime counted
hours from 15:00-17:00 is counted in overtime 1
and all other hours is counted in overtime 2
like so
if A1(start time)=07:00 B1(end time)=19:00 C1(total hours)=12 D1(overtime1)=2 E1(overtime2)=2
or A1(start time)=04:00 B1(end time)=16:00 C1(total hours)=12 D1(overtime1)=1 E1(overtime2)=3
This comment was minimized by the moderator on the site
This was awesome should add the Double time calculations also. Thank you
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations