View Single Post
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Excel chart categories....

Replace the "" in the formula by NA().
--
David Biddulph

"Noob Jedi" wrote in message
...

Yes, David, they are in text format. Good observation. Thank you for
being patient with me, by the way.

Andy's link to the dynamic chart tutorial was tremendously helpful.
There is one more flaw that the dynamic charting still doesn't seem to
get around. Perhaps you would know of a way. The way I have it set up
is that the Y values are being automatically calculated. It counts the
number of records in a particular month and pools into my table chart
with each month listed as column labels and their values in the
adjacent column. Now, the Dynamic Chart is great if there have yet to
be any values to be added into the empty cell, and results in
discluding it's reflection on the chart. However, if I have a formula
in that cell that reads as "" to show an empty cell until records are
added, the chart assumes that it is NOT an empty cell (because a
formula is still in the cell) and attempts to include it in its
display. Do you know of a method I could use to avoid that from
happening with my charts?

On Dec 21, 2:03 am, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
My method worked quite happily for me the way I described it. I got X
values where I'd got numbers, and the NA() X values were ignored. It
sounds
to me like you've got text, rather than dates formatted to show as month
names.
--
David Biddulph

"Noob Jedi" wrote in message

...



That is correct. After Googling it a little more, I realized that what
I'm trying to do is called a Dynamic Chart. However, much of the
tutorials online are a bit confusing. Perhaps you could dumb it down
for me?
On Dec 20, 2:48 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
What sort of chart are you plotting? I assumed you were using an XY
chart
as you were talking about X and Y values?
"Noob Jedi" wrote in message
...
Maybe I'm missing something here. I tried using your method in a new
worksheet. Assuming my X values are going to be from A1:A12 and my Y
values are going from B1:12. Obvoiusly, 12 for the number of months
in
a year.


Your formula of:
=IF(ISNA(y_value),NA(),x_value


Makes the X value turn "#N/A" if the Y value is "#N/A." Otherwise, it
would say the X values.


In my case of having only data up to June, my colum of A1:A12 shows
A1:A6 with the respective name of the month and A7:A12 showing
"#N/A."


When I create the chart and link it to the 12 rows, it still shows
the
6 "#N/A" following the first 6 months named.


I'm wanting the chart to only show categories of January - June. No
indiciation of the "#N/A" categories included in the chart:


Like this:
5
4
3
2
1
Jan Feb March April May June


NOT:
5
4
3
2
1
Jan Feb March April May June #N/A #N/A #N/A #N/A
#N/A #N/A
On Dec 20, 12:18 pm, "David Biddulph" <groups [at] biddulph.org.uk
wrote:
Use a formula for your X-axis series so that you only populate the
cell
with
a number if you have Y-axis values, and otherwise put NA() in there.
=IF(ISNA(y_value),NA(),x_value)
--
David Biddulph


"Noob Jedi" wrote in message


...


Assume you have a data of 12 lines that time sensitive due to the
dates they would be filled. Each line would be a number for that
month.


I get the whole, adding NA() to remove the zero so that it does
not
plot. However, I wanted to take it a step further...


Currently, the graph will plot up to the month you are in. Let's
assume it is June. As for the X-axis it shows from January to
December, but the graph does not plot anything after June due to
the
NA() function to remove any zero values.


If you have 12 lines to signify each month, is it possible so that
the
categories seen on the X axis as well as what is plotted, to only
show
from January to June instead of January to Decemeber but stops
plotting at June?