View Single Post
  #2  
Old November 15th, 2003, 01:23 AM
Tushar Mehta
external usenet poster
 
Posts: n/a
Default Specifying data ranges in excel charts.

You can use named formulas to dynamically adjust the data range. See
the Excel | Tutorials | 'Dynamic Charts' page of my web site.
Alternatively, if you are automating this with VB(A), why not check the
actual range and use that in specifying the chart source data. Check
the Range collection's End property for more.

--
Regards,

Tushar Mehta
MS MVP Excel 2000-2004
www.tushar-mehta.com
Excel, PowerPoint, and VBA tutorials and add-ins
Custom Productivity Solutions leveraging MS Office


In article ,
says...
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.