ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Chart Date X Axis (https://www.excelbanter.com/charts-charting-excel/12050-chart-date-x-axis.html)

MrC

Chart Date X Axis
 
I currently have a chart with an x axis that is dates. The dates aren't
in order in the supporting table but display in order on the chart which
is great.

Is there a way of appending some text to each date field and having the
date and text displayed on the x axis and having Excel order the dates
in chronological order.

ie in the table
10 Apr 04-1
15 Feb 04-5
20 May 04-2
31 Jan 04-4
would still print in date order.
Thanks...

MrC

MrC wrote:

I currently have a chart with an x axis that is dates. The dates aren't
in order in the supporting table but display in order on the chart which
is great.

Is there a way of appending some text to each date field and having the
date and text displayed on the x axis and having Excel order the dates
in chronological order.

ie in the table
10 Apr 04-1
15 Feb 04-5
20 May 04-2
31 Jan 04-4
would still print in date order.
Thanks...

Sorry,
"would still print in date order"
should say
"would display in date order along the x axis of the chart"

Jon Peltier

Excel uses the values as dates if it recognizes their date format. As
soon as you append text, their format is no longer a date, and you lose
the ability to sort by date order.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

MrC wrote:

I currently have a chart with an x axis that is dates. The dates aren't
in order in the supporting table but display in order on the chart which
is great.

Is there a way of appending some text to each date field and having the
date and text displayed on the x axis and having Excel order the dates
in chronological order.

ie in the table
10 Apr 04-1
15 Feb 04-5
20 May 04-2
31 Jan 04-4
would still print in date order.
Thanks...



All times are GMT +1. The time now is 07:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com