Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Data Number Formatting Is Lost After You Create a PivotTable


View products that this article applies to.

This article was previously published under Q214021

↑ Back to the top


Symptoms

In Microsoft Excel, when you create a PivotTable, the formatting of the numeric values in the table may not be retained.

For example, if you create a PivotTable using the following column of data
$56.00
$67.00
$32.00
the values in the PivotTable may be displayed as follows:
56
67
32

↑ Back to the top


Cause

This behavior can occur if you do not take steps to set and preserve the formatting that you apply to the data values in the PivotTable.

↑ Back to the top


Workaround

You can set the formatting of a field that contains numbers in a PivotTable either while you are creating the PivotTable or after you create it. To do so, follow the steps of the appropriate method below.

Method 1: While Creating the PivotTable

  1. In the PivotTable and PivotChart Wizard - Step 3 of 3 dialog box, click Options.
  2. In the PivotTable Options dialog box, under Format options, click to select the Preserve formatting check box.

Method 2: After Creating the PivotTable

  1. Select the cells in the PivotTable that contain the numeric field values that you want to format.
  2. On the Format menu, click Cells.
  3. In the Format Cells dialog box, click the Number tab, select the number format that you want, and then click OK.
Note that this number formatting is not lost when you click the Refresh Data command to update the PivotTable.

↑ Back to the top


References

For more information about customizing a PivotTable, click Microsoft Excel Help on the Help menu, type custom calculations for pivottable and pivotchart data fields in the Office Assistant or the Answer Wizard, and then click Search to view the topic.

↑ Back to the top


Keywords: KB214021, kbprb

↑ Back to the top

Article Info
Article ID : 214021
Revision : 4
Created on : 9/26/2003
Published on : 9/26/2003
Exists online : False
Views : 274