ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Using variables in Chart Ranges (https://www.excelbanter.com/charts-charting-excel/87531-using-variables-chart-ranges.html)

[email protected]

Using variables in Chart Ranges
 
I have created a chart with a Value (data range) of €˜='Raw Data'!$S$3:$S$6
but I need to make the number of rows to chart variable. I have created a
variable called €˜numrows with the COUNTA option. How do I replace the $S$6
with numrows so when I import data into the Raw Data worksheet, the proper
number of rows will be charted?

Thanks



Jon Peltier

Using variables in Chart Ranges
 
You have to create a named range (variable) that describes the entire range,
not just part of it, or a dimension of it. Then this variable can be used in
the chart. Here are some examples and links:

http://peltiertech.com/Excel/Charts/Dynamics.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

" wrote in
message ...
I have created a chart with a Value (data range) of '='Raw Data'!$S$3:$S$6'
but I need to make the number of rows to chart variable. I have created a
variable called 'numrows' with the COUNTA option. How do I replace the
$S$6
with numrows so when I import data into the Raw Data worksheet, the proper
number of rows will be charted?

Thanks






All times are GMT +1. The time now is 02:10 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com