Create Weekly Timesheet Totals from Daily Hours in Excel
Question details
Create weekly totals from daily employee hours across a yearly timesheet without manually calculating each week.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Daily hours are recorded in monthly timesheets and need to be summarized by employee and week across the year.
- Observed behavior
- The desired result is a weekly summary that includes hours from dates spanning different months.
Check that dates are real spreadsheet dates and hours are numeric. Decide which day starts your workweek and whether partial weeks at the beginning and end of the year should be included.
Use dynamic arrays to total consecutive seven-day groups
Use this method in Microsoft 365 when each employee has one continuous list of daily hours.
The list must be in date order, with one value for every day; enter 0 for days without hours. The first value must correspond to the first day of your chosen workweek. WRAPROWS pads an incomplete final group with zeros.
Place one employee's daily hours in a single row or column, including zeros for days without hours. Select the range and give it the name hoursWorked using Formulas > Define Name.
If the list starts with days from an incomplete week and you intend to exclude them, use DROP to skip those values. For example, DROP(hoursWorked,2) skips the first two days; use hoursWorked directly if the first value starts a week.
In an empty cell, enter =BYROW(WRAPROWS(hoursWorked,7,0),LAMBDA(x,SUM(x))). To skip the first two values, replace hoursWorked in the formula with DROP(hoursWorked,2).
Review the spilled totals against the source dates, especially the first and last groups. Leave cells below the formula empty so the results can spill.

Summarize weekly hours by employee with SUMIFS
Use a continuous date-based table for older Excel versions or when partial weeks must be included.
Summarize weekly employee hours in WPS Spreadsheets
Use a week-start helper column and SUMIFS in WPS Spreadsheets to total daily employee hours across monthly records.
- 1. Open the timesheet: Open WPS Spreadsheets and select Open to load your Excel timesheet. Put dates, employee names, and hours in columns A, B, and C on one sheet.
- 2. Add week-start dates: In D2, enter =A2-WEEKDAY(A2,2)+1, then fill the formula down for all records. Format column D as a date.
- 3. Set up the summary: List employee names in column F and their Monday week-start dates in column G, using one row per employee and week.
- 4. Calculate weekly hours: In H2, enter =SUMIFS($C$2:$C$10000,$B$2:$B$10000,F2,$D$2:$D$10000,G2), then fill it down. Extend the row limits if your source data goes beyond row 10000.
- 5. Save the summary: Use File > Save As to save the updated workbook in Excel XLSX format.

Frequently Asked Questions
How do I include a week that spans two months?
Combine both months' records in one table and calculate the same week-start date for each day. SUMIFS will then include matching records from both months.
What happens if the first or last week is incomplete?
The date-based SUMIFS method includes the available days in that week. With WRAPROWS, the last group is padded with zeros; use DROP on leading days only if you want to exclude their hours.
Can I use these formulas for multiple employees?
Yes. With SUMIFS, put employee names in the source table and list each employee and week in the summary. The employee criterion limits each total to that person's records.
How do I total time values instead of decimal hours?
Use the same SUMIFS or SUM formula, then format the result cells with the custom format [h]:mm so totals over 24 hours display correctly.
Why does the dynamic array formula return an error?
Check that your Excel version supports WRAPROWS, BYROW, and LAMBDA, and clear any cells blocking the spilled results. If those functions are unavailable, use the SUMIFS method.




