LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Changing plot order in series formulas

In the charting newsgroup, I have recently sought and obtained much help under the general heading of automating changes in the order of columns and/or stacks. Increased understanding on my part of what is involved in the matter ultimately led me to raise a question similar to that raised in the material which follows, but that question hasn't been answered. I suspect that that's because the question's buried under a blizzard of earlier questions and answers

I have therefore taken the liberty of rephrasing my question, including the necessary background information, and posting it here as a stand-alone query

I have a worksheet created using Excel 2002. It has values in the following 15 cells: B2; C3; D4; E5; F6; G7; H7; I8; J8; K8; L8; M9; N10; O10; AND P10

Each such value constitutes a separate series on an accompanying column chart. Those 15 series are plotted on the chart from 1 to 15 in the order given above

Three of the columns on the chart are stacked ones. One such column consists of the G7 and H7 series; another consists of the I8, J8, K8 and L8 series; and the last consists of the N10, O10 and P10 series

As created, the series in the 3 stacked columns have been plotted in descending order of value, with the plot order of the various series in the 3 stacked columns being as follows

G7 is 6 and H7 is 7

I8 is 8, J8 is 9, K8 is 10 and L8 is 11; an

N10 is 13; O10 is 14 and P10 is 15

The values of the cells in the worksheet change regularly. If the values of the cells which produce any of the 3 stacked columns cease to be plotted from largest to smallest, I would like the plot order of the series concerned to be changed, so that the chart will continue to show the stacks in the relevant column with the largest stack on the x axis and the other(s) being stacked on top of it in decreasing order of value

What I envision is a sub-procedure which will check the values of, for example, the cells in row 7. If that check shows that the value of H7 is now greater than that of G7, the sub-procedure will change the series formulas of the two series concerned so that the plot order of G7 will now be 7 and of H7 will now be 6

I'd very much appreciate being told whether such a sub-procedure can be created and, if so, how

Also, if it can be created, I assume that it will involve the use of the PlotOrder Property. The help screen in Excel for that property says that plot order can only be set within a chart group.

My chart has two chart groups, with the series N10, O10 and P10 constituting a separate chart group from the rest. (I assume that's because only N10, O10 and P10 are plotted against a secondary y axix.) I don't know enough to know whether that means that there would have to be a separate sub-procedure for the cells in row 10



 
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 to change series plotting order without changing legend order? PatrickM Charts and Charting in Excel 6 December 2nd 09 07:43 PM
How do i plot two series of data both in accending order on a line MFM Charts and Charting in Excel 1 May 28th 09 09:14 AM
Changing order of series Tim Charts and Charting in Excel 2 January 23rd 08 12:32 PM
Changing a charts series order Csmith Charts and Charting in Excel 1 July 19th 07 09:49 AM
Changing colors of series on a xy scatter plot JacksonRJones Charts and Charting in Excel 1 April 4th 06 11:02 PM


All times are GMT +1. The time now is 08:10 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"