Jon,
I have a series of reports which contain the same graph. The source
data
I
want to chart for the National report has all data points for all
regions.
However I also want to chart the only the regional data for the
regional
reports. The graph itself does not seem to accept a formula to change
the
data I want to plot. Therefore, i created a source data line (a - j)
that
changes according to the report I am running as follows:
Region: 1 2 3 4 5 6 7
8
9 10
Source data to chart: a b c d e f g h
i j
National Report 3 8 4 9 2 7 8
5
7 4
Eastern Report 3 8 4
Central Report 9 2 7 8
Western Report:
5 7 4
Top Performers: 8 9 7 8
7
a is [=vlookup(report,source table,2,False)]
b is [=vlookup(report,source table,3,False)]
c is [=vlookup(report,source table,3,False)]
The source data line in the graph is b3:k3 for the national report
If I am running the eastern report the data to plot line is: 3 8
4 --
-- -- -- etc
If I am running the top performers report the plot line is: -- 8 --
9 --
7 8 -- 7
I assume the graph's source data line is the same b3:K3 for all reports
Therefore, my regional graph show a series of empty columns.
How do I change the source data line for the chart so that it only
shows
the
data points I am charting and so that it ignores the blank data points.
BarryL
:
The point is, you have to change the data you want to chart. The chart
only
plots what you tell it. The data manipulation smarts are in the
worksheet.
- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. -
http://PeltierTech.com
_______
I would like to be able to use a formula in an Excel 2003 graph, to
dynamically modify the source and lable data of a graph based on a
cell
reference.
Use the IF(), CHOOSE(), or LOOKUP() functions as appropriate. This
is
really a spreadsheet question rather than a chart question.
--
Del Cotter
NB Personal replies to this post will send email to
(e-mail address removed),
which goes to a spam folder-- please send your email to del3
instead.