Dynamic Charting Question re data

P

PS

Hello:

I have set-up a chart that utilizes the techniques described in
previous postings regarding Dynamic Charting within Excel (using the
non-VBA technique of data labels utilizing the Offset formula).

In a prior post a list member described the use of the NA() formula as
part of an IF() statement to eliminate non-blank data from appearing on
the chart if no data was present.

However I am now left with one issue that I need to resolve to make
this chart fully usable - being that my X-axis label shows the future
periods with no data (in fact I used the same formula and end up with
#NA showing on the X-axis where no data is present). Any suggestions
on how to resolve this issue?

Thanks,
Paul
 
J

Jon Peltier

Are you using OFFSET formulas with COUNT inside to count how long the series
should be? This will prevent nonnumeric data from even getting into the
chart.

Keep in mind that the NA() trick only works for marker-type series (line,
XY, and I think Radar), not column and area types.

- Jon
 
B

Bernard Liengme

If you chart has X-axis for the future points you can enter =NA() for the
y-values of these points.
The dynamic chart approach is generally used when the user adds both x- and
y-values and want the chart extended.
best wishes
 
P

PS

Jon:

Thanks for your quick response you're feedback is helpful unfortunately
here is the dilema:

1) Its a Line chart with series data

2) I'm using a CountA formula within the Offset Formula

The labels for the X-axis are in a non-numeric format (e.g. Q206,
Q3/06)

So without the NA() trick I'm still getting an X-axis label but with no
data (thanks to the NA() function trick).

I'm hoping to iron out the wrinkles in this process since I have a
significant number of charts to update.

Also once I've worked out this issue would it be worth trying to learn
enough VBA to do this process vs. the time consuming process of
defining a large number of name ranges.

Thanks,
Paul
 
J

Jon Peltier

So do you not want the category labels when there's no data? Use COUNT() to
define the length of the Y values range, then base the X values range on
this:

Name: YValues
RefersTo:
=OFFSET(Sheet1!$B$2,0,0,COUNT(Sheet1!$B:$B),1)

Name: XValues
RefersTo:
=OFFSET(YValues,0,-1)

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top