Custom format to add letter to specified X-axis dates

MassMP

New Member
Joined
Jul 7, 2013
Messages
2
Hi, I have a line chart with dates formatted as YYYY on the X-axis. For some years the data charted represent actual values while some years represent estimates, for which reason I would like to add an "e" following the YYYY format. So problem is: how to do a custom format which will put an "e" at the end of the x-axis label for all years>2012 but not for those <2012. Thanks in advance!
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
Hi

It's not clear from your post what happens for the year 2012. Since we are still in 2012 I'll assume also the "e" in this case.

Use the format:

[>40908]yyyy"e";yyyy

Remark: 40908 is the number value corresponding to 2011-12-31.
 
Upvote 0
Thank you Rick.

With all the back and forth travelling, I misread my time space continuum coordinates.


So, assuming we are in 2013, use:

[>41274]yyyy"e";yyyy

Remark: 41274 is the number value corresponding to 2012-12-31.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,909
Messages
6,175,315
Members
452,634
Latest member
cpostell

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