PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Using Indirect Cell References in a Chart

Reply

Using Indirect Cell References in a Chart

 
Thread Tools Rate Thread
Old 07-07-2003, 05:54 PM   #1
rretzko
Guest
 
Posts: n/a
Default Using Indirect Cell References in a Chart


I am trying to create a 'self-sizing' chart, but don't
know if I can use indirect cell references in a chart.

Here's the scenario: I have a tab with data(DataTable!
A2:A20) and a tab with Graphs (Graphs). I use a Max
formula to determine the last row of data entered, and
I've labled that formulas as 'DataTable!LastRow'.

In my 'Graphs' tab, I have a cell called 'Graphs!
XAxisLabel' with the formula ='Datatable!A3:A'&(DataTable!
LastRow)' that displays the rows of data to be used in the
chart. I want to use a formula (=Graphs!XAxisLabel) to
pull the specifics for the chart. I'd use a similar
formula for other Series ranges.

Can this be done within Excel, or do I have to do this via
a Visual Basic route?

Thanks for the advice, and let me know if I haven't been
clear.

Rick
  Reply With Quote
Old 07-07-2003, 06:08 PM   #2
dvt
Guest
 
Posts: n/a
Default Re: Using Indirect Cell References in a Chart

rretzko wrote:
> I am trying to create a 'self-sizing' chart...


> Can this be done within Excel, or do I have to do this via
> a Visual Basic route?


I'm not sure I follow your question entirely, but have you looked at the
dynamic charts on www.tushar-mehta.com? I suspect that will do what you
want.

Dave
dvt at psu dot edu


  Reply With Quote
Old 08-07-2003, 01:28 PM   #3
Jon Peltier
Guest
 
Posts: n/a
Default Re: Using Indirect Cell References in a Chart

Rick -

You need to define a named range, not just a single cell, for
XAxisLabel. Press Ctrl-F3 to open the Define Names dialog, type
XAxisLabel in the Name box, and in Refers To, enter this:

=OFFSET(DataTable!$A$3,0,0,LastRow-2,1)

For Y1Values, assuming it's in column B, you have two Refers To options:

=OFFSET(DataTable!$B$3,0,0,LastRow-2,1)

or

=OFFSET(XAxisLabel,0,1)

- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

rretzko wrote:
> I am trying to create a 'self-sizing' chart, but don't
> know if I can use indirect cell references in a chart.
>
> Here's the scenario: I have a tab with data(DataTable!
> A2:A20) and a tab with Graphs (Graphs). I use a Max
> formula to determine the last row of data entered, and
> I've labled that formulas as 'DataTable!LastRow'.
>
> In my 'Graphs' tab, I have a cell called 'Graphs!
> XAxisLabel' with the formula ='Datatable!A3:A'&(DataTable!
> LastRow)' that displays the rows of data to be used in the
> chart. I want to use a formula (=Graphs!XAxisLabel) to
> pull the specifics for the chart. I'd use a similar
> formula for other Series ranges.
>
> Can this be done within Excel, or do I have to do this via
> a Visual Basic route?
>
> Thanks for the advice, and let me know if I haven't been
> clear.
>
> Rick


  Reply With Quote
Old 16-07-2003, 06:11 PM   #4
rretzko
Guest
 
Posts: n/a
Default Re: Using Indirect Cell References in a Chart

Jon - THANKS! The process took a bit of working, but this
was exactly the information I needed to get on the right
track!

Rick
>-----Original Message-----
>Rick -
>
>You need to define a named range, not just a single cell,

for
>XAxisLabel. Press Ctrl-F3 to open the Define Names

dialog, type
>XAxisLabel in the Name box, and in Refers To, enter this:
>
>=OFFSET(DataTable!$A$3,0,0,LastRow-2,1)
>
>For Y1Values, assuming it's in column B, you have two

Refers To options:
>
>=OFFSET(DataTable!$B$3,0,0,LastRow-2,1)
>
>or
>
>=OFFSET(XAxisLabel,0,1)
>
>- Jon
>-------
>Jon Peltier, Microsoft Excel MVP
>http://www.geocities.com/jonpeltier/Excel/index.html
>_______
>
>rretzko wrote:
>> I am trying to create a 'self-sizing' chart, but don't
>> know if I can use indirect cell references in a chart.
>>
>> Here's the scenario: I have a tab with data(DataTable!
>> A2:A20) and a tab with Graphs (Graphs). I use a Max
>> formula to determine the last row of data entered, and
>> I've labled that formulas as 'DataTable!LastRow'.
>>
>> In my 'Graphs' tab, I have a cell called 'Graphs!
>> XAxisLabel' with the formula ='Datatable!A3:A'&

(DataTable!
>> LastRow)' that displays the rows of data to be used in

the
>> chart. I want to use a formula (=Graphs!XAxisLabel) to
>> pull the specifics for the chart. I'd use a similar
>> formula for other Series ranges.
>>
>> Can this be done within Excel, or do I have to do this

via
>> a Visual Basic route?
>>
>> Thanks for the advice, and let me know if I haven't

been
>> clear.
>>
>> Rick

>
>.
>

  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off