Pivot Table Issues

How to Convert PivotTable Hours to Days Using a Calculated Field

Steven ParkerSteven Parker Oct 16, 2026 871 views

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.

How to Convert PivotTable Hours to Days Using a Calculated Field
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.
Before you start

Ensure your PivotTable is already generated and that the source data field containing the hours is correctly formatted as numerical values rather than text.

Solution 1Recommended

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.

1
Select the PivotTable

Click anywhere inside your existing PivotTable to activate the PivotTable Tools tab on the top ribbon.

2
Open the Calculated Field Dialog

Navigate to the 'Analyze' (or 'Options') tab, click on 'Fields, Items, & Sets' in the Calculations group, and select 'Calculated Field'.

3
Name the New Field

In the 'Name' input box, type a descriptive title for your new column, such as 'Working Days'.

4
Enter the Division Formula

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).

5
Add and Apply

Click the 'Add' button, then click 'OK'. The new 'Working Days' field will automatically appear in your PivotTable's Values area.

Create a Calculated Field to Divide Hours by Days
Formatting Tip: To make the data easier to read, right-click any value in the new column, select 'Number Format', and set it to 'Number' with 1 or 2 decimal places.
Advanced PivotTables in WPS Spreadsheet

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. 1. Open Your Data: Launch WPS Spreadsheet and open the workbook containing your timesheet PivotTable.
  2. 2. Access PivotTable Tools: Click on your PivotTable to reveal the 'PivotTable Tools' tab, then click the 'Calculated Field' icon.
  3. 3. Input the Formula: Give the field a name like 'Total Days', and enter the formula '=Hours/7.5' into the formula bar.
  4. 4. Apply the Field: Click 'OK' to instantly add the calculated days to your active PivotTable layout.
Easily insert and manage Calculated Fields to perform custom math in PivotTables100% format compatibility with Microsoft Excel (.xlsx) PivotTable filesLightweight desktop application with fast performance for large datasetsFree to use with an intuitive, familiar interface
microsoft office alternative - wps office

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.