Split Total Hours into Weeks, Days, and Hours in Excel
Question details
Convert a total number of hours into separate values for complete weeks, remaining days, and remaining hours.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A spreadsheet contains total hours that need to be expressed as weeks, days, and hours rather than decimal divisions.
- Observed behavior
- The desired result is a breakdown into complete weeks, complete days after those weeks, and remaining hours.
Enter a nonnegative numeric total of hours in cell D2. The formulas assume a week has 168 hours and a day has 24 hours.
Use QUOTIENT and MOD to break down total hours in Excel
Use these formulas to calculate complete weeks and days, plus the remaining hours.
Select a result cell and enter =QUOTIENT(D2,168) to divide the total hours by the number of hours in a week.
Select another result cell and enter =QUOTIENT(MOD(D2,168),24) to calculate complete days after the weeks are removed.
Select a third result cell and enter =MOD(D2,24) to return the hours left after complete days.
Select the three formula cells and drag their fill handles down to calculate the breakdown for additional totals in column D.

Split total hours with formulas in WPS Spreadsheets
Use the same QUOTIENT and MOD formulas in WPS Spreadsheets to convert total hours into weeks, days, and remaining hours.
- 1. Open your spreadsheet: Open WPS Spreadsheets and enter a nonnegative total number of hours in cell D2.
- 2. Enter the weeks formula: Select a result cell and enter =QUOTIENT(D2,168).
- 3. Enter the days formula: Select another result cell and enter =QUOTIENT(MOD(D2,168),24).
- 4. Enter the hours formula: Select a third result cell and enter =MOD(D2,24). Drag the formula cells' fill handles down for additional rows.

Frequently Asked Questions
Why do the formulas use 168 hours for a week?
A seven-day week has 7 × 24, or 168, hours. Use =QUOTIENT(D2,168) to return the number of complete weeks.
How do I calculate days after complete weeks are removed?
Enter =QUOTIENT(MOD(D2,168),24). MOD returns the hours left after complete weeks, and QUOTIENT converts those hours into complete days.
What happens if the total includes fractional hours?
The weeks and days formulas return complete units, while =MOD(D2,24) retains any fractional part in the remaining hours.
Can I use these formulas for more than one row?
Yes. Enter the formulas for D2, then drag the formula cells' fill handles down. The relative reference changes to D3, D4, and so on.




