Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

Kutools for Excel 21.00 HOT

300+ Powerful Features You Must Have in Excel

Kutools-for-Excel

Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!

Read More Download Buy now

Office Tab 14.00HOT

Adding Tabbed Interface for Office

Office Tab

It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo

Read More Download Buy now

Kutools for Outlook 12.00NEW

100+ Powerful Features for Outlook

Kutools-for-Outlook

Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!

Read More Download Buy now

Kutools for Word  9.00NEW

100+ Powerful Features for Word

Kutools-for-Word

Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!

Read More Download Buy now

Classic Menu for Office

Bringing Back Your Familiar Menus

Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.

Read More Download Buy now

How to calculate hours worked and minus lunch time in Excel?

As a company employee, we need punch in and punch out every work day, counting the total worked time and minus the lunch time of a day can help to calculate salary according to the time. For example, I have the following daily attendance record which contains log in, log out and lunch start, lunch end times in a worksheet, now, I want to calculate the total hours worked but minus lunch time each day. To finish this job, I can introduce some formulas for you.

doc calculate worked hours 1

Calculate hours worked and minus lunch time with formulas


Add a number of years / months / days / weeks / hours / minutes / seconds to date:

Kutools for Excel’s Formulas utility contains some commonly-used formulas, such as add years to date, calculate age based on birthday and so on. With these usual formulas, you can quickly get the result that you want without remembering any formulas. Read more about this feature...

doc-count-weeks-two-dates3

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


arrow blue right bubble Calculate hours worked and minus lunch time with formulas

The following formulas can help you to calculate worked time a day based on the time records.

1. Enter this formula: =SUM((C2-B2)+(E2-D2))*24 into a blank cell beside your time record cells, F2, for instance, see screenshot:

Note: In the above formula: C2 is the lunch start time, B2 is the log in time, E2 indicates the log out time and D2 is the lunch end time. You can change the references based on your need.

doc calculate worked hours 2

2. Then drag the fill handle down to the cells that you want to apply this formula, and all the total hours worked excluding the lunch time are calculated at once. See screenshot:

doc calculate worked hours 3

Tips: If there are log in, log out time record and fixed lunch time, (such as one hour and thirty minutes), you can apply this simple formula: =D2-B2-C2 to calculate the worked hours a day. See screenshot:

doc calculate worked hours 4


Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
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
    @Sheena:

    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):

    =IF(AND(D18=ʺʺ,E18=ʺʺ),ʺʺ,(E18+(D18>E18)-D18)-IF((E18+(D18>E18)-D18)>Anhang!$A$6,IF(F18>Anhang!$C$6,F18,Anhang!$C$6),IF((E18+(D18>E18)-D18)<=Anhang!$B$4,IF(F18>Anhang!$C$4,F18,Anhang!$C$4),IF(F18>Anhang!$C$5,F18,Anhang!$C$5))))
  • 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 · 3 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.

Feature Tutorials