How to Subtract Break Time from Work Duration in Excel
Question details
The user needs a formula to dynamically subtract specific break time amounts from a total work duration based on the length of the shift.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Calculating net work hours by applying variable break time deductions (ranging from 15 to 90 minutes) depending on total worked hours.
- Observed behavior
- Net work hours accurately reflect total shift duration minus the correct, tier-based break times.
Ensure that your source work duration cells are properly formatted as 'Time' or custom formatted as '[h]:mm' before applying subtraction formulas.
Use the LOOKUP Function for Cleaner Formulas
A concise and readable method that avoids complex nested IFs by referencing an inline array of work hour thresholds and corresponding break deductions.
This method divides the thresholds by 24 and the minutes by 1440 to match Excel's native time formatting, making calculation much more streamlined.
Click on the cell where you want the final net work hours to be displayed.
Type the formula =C2-LOOKUP(C2,{4,6,8,9}/24,{15,30,60,90}/1440) assuming C2 contains the total work duration. Adjust C2 to match your actual data cell.
Press Enter to execute the formula. The correct break time will be subtracted automatically based on the length of the shift.
Right-click the result cell, select 'Format Cells', navigate to the 'Custom' category, and apply the [h]:mm format to ensure time displays correctly.

Use Nested IF Statements to Deduct Break Times
This method explicitly checks the total duration against specific time ranges using the IF, AND, and TIME functions.
Calculate Work Hours and Break Times Easily with WPS Office
WPS Spreadsheet provides robust formula capabilities, including IF, TIME, and LOOKUP functions, allowing you to seamlessly calculate payroll, manage timesheets, and handle complex time deductions.
- 1. Open your timesheet in WPS: Launch WPS Spreadsheet and open your existing work hour tracker.
- 2. Enter the calculation formula: Input the LOOKUP or nested IF formula into your designated net time cell.
- 3. Format the cell: Right-click the cell, select 'Format Cells', and apply the [h]:mm custom time format.
- 4. Apply to all employees: Drag the formula down the column to automatically calculate net times for all records.

Frequently Asked Questions
Why does my time calculation result in a series of hashes (####)?
This usually happens when a time calculation results in a negative value, which spreadsheet programs cannot display by default. Ensure your break time deduction is not larger than your total work duration, or switch to the 1904 date system in your settings.
How do I format a cell to show total hours extending over 24 hours?
Right-click the cell, select 'Format Cells', navigate to the 'Custom' category, and enter '[h]:mm'. The square brackets tell the spreadsheet to display elapsed hours rather than rolling over and resetting at 24.
Can I use VLOOKUP instead of LOOKUP for subtracting break times?
Yes, you can use VLOOKUP with an approximate match (set the range_lookup argument to TRUE) by creating a separate small reference table for your work hour tiers and their corresponding break deductions. This can make updating the thresholds much easier later.




