How to Create an Excel PivotTable for Weekly Productivity Tracking
Question details
The user needs to generate a comprehensive productivity report that summarizes work hours and task counts by project or job number, while enabling filtering by specific dates or work weeks.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking weekly employee or personal productivity using time-based task data across various projects and work types.
- Observed behavior
- The goal is to build a structured PivotTable that accurately calculates total accumulated hours and task counts categorized by job number and work type.
Ensure your raw data contains no blank columns or rows, and format your data range as a structured Excel Table to ensure the PivotTable updates automatically when new time logs are added.
Prepare Data and Create a Productivity PivotTable
This is the most robust method to dynamically summarize work hours, count tasks, and filter records by work week.
To get accurate summaries, your source data must be clean and organized with dedicated columns for Date, Job Number, Task Number, Work Type, Start Time, and End Time.
Create a new column named 'Total Time'. Assuming Start Time is in column E and End Time is in column F, enter the formula =F2-E2. Apply the custom number format '[h]:mm' to this column to display hours accurately.
Select your entire data table. Navigate to the 'Insert' tab on the ribbon and click 'PivotTable'. Choose 'New Worksheet' and click 'OK'.
In the PivotTable Fields pane, drag 'Job Number' and 'Work Type' into the 'Rows' area. Drag the 'Date' field into the 'Filters' area so you can easily isolate specific work weeks.
Drag 'Total Time' and 'Task Number' into the 'Values' area. Click on 'Task Number' in the Values box, select 'Value Field Settings', and change it to 'Count'. Ensure 'Total Time' is set to 'Sum'.

Use a Filtered Excel Table for Simple Tracking
Use this method if you only need to view specific job categories without complex cross-tabulation or automatic total summaries.
Easily Create Productivity PivotTables in WPS Spreadsheet
WPS Spreadsheet offers powerful PivotTable functionality to summarize your weekly work hours and track tasks seamlessly. It perfectly handles time calculations and large productivity datasets with an easy-to-use interface.
- 1. Open data in WPS: Launch WPS Spreadsheet and open the document containing your weekly time tracking data.
- 2. Insert PivotTable: Select the data range, go to the 'Insert' tab, and click on the 'PivotTable' icon.
- 3. Assign fields: Drag 'Job Number' to the Rows area and 'Total Time' to the Values area in the right-hand panel.
- 4. Apply Filters: Drag 'Date' into the Filters area to enable quick switching between different work weeks.

Frequently Asked Questions
Why is my PivotTable showing the wrong total hours?
By default, Excel formats time using a 24-hour clock. To display cumulative hours over 24, right-click the Total Time values in the PivotTable, select 'Number Format', choose 'Custom', and enter '[h]:mm'.
How can I group dates into work weeks in my PivotTable?
If you placed Dates in the Row area instead of Filters, you can group them. Right-click any date in the PivotTable, select 'Group', deselect 'Months', choose 'Days', and set the 'Number of days' to 7. This will bundle daily productivity data into 7-day periods.
How do I calculate task duration if the shift crosses midnight?
Standard subtraction (End Time - Start Time) will result in negative numbers if a task crosses midnight. Instead, use the formula =MOD(End Time - Start Time, 1) or =IF(End Time < Start Time, End Time + 1 - Start Time, End Time - Start Time) to calculate the correct duration.




