A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Specifying data ranges in excel charts.



 
 
Thread Tools Display Modes
  #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.
  #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.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:10 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.