I have an Excel application that returns relevant data into a table
that has a set number of columns but the rows may vary. I have a
corresponding graph based on the results. The problem is when the
number of rows returned is more or less than the original, so my graph
is incomplete.
Presently the 'source' data for the graph reads
y1 axis =Report!$C$7:$C$12
y2 axis =Report!$B$7:$B$12
x axis labels; =Report!$A$7:$A$12
This graphs fine if I have exactly 6 rows of data, but if I have more
the chart does not recognize these.
How would I program this so the chart knows to expand or contract based
on the number of rows with live data?
Thank you,
Tony BYou can use dynamic named ranges for you data, and use that names as the data
sources. For some examples on dynamic named ranges you may check:
www.ozgrid.com/Excel/DynamicRanges.htm
Hope this helps,
Miguel.
quot; wrote:
gt; I have an Excel application that returns relevant data into a table
gt; that has a set number of columns but the rows may vary. I have a
gt; corresponding graph based on the results. The problem is when the
gt; number of rows returned is more or less than the original, so my graph
gt; is incomplete.
gt;
gt; Presently the 'source' data for the graph reads
gt;
gt; y1 axis =Report!$C$7:$C$12
gt; y2 axis =Report!$B$7:$B$12
gt; x axis labels; =Report!$A$7:$A$12
gt;
gt; This graphs fine if I have exactly 6 rows of data, but if I have more
gt; the chart does not recognize these.
gt;
gt; How would I program this so the chart knows to expand or contract based
gt; on the number of rows with live data?
gt;
gt; Thank you,
gt;
gt; Tony B
gt;
gt;
- Feb 22 Thu 2007 20:35
creating range for chart
close
全站熱搜
留言列表
發表留言
留言列表

