How to Convert PivotTable Hours to Days Using a Calculated Field
Question details
The user needs to display working time in a PivotTable as days instead of hours by dividing the total hours by a standard working day value of 7.5.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Analyzing time tracking, timesheets, or payroll data in a PivotTable where the source data is logged in hours, but the reporting requirement mandates displaying the time in workdays.
- Observed behavior
- The current PivotTable only reports total working time in hours. The user requires a new output column to show these values dynamically divided by 7.5.
Ensure your PivotTable is already generated and that the source data field containing the hours is correctly formatted as numerical values rather than text.
Create a Calculated Field to Divide Hours by Days
Use the built-in Calculated Field feature to create a new reporting column in your PivotTable that automatically converts hours to days without modifying the original source data.
A Calculated Field allows you to perform custom mathematical operations on existing PivotTable fields. This is the cleanest and most efficient way to convert units, such as dividing total hours by 7.5 to get standard workdays, because the calculation happens dynamically within the PivotTable itself.
Click anywhere inside your existing PivotTable to activate the PivotTable Tools tab on the top ribbon.
Navigate to the 'Analyze' (or 'Options') tab, click on 'Fields, Items, & Sets' in the Calculations group, and select 'Calculated Field'.
In the 'Name' input box, type a descriptive title for your new column, such as 'Working Days'.
In the 'Formula' box, delete the default zero and enter your formula. For example, type '=Hours/7.5' (replace 'Hours' with the exact name of the field containing your time data).
Click the 'Add' button, then click 'OK'. The new 'Working Days' field will automatically appear in your PivotTable's Values area.

Convert PivotTable Hours to Days Seamlessly in WPS Spreadsheet
WPS Spreadsheet provides comprehensive support for PivotTables and Calculated Fields, allowing you to quickly process timesheets, analyze payroll data, and convert hours to days with zero hassle.
- 1. Open Your Data: Launch WPS Spreadsheet and open the workbook containing your timesheet PivotTable.
- 2. Access PivotTable Tools: Click on your PivotTable to reveal the 'PivotTable Tools' tab, then click the 'Calculated Field' icon.
- 3. Input the Formula: Give the field a name like 'Total Days', and enter the formula '=Hours/7.5' into the formula bar.
- 4. Apply the Field: Click 'OK' to instantly add the calculated days to your active PivotTable layout.

Frequently Asked Questions
Why is the Calculated Field option grayed out in my PivotTable?
The Calculated Field option is typically grayed out if your PivotTable is based on a data model (like Power Pivot) or an OLAP cube connection. Standard Calculated Fields are only available for standard PivotTables created directly from a regular data range or table.
Can I edit the formula later if our standard workday changes to 8 hours?
Yes. Click your PivotTable, open the 'Calculated Field' menu again, click the 'Name' dropdown arrow, select your existing calculated field, modify the formula to '=Hours/8', and click 'Modify' followed by 'OK'.
Does adding a Calculated Field alter my original source data?
No. Calculated Fields are generated virtually inside the PivotTable cache. Your original source data on the worksheet remains completely untouched and unmodified.
Why does my PivotTable display a #DIV/0! error in the Calculated Field?
This error occurs if your formula attempts to divide by zero, or if the source field contains non-numeric data that evaluates to zero. Ensure you are dividing by a fixed numerical value like 7.5, and that your source hours field contains valid numbers.




