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:

  1. Select one of the Row or Column Labels that contains the text (blank).
  2. 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.

__________________________________

You may also like...

4 Responses

  1. CC says:

    That was the easiest, most pain-free solution I found anywhere on Google. Thank You!!!

  2. Pascal says:

    THANKS for your solution, which a have referred to on another blog comment posted under name “pascal1957” on
    “25 Aug 2015 1:06 PM” as being very handy to be used – see: http://blogs.technet.com/b/danstolts/archive/2014/10/26/how-to-hide-replace-empty-format-blank-values-with-an-empty-field-in-an-excel-pivot-table-without-using-filters-step-by-step.aspx?pi30369=2#comments

  3. Alexander says:

    So easy! Thank you!

Leave a Reply to CC Cancel reply

Your email address will not be published. Required fields are marked *