Calculation Issues

Split Total Hours into Weeks, Days, and Hours in Excel

Steven ParkerSteven Parker Nov 18, 2026 871 views

Question details

Convert a total number of hours into separate values for complete weeks, remaining days, and remaining hours.

Split Total Hours into Weeks, Days, and Hours in Excel
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.
Before you start

Enter a nonnegative numeric total of hours in cell D2. The formulas assume a week has 168 hours and a day has 24 hours.

Solution 1Recommended

Use QUOTIENT and MOD to break down total hours in Excel

Use these formulas to calculate complete weeks and days, plus the remaining hours.

1
Calculate complete weeks

Select a result cell and enter =QUOTIENT(D2,168) to divide the total hours by the number of hours in a week.

2
Calculate remaining days

Select another result cell and enter =QUOTIENT(MOD(D2,168),24) to calculate complete days after the weeks are removed.

3
Calculate remaining hours

Select a third result cell and enter =MOD(D2,24) to return the hours left after complete days.

4
Apply formulas to other rows

Select the three formula cells and drag their fill handles down to calculate the breakdown for additional totals in column D.

Use QUOTIENT and MOD to break down total hours in Excel
Example result: If D2 contains 200, the formulas return 1 week, 1 day, and 8 hours. Fractional hours remain in the hours result.
Calculate in WPS Spreadsheets

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. 1. Open your spreadsheet: Open WPS Spreadsheets and enter a nonnegative total number of hours in cell D2.
  2. 2. Enter the weeks formula: Select a result cell and enter =QUOTIENT(D2,168).
  3. 3. Enter the days formula: Select another result cell and enter =QUOTIENT(MOD(D2,168),24).
  4. 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.
Calculate a weeks, days, and hours breakdown with familiar formulasOpen and edit Microsoft Excel XLSX and XLS filesFill formulas down for multiple rowsUse WPS Office for free
microsoft office alternative - wps office

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.