ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Chart adds in extra date values on the X axis (https://www.excelbanter.com/charts-charting-excel/185682-chart-adds-extra-date-values-x-axis.html)

Pete Rooney

Chart adds in extra date values on the X axis
 
Good afternoon - just wondering if anyone can help.

I'm plotiing a range of data where the X-axis cells contain dates. I'm
trying to plot a cumulative line where the number of items processed each day
is the same, so the line will be straight. However, I'm only going to be
working Monday-Friday, and there's a bank Holiday coming up, so I won't have
items processed on every day.
So, I11 contains Thu 01 May, J11 contains Fri 02 May, K11 contains Tue 6th
of May.

The problem I have is that the resultant chart is adding the missing dates
to the X-Axis, so instead of a straight line being plotted, it's kinked.

How can I make the chart plot just the dates contained in the X-axis range
and not add in all the days in between?

Thanks in advance

Pete


The cells are actual dates, as they are used as lookup values with
SUMPRODUCT formulae, so I can't change them to labels.


ExcelBanter AI

Answer: Chart adds in extra date values on the X axis
 
Hey Pete,

I understand that you are having trouble with a macro in Excel that is not working as expected. I can help you with that.

Please provide me with the code you are using, and a description of what you want the macro to do. Once I have that information, I can assist you in troubleshooting the issue and getting the macro to work properly.

In the meantime, please make sure that the macro is enabled in your Excel settings and that you have the correct permissions to run macros on your computer.

Looking forward to hearing back from you soon.

Best regards,
Formula:

YourName 


Pete Rooney

Chart adds in extra date values on the X axis
 
I managed to get around the problem by adding a new row that contained the
TEXT() values of the cells containing the dates and used this row as the
x-axis instead.
However, I would be interested to know if this "fill in the missing dates in
the series" effect is something that can be deactivated without having to go
this workaround.

Cheers

Pete

"Pete Rooney" wrote:

Good afternoon - just wondering if anyone can help.

I'm plotiing a range of data where the X-axis cells contain dates. I'm
trying to plot a cumulative line where the number of items processed each day
is the same, so the line will be straight. However, I'm only going to be
working Monday-Friday, and there's a bank Holiday coming up, so I won't have
items processed on every day.
So, I11 contains Thu 01 May, J11 contains Fri 02 May, K11 contains Tue 6th
of May.

The problem I have is that the resultant chart is adding the missing dates
to the X-Axis, so instead of a straight line being plotted, it's kinked.

How can I make the chart plot just the dates contained in the X-axis range
and not add in all the days in between?

Thanks in advance

Pete


The cells are actual dates, as they are used as lookup values with
SUMPRODUCT formulae, so I can't change them to labels.


David Biddulph[_2_]

Chart adds in extra date values on the X axis
 
You haven't told us what type of chart you are using. If it's a line chart,
try changing the X axis from a time axis to a category axis (under Chart
Options/ Axes).
--
David Biddulph

"Pete Rooney" wrote in message
...
Good afternoon - just wondering if anyone can help.

I'm plotiing a range of data where the X-axis cells contain dates. I'm
trying to plot a cumulative line where the number of items processed each
day
is the same, so the line will be straight. However, I'm only going to be
working Monday-Friday, and there's a bank Holiday coming up, so I won't
have
items processed on every day.
So, I11 contains Thu 01 May, J11 contains Fri 02 May, K11 contains Tue 6th
of May.

The problem I have is that the resultant chart is adding the missing dates
to the X-Axis, so instead of a straight line being plotted, it's kinked.

How can I make the chart plot just the dates contained in the X-axis range
and not add in all the days in between?

Thanks in advance

Pete


The cells are actual dates, as they are used as lookup values with
SUMPRODUCT formulae, so I can't change them to labels.




Del Cotter

Chart adds in extra date values on the X axis
 
On Wed, 30 Apr 2008, in microsoft.public.excel.charting,
Pete Rooney said:
I managed to get around the problem by adding a new row that contained the
TEXT() values of the cells containing the dates and used this row as the
x-axis instead.
However, I would be interested to know if this "fill in the missing dates in
the series" effect is something that can be deactivated without having to go
this workaround.


Yes. The first time, you had dates that Excel recognised, and it
automatically selected "Time-scale" for the X axis. The second time, you
gave the X axis data as words that Excel cold not recognise as dates,
and it chose "Category" for the X axis.

If you go to the menu...

Chart.. Chart Options.. Axes

...you can switch the X axis from "Automatic" (Excel chooses) to
"Category" or "Time-scale" (you choose). You want to choose "Category",
and then the X axis will work the way you want even if the cells are
clearly dates.

Typical of Microsoft to hide important axis controls in a separate
"Chart Options" section instead of the logical "Format Axis" section
that everybody knows about, so that nobody knows what's going on when
this happens, or how to fix it. And of course they're too cheap for
manuals, which should make them even more careful to design their
product logically, not less.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.

Pete Rooney

Chart adds in extra date values on the X axis
 
Del,

Yes, that's it exactly - thank you VERY much!

Regards

Pete



"Del Cotter" wrote:

On Wed, 30 Apr 2008, in microsoft.public.excel.charting,
Pete Rooney said:
I managed to get around the problem by adding a new row that contained the
TEXT() values of the cells containing the dates and used this row as the
x-axis instead.
However, I would be interested to know if this "fill in the missing dates in
the series" effect is something that can be deactivated without having to go
this workaround.


Yes. The first time, you had dates that Excel recognised, and it
automatically selected "Time-scale" for the X axis. The second time, you
gave the X axis data as words that Excel cold not recognise as dates,
and it chose "Category" for the X axis.

If you go to the menu...

Chart.. Chart Options.. Axes

...you can switch the X axis from "Automatic" (Excel chooses) to
"Category" or "Time-scale" (you choose). You want to choose "Category",
and then the X axis will work the way you want even if the cells are
clearly dates.

Typical of Microsoft to hide important axis controls in a separate
"Chart Options" section instead of the logical "Format Axis" section
that everybody knows about, so that nobody knows what's going on when
this happens, or how to fix it. And of course they're too cheap for
manuals, which should make them even more careful to design their
product logically, not less.

--
Del Cotter
NB Personal replies to this post will send email to ,
which goes to a spam folder-- please send your email to del3 instead.


Pete Rooney

Chart adds in extra date values on the X axis
 
David,

Yes, it was a line chart and yes, this was the answer!

Cheers

Pete



"David Biddulph" wrote:

You haven't told us what type of chart you are using. If it's a line chart,
try changing the X axis from a time axis to a category axis (under Chart
Options/ Axes).
--
David Biddulph

"Pete Rooney" wrote in message
...
Good afternoon - just wondering if anyone can help.

I'm plotiing a range of data where the X-axis cells contain dates. I'm
trying to plot a cumulative line where the number of items processed each
day
is the same, so the line will be straight. However, I'm only going to be
working Monday-Friday, and there's a bank Holiday coming up, so I won't
have
items processed on every day.
So, I11 contains Thu 01 May, J11 contains Fri 02 May, K11 contains Tue 6th
of May.

The problem I have is that the resultant chart is adding the missing dates
to the X-Axis, so instead of a straight line being plotted, it's kinked.

How can I make the chart plot just the dates contained in the X-axis range
and not add in all the days in between?

Thanks in advance

Pete


The cells are actual dates, as they are used as lookup values with
SUMPRODUCT formulae, so I can't change them to labels.





David Biddulph[_2_]

Chart adds in extra date values on the X axis
 
Glad it helped.
--
David Biddulph

"Pete Rooney" wrote in message
...
David,

Yes, it was a line chart and yes, this was the answer!

Cheers

Pete



"David Biddulph" wrote:

You haven't told us what type of chart you are using. If it's a line
chart,
try changing the X axis from a time axis to a category axis (under Chart
Options/ Axes).
--
David Biddulph

"Pete Rooney" wrote in message
...
Good afternoon - just wondering if anyone can help.

I'm plotiing a range of data where the X-axis cells contain dates. I'm
trying to plot a cumulative line where the number of items processed
each
day
is the same, so the line will be straight. However, I'm only going to
be
working Monday-Friday, and there's a bank Holiday coming up, so I won't
have
items processed on every day.
So, I11 contains Thu 01 May, J11 contains Fri 02 May, K11 contains Tue
6th
of May.

The problem I have is that the resultant chart is adding the missing
dates
to the X-Axis, so instead of a straight line being plotted, it's
kinked.

How can I make the chart plot just the dates contained in the X-axis
range
and not add in all the days in between?

Thanks in advance

Pete


The cells are actual dates, as they are used as lookup values with
SUMPRODUCT formulae, so I can't change them to labels.








All times are GMT +1. The time now is 02:04 PM.

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