Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to change date format in axis of chart/Pivotchart in Excel?

In general, the dates in the axis of chart or Pivot Chart are shown as "2014-02-15". In some cases it may require to ignore the Year in the dates such as "2/15", or only keep the Month in the dates like "Feb", do you have any idea to get it done? This article has provided two methods to change date format in axis of chart or Pivot Chart in Excel.

Change date format in axis of Pivot Chart in Excel

Change date format in axis of normal chart in Excel

Change date format in axis of chart by changing source data’s date format in Excel

The date format in normal chart generally keep same as that in source date. If you are entitled to changing date format of source data, you can change the date format in the axis of chart much easier with the Apply Date Formatting utility of Kutools for Excel! Full Feature Free Trial 60-day!


Change date format in axis of Pivot Chart in Excel

Supposing you have created a Pivot Chart as below screen shot shown, and you can change the date format in the axis of this Pivot Chart as follows:

1. In the Pivot Chart, right click the Date filed button and select Field Settings from right-clicking menu.

Note: In Excel 2007, you can't find out the field button in the Pivot chart, but you can click the Date Filed in the Axis Fields (Categories) section of PivotTable Field List pane and select Filed Settings from drop down list (See below screen shot). And this method also works well in Excel 2010 and 2013. See screenshots above.

2. In the coming Field Settings dialog box, click the Number Format button.

3. Now you get into the Format Cells dialog box, click to highlight Custom in the Category box, and then type the format code into the Type box, and click the OK button. (Note: If you want to show 2014-01-03 as 1/3, type m/d into the Type box; if you want to show 2014-01-03 as Jan, type mmm into the Type box.)

4. Click the OK button in Field Settings dialog box. Then you will see the dates in the axis of Pivot Chart are changed to specified format at once. See below screen shots:


Change date format in axis of chart in Excel

For example there is a chart as below screen shot shown, and to change the date format in axis of normal chart in Excel, you can do as follows:

1. Right click the axis you will change data format, and select Format Axis from right-clicking menu.

2. Go ahead based on your Microsoft Excel version:
(1) In Excel 2013's Format Axis pane, expand the Number group on the Axis Options tab, enter m/d or mmm or others into the Format Code box and click the Add button.
(2) In Excel 2007 and 2010's Format Axis dialog box, click Number in left bar, type m/d or mmm or other codes into the Format Code box, and click the Add button.

Excel 2013 and higher versions:
Excel 2007 and 2010:

Note: If you enter m/d into the Format Code box, the dates in selected axis will be changed to the format of 1/1, 2/1,…; if you enter mmm into the Format Code box,  the dates in axis will be changed to the format of Jan, Feb, ….

3. Close the Format Axis pane/dialog box. Then you will see the dates in the chart axis are changed to the specific format at once.


Demo: Change date format in axis of chart or Pivotchart in Excel

In this Video, the Kutools tab and the Kutools Plus tab are added by Kutools for Excel. If need it, please click here to have a 60-day free trial without limitation!



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Sphamandla Shezi · 1 years ago
    Great stuff!!! Really useful and helpful.
  • To post as a guest, your comment is unpublished.
    Katharine · 1 years ago
    I have Excel 2013 and need to change the y-axis date format from MM/DD/YY to MM/YY.

    The y-axis is a date which Excel forces this date to be auto-calculated.

    My units are set to 30.5 increments to increment by month.
    The date does not always show the first day of the month due to the days variation (29, 30, 31).

    If I can change the date format from mm/dd/yy to mm/yy the auto-calculate date will work for the graph.

    Due to the Excel capability of the end-user of this graph, I need to avoid using VBA or macros.

    I cannot find a way to change an auto-generated number format in Excel 2013.

    Help?
  • To post as a guest, your comment is unpublished.
    Rajith · 2 years ago
    Lovely... Trick and Its a great tip.. !