Skip to main content

Excel Formula:Calculate network time with break in a timesheet

doc calculate overtime pay 4

Generally, while calculating the working time, the break time needed to be excluded. Here in this tutorial, it provides the formula which uses the MOD function to calculate the network time with breaks in Excel.

If you want to follow along with this tutorial, please download the example spreadsheet.
sample

Generic formula:

MOD(work_end-work_start,1)-MOD(break_end-break_start,1)

Arguments

Work_start: the time that starts work at.
Work_end: the time that ends work at.
Break_start: the time that starts break at.
Break_end: the time that ends break at.

How this formula work

Here is a table containing the worktime and break time, please use below formula to calculate the network time.
doc calculate network time 2

=MOD(C6-B6,1)-MOD(E6-D6,1)

Press Enter key to get the network time.
doc calculate network time 3

Then drag autofill handle over cells to calculate the network time.
doc calculate network time 4

Explanation

The MOD function returns the division remainder of two numbers. For example, MOD(8,3)=2.

In this case, the time value must be the decimal value, which will remain itself while dividing 1 by using MOD function.

For instance, =MOD(C6-B6,1)=10:00= 0.416666667, then =MOD(E6-D6,1)=1:15= 0.052083333. Now
=MOD(C6-B6,1)-MOD(E6-D6,1)
=10:00-1:15
=8:45

Remark

1) If you need to calculate the total network time, use the formula

=SUM(F6:F10)

Note: The sum result is in the h:mm format automatically. To understand the sum result easily, you can change it to the time format of 37:30:55.
doc calculate network time 5

2) If the timesheet records the two separate in/out times for a single shift as below show, you can use the formula as this:

MOD(work_end1-work_start1,1)-MOD(work_end2-work_start2,1)
=MOD(C17-B17,1)+MOD(E17-D17,1)
doc calculate network time 6


Relative Formulas

Relative Functions


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

Popular Features: Find/Highlight/Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value   |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Unhide Columns  |  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager  |  Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...

Supports Office/Excel 2007-2021 and 365   |   Available in 44 Languages   |   Easy to Uninstall Completely

Full-Featured 30-Day Free Trial  |  60-Day Unconditional Money-Back GuaranteeRead MoreDownload

Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.
Full-Featured 30-Day Free Trial  |  60-Day Unconditional Money-Back GuaranteeRead More Download

Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
Rate this post:
0   Characters
Suggested Locations