Display Whole Numbers Without Decimals in an Excel Pivot Table
Question details
Display whole PivotTable values without decimal places and fractional values with one decimal place.

- Product
- Microsoft Excel PivotTable
- Device & OS
- not provided
- Scenario
- A PivotTable contains both whole numbers and fractional values that need different display formats.
- Observed behavior
- Whole values should appear as 4, while fractional values such as 3.3333333 should appear as 3.3.
Identify the first value cell and the range of numeric values in the PivotTable. The example below uses F9 as the first selected cell; replace it with your own first cell reference.
Apply Two Conditional Formatting Rules to PivotTable Values
Use formula-based rules to assign zero decimal places to whole values and one decimal place to fractional values.
The formulas test the underlying value, not its current display. Formatting changes how the value appears but does not change the value used in calculations.
In the PivotTable, select the numeric value cells to format, starting with F9 or the equivalent first cell in your selection.
Go to Home > Conditional Formatting > New Rule > Use a formula to determine which cells to format. Enter =ROUND(F9,0)<>F9, replacing F9 with the first selected value cell. Select Format > Number, set Decimal places to 1, and confirm.
With the same value cells selected, create another formula-based rule through Home > Conditional Formatting > New Rule. Enter =ROUND(F9,0)=F9, then select Format > Number and set Decimal places to 0.
Go to Home > Conditional Formatting > Manage Rules and check that both rules apply to the intended PivotTable value cells. Test the display with a whole value and a fractional value.

Work With PivotTables in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with your data as you migrate between office suites.

Frequently Asked Questions
Why do the formulas use F9?
F9 represents the first value cell in the selected range. Replace it in both formulas with your first selected cell and leave the reference relative, without dollar signs.
Will these rules change the values used in calculations?
No. The rules only change the displayed number format; the underlying PivotTable values remain unchanged.
What happens when a fractional value rounds to a whole number?
A fractional value still uses the one-decimal rule. For example, 3.96 displays as 4.0 because its underlying value is not a whole number.
Why are new PivotTable values not formatted after a refresh?
The new cells may be outside the original rule ranges. Open Home > Conditional Formatting > Manage Rules and update the Applies to ranges and formula references as needed.




