ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Microsoft Office Application Help - Excel Help forum > Excel Programming > Excel Charting

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-17-2005, 06:05 PM
Don
Guest
 
Posts: n/a
How do I use a Defined Name range for a value series in a chart?

I would like to create a Defined Name range to use as a the value for a
series in a chart.

Example: Cell B2 equals January Sales; Cell C2 equals February sales; and
cell D2 equals March sales. So, B2:D2 equals sales for Jan, Feb, and Mar. I
can name that range of cells (B2:D2) "Sales".

I would like to have a series in a chart named "Sales". Now, for the Values
of that series, I could put B2:D2. However, I would like to put the Defined
Name "Sales" instead. That way, if I have 5 different charts that graph
monthly sales (B2:D2), to add April sales to the charts, I don't have to go
to each chart and update the Values range to be B2:E2, I could just update my
Defined Name of "Sales" to now be B2:E2, and all of the charts should update
automatically.


Reply With Quote
  #2  
Old 06-17-2005, 08:05 PM
Jon Peltier
Guest
 
Posts: n/a
Re: How do I use a Defined Name range for a value series in a chart?

In the Series tab of the Source Data dialog, click on the series, and
change =Sheet1!$B$2:$D$2 to =Sheet1!Sales. Alternatively, select the
series, and in the formula bar, change

=SERIES(Sheet1!$A$2,Sheet1!$B$1:$D$1,Sheet1!$B$2:$D$2,1)

to

=SERIES(Sheet1!$A$2,Sheet1!$B$1:$D$1,Sheet1!Sales,1)

Read more about dynamic charts:

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

and about the series formula:

http://peltiertech.com/Excel/ChartsH...esFormula.html

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


Don wrote:

> I would like to create a Defined Name range to use as a the value for a
> series in a chart.
>
> Example: Cell B2 equals January Sales; Cell C2 equals February sales; and
> cell D2 equals March sales. So, B2:D2 equals sales for Jan, Feb, and Mar. I
> can name that range of cells (B2:D2) "Sales".
>
> I would like to have a series in a chart named "Sales". Now, for the Values
> of that series, I could put B2:D2. However, I would like to put the Defined
> Name "Sales" instead. That way, if I have 5 different charts that graph
> monthly sales (B2:D2), to add April sales to the charts, I don't have to go
> to each chart and update the Values range to be B2:E2, I could just update my
> Defined Name of "Sales" to now be B2:E2, and all of the charts should update
> automatically.
>
>

Reply With Quote
Reply

Bookmarks

New topics in Excel Charting


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


All times are GMT -4. The time now is 08:45 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0