Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2
Default Using a Cell Value to Adjust a Data Series for a Plot

Is it possible to redirect the data source series of a plot to a cell
location so that it can be manipulated? For example, the current data
series is ='Spending Data'!$A$32:$A$43. I would like to be able to
adjust the series by entering a value in a cell. For example, using
the existing range as a baseline, entering a "1" in the magic cell
would change the series to ='Spending Data'!$A$33:$A$44. I have tried
using INDIRECT, but either I don't understand how to correctly use it,
or its use in a graph data series assignment, or both.

A pointer to an online example would be great.

Thanks!

Don
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 108
Default Using a Cell Value to Adjust a Data Series for a Plot

Hi Don,

You need to combine INDIRECT and ADDRESS like this;

=INDIRECT(ADDRESS(row, column,1, TRUE, sheet))

where;
row = cell containing row no
column = cell containing column no
sheet = cell containinig sheet name

of the data you are trying to get.

And you can get fancy, like
=SUM(INDIRECT(ADDRESS($A$1,$B$1,,,)):INDIRECT(ADDR ESS($A$2,$B$2,,,)))
to sum a range defined by row/column no entries in four cells.


There is a sample here
http://www.edferrero.com/ExcelCharts...2/Default.aspx
look for the Reporting sample.

Ed Ferrero
www.edferrero.com
  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 2
Default Using a Cell Value to Adjust a Data Series for a Plot


Ed,

Well, I tried both

=ADDRESS($A$30, $A$31,1, TRUE,"Spending Data"):ADDRESS(($A
$30+10), $A$31,1, TRUE,"Spending Data")

and

=INDIRECT(ADDRESS($A$30, $A$31,1, TRUE,"Spending Data")):INDIRECT
(ADDRESS(($A$30+10), $A$31,1, TRUE,"Spending Data"))

in the 'Series Values:' text box of the 'Edit Series' window and keep
getting a "That Function is not Valid" error.


Based on tinkering with inputs to the 'Series Values:', I am beginning
to think that maybe it cannot contain functions like INDIRECT and
ADDRESS. Although I have not been able to find a reference stating
such. The approach you used in the Reporting sample makes a lot of
sense and in a way validates that 'Series Values:' should not be
mucked with.

Thanks for the suggestions!

Don






On Sep 30, 9:02*pm, "Ed Ferrero" wrote:
Hi Don,

You need to combine INDIRECT and ADDRESS like this;

=INDIRECT(ADDRESS(row, column,1, TRUE, sheet))

where;
row = cell containing row no
column = cell containing column no
sheet = cell containinig sheet name

of the data you are trying to get.

And you can get fancy, like
=SUM(INDIRECT(ADDRESS($A$1,$B$1,,,)):INDIRECT(ADDR ESS($A$2,$B$2,,,)))
to sum a range defined by row/column no entries in four cells.

There is a sample herehttp://www.edferrero.com/ExcelCharts/tabid/102/Default.aspx
look for the Reporting sample.

Ed Ferrerowww.edferrero.com


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I not plot items with zero in a data series? Gen Charts and Charting in Excel 0 September 2nd 09 06:55 PM
how can i color points in a plot with a third data series? aaron Charts and Charting in Excel 5 August 6th 09 03:40 PM
how do I plot a data series against two series Frustrated in Sydney Charts and Charting in Excel 7 February 16th 06 04:24 AM
chart data series -- plot a table as a single series hjc Charts and Charting in Excel 7 September 20th 05 05:52 PM
How can I plot a data series from multiple worksheets bret Charts and Charting in Excel 2 January 3rd 05 01:23 AM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"