ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Charts and Charting in Excel (https://www.excelbanter.com/charts-charting-excel/)
-   -   Chart updates using cell reference (https://www.excelbanter.com/charts-charting-excel/56564-chart-updates-using-cell-reference.html)

jwhprinter

Chart updates using cell reference
 
I have a multiple charts that plot data in A1:Z20. Column A is always the
x-axis. Columns B-Z represent different charts. Sometimes I want to see all
20 rows of data, but sometimes I want to choose only a few rows (to zoom in)
and plot only a few rows...say 8-14. I'd like to be able to put 8 in cell
A22 and 14 in cell A23 and have all charts reference those entries and update
to show only data in cells 8-14. Is it possible? thx - jwhprinter

Jon Peltier

Chart updates using cell reference
 
Dynamic charts:

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

Your offset formula for X ("myXValues") would be

=INDIRECT("Sheet1!A"&Sheet1!$A$23&":A"&Sheet1!$A$2 4)

and for the various Ys would be

=OFFSET(myXValues,0,1)

where you use 1 for column B, 2 for column C, etc.

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


"jwhprinter" wrote in message
...
I have a multiple charts that plot data in A1:Z20. Column A is always the
x-axis. Columns B-Z represent different charts. Sometimes I want to see
all
20 rows of data, but sometimes I want to choose only a few rows (to zoom
in)
and plot only a few rows...say 8-14. I'd like to be able to put 8 in cell
A22 and 14 in cell A23 and have all charts reference those entries and
update
to show only data in cells 8-14. Is it possible? thx - jwhprinter




jwhprinter

Chart updates using cell reference
 
I took a while for me to wrestle with it but I finally got it to work as
desired. Jon...you are the guru! Thanks!

"Jon Peltier" wrote:

Dynamic charts:

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

Your offset formula for X ("myXValues") would be

=INDIRECT("Sheet1!A"&Sheet1!$A$23&":A"&Sheet1!$A$2 4)

and for the various Ys would be

=OFFSET(myXValues,0,1)

where you use 1 for column B, 2 for column C, etc.

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


"jwhprinter" wrote in message
...
I have a multiple charts that plot data in A1:Z20. Column A is always the
x-axis. Columns B-Z represent different charts. Sometimes I want to see
all
20 rows of data, but sometimes I want to choose only a few rows (to zoom
in)
and plot only a few rows...say 8-14. I'd like to be able to put 8 in cell
A22 and 14 in cell A23 and have all charts reference those entries and
update
to show only data in cells 8-14. Is it possible? thx - jwhprinter






All times are GMT +1. The time now is 01:21 PM.

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