Split weekly total hours across days in Excel
Your source lists a weekly total per employee, but the delivery template has a column for every day. In this example, 47 hours are allocated to weekdays first, eight hours per day, then the remaining seven hours are split equally between Saturday and Sunday.
The sample uses fictional records and Chinese column labels. The eight-hour cap is an example allocation rule, not evidence of actual attendance. Follow your original records and business rules.
Upload the weekly totals and daily template
- Upload
daily-hours-template.xlsxas the optional template. It contains 员工 (Employee) and 周一 through 周日 (Monday through Sunday). - Upload
weekly-hours-source.xlsxas the source. It contains 员工 (Employee) and 工时 (Hours). Select Start processing. - Enter the instruction below in the conversation and select Send.
Copy 员工 from the source to 员工 in the template. Allocate 工时 across 周一, 周二, 周三, 周四, 周五, 周六 and 周日. Fill the first five columns in order, capped at 8 hours each. Split the remainder equally between the final two columns, also capped at 8 hours each. Keep only the employee and seven day columns, in template order.
Check the daily allocation and reconcile the weekly total
Review the allocation rule and the daily cap. In the preview, open a row’s source comparison to check the original weekly total. Confirm the seven-day result before downloading.
| Total | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
|---|---|---|---|---|---|---|---|
| 35 | 8 | 8 | 8 | 8 | 3 | 0 | 0 |
| 47 | 8 | 8 | 8 | 8 | 8 | 3.5 | 3.5 |
| 56 | 8 | 8 | 8 | 8 | 8 | 8 | 8 |
In the exported workbook, use =SUM(B2:H2) to reconcile the seven daily values with the source total.
Try a total that exceeds the cap
Change the final source total from 56 to 57 and process the file again. The seven-day cap only permits 56 hours. Review the excess instead of silently inventing or dropping time. Check the original records, or confirm a different allocation rule before generating a new result.