Pivot Table Issues

Display Whole Numbers Without Decimals in an Excel Pivot Table

Algirdas JasaitisAlgirdas Jasaitis Nov 22, 2026 868 views

Question details

Display whole PivotTable values without decimal places and fractional values with one decimal place.

Display Whole Numbers Without Decimals in an Excel Pivot Table
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the value cells

In the PivotTable, select the numeric value cells to format, starting with F9 or the equivalent first cell in your selection.

2
Create the fractional-value rule

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.

3
Create the whole-value rule

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.

4
Check the rule range

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.

Apply Two Conditional Formatting Rules to PivotTable Values
Check the rules after a refresh: If the PivotTable expands or moves after a refresh, review the Applies to ranges and formula references in Conditional Formatting > Manage Rules.
Free Microsoft Office alternative

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.

Analyze spreadsheet data with PivotTable toolsOpen and edit compatible Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interfaceGet a free, lightweight office suite
QA img-9

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.