Excel chart - Changing Axis Format number/format to 01-mmm-yy

jaspalsd

Board Regular
Joined
Feb 3, 2014
Messages
72
Hi,

I am wondering if it's possible to change the axis labels of my date range from MMM-YY to the date of 01-MMM-YY ?

This is because I have gridlines and as an example one of my bars starts on the 1st July 2019 but my bar will start before the gridline of "Jul-19" because the axis date is 04-07-19 without formatting because of my 30.0 intervals.

It is not big deal and I can just remove the gridlines but it'll be handy to know :)

thanks for your suggestions!
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Yes this is do-able.

Right click on the axis.
Format Axis
Number
Under Category, select Custom
Then in Format Code, type in something like dd-mmm-yy
Then click Add.
 
Upvote 0
Hi Gerald,

I've already done this but I need it to always start on the first of each month.

E.g. 01-MM-yyyy

one of my examples is that the bar starts from 01-07-2019 but the gridline starts at 04-07-2019

pEDs8yP.jpg
 
Last edited:
Upvote 0
So let's see if I've got this right, you don't actually want to change the axis labels from MMM-YY to 01-MMM-YY, you actually want to force the gridline to be on the 1st day of the month, is that right ?

In that case, try this . . .

Right click on the chart axis
Format axis
Under Axis Type, choose Date Axis
On Major Unit, select the option for Fixed.
Also on Major Unit, select the drop down box on the right (it may say "Days") and choose Months.
In the box to the left, it may have the number 7, change this to 1.
Then on Minimum, choose Fixed, and select a date that is the first day of your first month.
 
Upvote 0
. .

Right click on the chart axis
Format axis
Under Axis Type, choose Date Axis


Thanks for the advice. Unfortunately for my chart the "Axis Type" is not available because it's most likely that I have stacked bars. I did a test on a column chart with simple data and the axis type was available.....

Screenshots attached

n7VwcQr.jpg




jHSaQyy.jpg



Thanks for the tips, I'm sure it'll be useful for me in the future
 
Upvote 0
I am an idiot (edited) after realising the below won't work when applying the MMM-YY format as the 31/05/2019 will be May-19 instead of Jun-19

I give up :)

YUJcdFQ.jpg
 
Last edited:
Upvote 0
apologies I am not bumping as I can't edit the previous post - if admin can remove my last post that'll be great!

I changed the minimum date to May 1st 2019 but with a decimal, after trial and error. I also added intervals of 30.7, again with trial and error

If all else fails this will suffice but there is a possibility that problems may occur when other dates are added down the line

xW9XLTY.jpg
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top