Change Blank Labels in a Pivot Table
In a pivot table, you might have a few row labels or column labels that contain the text “(blank)”. This happens if data is missing in the source data. For example, in the source data, there might be a few sales orders that don’t have a Store number entered.
You want blank cells in the Row Labels area and Column Labels area to contain the text “N/A.” In the PivotTable Options dialog box, you entered N/A as the text to display in empty cells. However, the empty cells appear as (blank) in the Row and Column Labels areas.
Change the Labels
In the PivotTable Options dialog box, the setting for empty cells affects cells in the Values area, but not the Row or Column Labels areas. In the screen shot above, you can see that missing data in the Values area has been replace by N/A, but the row and column labels haven’t changed.
You can manually change the (blank) labels in the Row or Column Labels areas by typing over them in the pivot table. You can type any text to replace the (Blank) entry, even a space character, but you can’t clear the cell and leave it empty:
- Select one of the Row or Column Labels that contains the text (blank).
- Type N/A in the cell, and then press the Enter key.
Note: All other (Blank) items in that field will change to display the same text, N/A in this example.
Programmatically Change the Labels
You can also change the (blank) labels programmatically. There's sample code in the Pivot Power Add-in that you can download from the Contextures web site.