
If you show pivot table subtotals for a date field, the dates might be in a format that is different from the other dates in that field. See why that happens, and how you can avoid the date format problem.
In the short video below, I show why the problem occurs, and how you can prevent the problem of different date formats.
There are written steps below the video, and you can download the free workbook to follow along.
3a. Subtotal Date Format Problem
You might see different date formats in pivot table subtotals, like the example shown below.
- In the headings, the dates have the format: dd-mmm-yy
- In the subtotals, the date format is: d/m/yyyy

Why It Happens
This type of pivot table formatting problem can happen if you format the worksheet cells, instead of formatting the pivot table’s date field.
For example:
- Select the pivot table date cells
- Format them like normal worksheet cells, using commands on the Excel Ribbon
- Later, add subtotals for the date items
When you format the date cells with that technique, the subtotal dates won’t automatically get the format that you applied to the date cells.
Fix Date Format Problem
To avoid the problem, always format pivot table dates and numbers through the Field Settings dialog box.
Here are the steps for this example:
- Right-click one of the date field labels
- In the popup menu, click Field Settings.
- At the bottom left, click the Number Format button
- Select the Date format that you previously applied to the date field
- Click OK, twice, to close the dialog boxes
After that change, the subtotal number format should match the other dates in the pivot field.

2) Change Date Format Pivot Chart Axis
The pivot chart date formats are controlled by the date field format
in the PivotTable.
Change Pivot Table Date Format
To change the date format in the pivot table, follow the steps below:
- First, right-click a date in the pivot table row labels or column labels (not the pivot chart).
- Click on Field Settings, to open the Field Settings dialog box
- Change the Number Format to the date format that you want
- Select one of the standard date formats, or create a custom format that you need.
After that change, the chart axis date format should match the pivot field date format.
Different Date Format in Pivot Chart
If you need a different date format in the pivot chart, but you don't want to change the existing date field format, follow the steps below, to create a new date field.
- First, add a new column in the pivot table source date.
- Next, type an equal sign in the first cell in the new column, then click on the existing date field in that row.
- Press the Enter key, to complete the formula
- The formula should automatically fill down the rest of the rows
- Next, format the new dates, in the format that you want in the pivot chart.
- Refresh the pivot table, to see the new date field in the pivot table field list
- Remove the old date field from the pivot table, and add the new date field

If the source data for your pivot table contains dates, you can format those dates with the Number Format commands.
To change date formats, follow the steps below -- 3 different options are shown
- Note: All of the built-in date formatting options should work correctly, after you have converted the text dates to real dates.

Option 1 - Quick Format
- Select cells with fixed dates, and use the quick Number formats on the Excel Ribbon
- For example, click the Short Date format or Long Date format, to apply date formatting quickly
Option 2 - Format Cells
- Select cells with fixed dates, and go to the Home tab on the Excel Ribbon
- Click the dialog launcher, at the bottom right of the Number group on the Ribbon, to see more formats.
- In the Format Cells dialog box, select the Number tab, if it is not selected automatically
- TIP: You can use a keyboard shortcut to open the Format Cells dialog box:
- At the left, in the Category list, click on the Date category
- In the centre of the dialog box, in the Type list, you'll see a list of built-in Excel date formats
- In that list, click on the date format that you want for the fixed dates
- Some formats will show a single digit for day or month, when applicable, e.g. 6/7/22
- Other formats will always show 2 digits for day or month, e.g. 06/07/22
- Click the OK button, to apply the selected format
Option 3 - Custom Format
Follow these steps to create a custom date format:
- Select cells with fixed dates, and go to the Home tab on the Excel Ribbon
- Click the dialog box launcher, at the bottom right of the Number group on the Ribbon, to see more formats
- In the Format Cells dialog box, at the left, in the Category list, click to select Custom category
- In the centre of the dialog box, in the Type box, type the text string that represents the custom date format you want to use
- For example, try one of these text strings for the custom number format setting,
- type dd-mmm-yyyy for a date with a two-digit day, short month name, and 4-digit year: 21-Feb-2023
- type ddd mmmm dd for a date with 3-character day name, full month name and 2-digit day number: Thu February 21
- NOTE: There are more examples of Custom number formatting on the Change Date Format page
In the screen shot below, the pointer is over the dialog box launcher for the Number group on the Ribbon
4. Get the Excel File ✅
Get Monthly Excel Tips!
Don't miss my monthly Excel newsletter! You'll get quick tips, article links, and a bit of fun. Add your email, and click Sign Up.
Next, when you get my reply, click the Confirm button. I add this step to protect you from spam!
Related Tutorials
Pivot Chart Number Formatting
Fix Date Format
Change Date Format