View Single Post
  #1  
Old November 13th, 2003, 08:04 PM
Pritesh.
external usenet poster
 
Posts: n/a
Default Specifying data ranges in excel charts.

Hi,
When creating a chart, Excel asks for the range of data.

In this example let's say it's from $A$1:$A$30. I have
about 300 graphs that I need to do annually, so automating
this is easy. However, the graphs do not always contain
30 data points. Sometime, they may have 15 or 20 or 10,
but NEVER more than 30. I can input into a cell the
number of data points in a given set.
For example:
I now have 15 data points in column A going from A1:A15.
So in cell B2 I can type the following...
=count(A1:A30)
This tells me how many cells in column A have data. (in
this case only 15).

If I automated my graphing process, I will have only "half
a graph" as excell will still plot from range A1:A30. So
my question is how can I tell excel to look into cell B1,
and plot only from A1 to the value of B1?

Any helpwould be greatly appreciated.

-Pritesh.