PC Review Forums Newsgroups Microsoft Excel Microsoft Excel Charting Dynamic Series Name

Reply

Dynamic Series Name

 
Thread Tools Rate Thread
Old 06-06-2005, 07:04 PM   #1
=?Utf-8?B?QXJ0aHVySg==?=
Guest
 
Posts: n/a
Default Dynamic Series Name


I have a table that is set up using "Data-Filter-AutoFilter" so that the user
can click a drop down arrow in the header for column 1 (the x-values), select
a value, and the table displays only those records.

A chart is connected to the table.

In the chart I want the series name to be the user's choice of the dropdown
value. For example, say the x-value choices are "apples", "oranges", or
"lemons". If the user chooses "oranges", then that becomes the series name in
the chart.

Can someone come up with a way to do this. I have thus far done all this
without VBA, and prefer to leave it that way.

Thanks,
Art
  Reply With Quote
Old 08-06-2005, 12:57 AM   #2
Ed Ferrero
Guest
 
Posts: n/a
Default Re: Dynamic Series Name

Hi Arthur,
If you open a chart and select one series (by single clicking it)
the formula bar will show something like this:

=SERIES(Label,X-Range,Y-Ranges,Series No)

Label is the series label, can be a cell reference or a
label enclosed in quotes
X-Range is a range, usually given in the form Sheet1!$C$5:$M$5
but it could also be a series of numbers such as {5,6,7}
or a reference to a range name such as Sheet1!Sales
Y-Range is similar
Series No is an integer giving the z-order of the series

Change the Label to a cell reference like Sheet1!C1 (You can do this by
selecting a cell).
If the cell reference is the same cell that is used by AutoFilter to select
"oranges" then you have what you want.

Ed Ferrero
http://edferrero.m6.net

"ArthurJ" <ArthurJ@discussions.microsoft.com> wrote in message
news:CBCFAD71-EFBD-4701-8DA8-A5CA3721CFBC@microsoft.com...
>I have a table that is set up using "Data-Filter-AutoFilter" so that the
>user
> can click a drop down arrow in the header for column 1 (the x-values),
> select
> a value, and the table displays only those records.
>
> A chart is connected to the table.
>
> In the chart I want the series name to be the user's choice of the
> dropdown
> value. For example, say the x-value choices are "apples", "oranges", or
> "lemons". If the user chooses "oranges", then that becomes the series name
> in
> the chart.
>
> Can someone come up with a way to do this. I have thus far done all this
> without VBA, and prefer to leave it that way.
>
> Thanks,
> Art



  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