提示:其它语言是由 Google 机器翻译的。 你可以访问 English 版本。



作为一名公司员工,我们需要在每个工作日进行打卡和冲销,计算总工作时间并减去一天的午餐时间可以帮助根据时间计算工资。 例如,我有以下每日出勤记录,其中包含登录,注销和午餐开始,午餐结束时间在工作表中,现在,我想计算每天的总工作时间,但减去午餐时间。 为了完成这项工作,我可以为你介绍一些配方。




Kutools for Excel公式 实用程序包含一些常用公式,例如添加日期,基于生日计算年龄等。 用这些通常的公式,你可以很快得到你想要的结果,而不用记住任何公式。 阅读更多关于这个功能...


Kutools for Excel:比200方便的Excel加载项,可以在60天免费试用。 下载并免费试用现在!

箭头蓝色右泡 用公式计算工作时间和减去午餐时间


1。 输入这个公式: =SUM((C2-B2)+(E2-D2))*24 进入您的时间记录单元旁边的空白单元格, F2例如,看截图:

备注:在上面的公式中: C2 是午餐开始时间, B2 是登录时间, E2 表示注销时间和 D2 是午餐结束时间。 您可以根据您的需要更改参考。


2。 然后将填充手柄向下拖动到您想要应用此公式的单元格中,并且不包括午餐时间的所有总小时数都将立即计算出来。 看截图:


提示建议:如果有登录,注销时间记录和固定午餐时间(例如一小时三十分钟),则可以应用以下简单公式: = D2-B2-C2 计算每天的工作时间。 看截图:


Kutools for Excel解决了您的大多数问题,并使您的生产率提高了80%

  • 重用: 快速插入 复杂的公式,图表 以及你以前用过的任何东西; 加密单元格 密码; 创建邮件列表 并发送电子邮件...
  • 超级方程式酒吧 (轻松编辑多行文字和公式); 阅读布局 (轻松读取和编辑大量单元格); 粘贴到过滤范围...
  • 合并单元格/行/列 不丢失数据; 分裂细胞含量; 组合重复的行/列...防止重复的细胞; 比较范围...
  • 选择复制或唯一 行; 选择空行 (所有细胞都是空的); 超级查找和模糊查找 在许多工作簿中; 随机选择......
  • 精确复制 多个单元格而不更改公式参考; 自动创建参考 多张表; 插入项目符号,复选框等等......
  • 提取文本,添加文本,按位置删除, 删除空间; 创建和打印分页小计; 在单元格内容和注释之间转换...
  • 超级过滤器 (将过滤方案保存并应用到其他工作表); 高级排序 按月/周/日,频率等; 特殊过滤器 用粗体,斜体......
  • 结合工作簿和工作表; 根据键列合并表; 将数据拆分为多个表格; 批量转换xls,xlsx和PDF...
  • 超过300强大的功能。 支持Office / Excel 2007-2019和365。 支持所有语言。 在您的企业或组织中轻松部署。 全功能30天免费试用。
kte tab 201905


  • 在Word,Excel,PowerPoint中启用选项卡式编辑和阅读,Publisher,Access,Visio和Project。
  • 在同一窗口的新选项卡中打开并创建多个文档,而不是在新窗口中。
  • 通过50%提高您的工作效率,每天为您减少数百次鼠标点击!
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Agron Vukaj · 1 months ago
    I just worked at NY Comic Con and was curious how would you calculate the hours if A1 is clocked in (AM/PM), B1 Clocked Out (AM/PM), C1 Break Taken and D1 hours worked. How would the formula look if you place an x in the break taken column, and the break is automatic 1/2 hour?
  • To post as a guest, your comment is unpublished.
    Bonnie Brand · 2 months ago
    I track my start time in A1 and my end time in B1. In C1 is the formula =TEXT(B1-A1,"h") This works, but I can't figure out how to subtract an hour for lunch within this formula. I don't track my start lunchtime and end lunchtime since it will always be 1 hour. Is there a way to do this?
  • To post as a guest, your comment is unpublished.
    Avishay Belker · 3 months ago
    I am downloading activity reports from Time station (an app that helps monitoring and calculating employees work time and pay.

    The in and out are coming one beneath the other and not as you show in your examples (one next to the other).

    Is there a way to formulate the table to calculate total daily hours in this layout, considering that I may have multiple entries and exits a day?
    • To post as a guest, your comment is unpublished.
      skyyang · 3 months ago
      Hello, Avishay,
      Sorry, I can't get your point, could you give an example or screenshot here? Thank you!
  • To post as a guest, your comment is unpublished.
    Pascal · 1 years ago

    Found something laying around that actually solves your question.

    Columns D, E and F are the Start time, End Time and Break.

    Have a table somewhere that explains the breaks that have to be calculated:

    from till Pause
    0:00 6:00 0:00
    6:00 9:00 0:30
    9:00 10:00 0:45

    Then use the following expresssion (note that my reference to the table are on a tab called Anhang):

  • To post as a guest, your comment is unpublished.
    Sheena · 1 years ago
    I need help with a formula. So I'm creating schedules, I have a log in and log out time. If that time is over 6 hours there has to be a 30 minute lunch. I want a formula that will calculate that time worked including a lunch IF it's over 6 hours
    • To post as a guest, your comment is unpublished.
      KatZ · 2 months ago
      Is there no answer or formula in Excel for this question?
      What would the formula be if a minimum of 8.5 hours of work is required but the employee worked 10 hours.
      I want a formula ex: 08:50 - 10:00 and then the obvious answer is 01:50 with the option to calculate a weeks overtime or shortfall?
    • To post as a guest, your comment is unpublished.
      Jonny · 1 years ago
      I too would like the answer to this exact situation!
    • To post as a guest, your comment is unpublished.
      Red · 1 years ago
      Did you get help on this question?
      • To post as a guest, your comment is unpublished.
        Justin · 1 years ago
        I would also like the answer to this. Can it be varied? Example: 12 hour shift workers get an hour break, as do 11 and 10 hour shit workers. However, if you work 8 or 9 hours you get 45 minutes deducted, 6 - 7 hours have 30 minutes deducted and 5 hours have 15 minutes deducted. Any hours worked below 5 do not incur a break.