Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 11
Default Dynamic Range Charting

I am charting the number of units in various territories. I am trying to
create a data range that varies depending on the number territories being
analysed. I set the range to be large enough to accomodate the largest group
(e.g. when there are 11 territories to chart my data range is e3:f13, but
when there are only 3 territories the actual data in this range is confined
to the cells e3:f5.

Even though my formulas within the unused cells in my data range eliminate
the values and replace them with a blank cell, the chart legend still shows
the colours for the missing territories with a blank beside each colour in
the legend (because my data range is still e3:f13 even though I only have 3
rows of actual data).

How do I make my data range adjust to accomodate only those rows actually
being charted and eliminate the unnecessary rows that still exist in the data
range?
  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 6,582
Default Dynamic Range Charting

You could use an autofilter on the data, to hide the rows corresponding to
territories you want to omit. Alternatively you could use VBA to change the
source data range of the chart. Unfortunately dynamically defined names
cannot be used to change the number of series in a chart, only the number of
points in a series.

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


"BarryL" wrote in message
...
I am charting the number of units in various territories. I am trying to
create a data range that varies depending on the number territories being
analysed. I set the range to be large enough to accomodate the largest
group
(e.g. when there are 11 territories to chart my data range is e3:f13, but
when there are only 3 territories the actual data in this range is
confined
to the cells e3:f5.

Even though my formulas within the unused cells in my data range eliminate
the values and replace them with a blank cell, the chart legend still
shows
the colours for the missing territories with a blank beside each colour in
the legend (because my data range is still e3:f13 even though I only have
3
rows of actual data).

How do I make my data range adjust to accomodate only those rows actually
being charted and eliminate the unnecessary rows that still exist in the
data
range?



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
dynamic charting [email protected] Charts and Charting in Excel 3 November 11th 07 02:16 PM
Dynamic Range Names / Charting fritz78 Excel Discussion (Misc queries) 1 October 10th 07 01:26 AM
Dynamic charting widman Charts and Charting in Excel 2 October 26th 06 11:00 PM
Dynamic Charting - i think! [email protected] Charts and Charting in Excel 4 July 27th 06 09:33 AM
Dynamic Charting Richard Flame Charts and Charting in Excel 3 July 3rd 06 06:39 PM


All times are GMT +1. The time now is 02:53 AM.

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"