Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Charting / July 2005

Tip: Looking for answers? Try searching our database.

Secondary Axis Match Primary Axis Gridlines

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
blimbert@stateindustrial.com - 31 Jul 2005 15:59 GMT
I routinely make graphs for many different product lines, and am
constantly altering the secondary axis min/max/ or scale so the graph
doesn't look odd.  Is there a way to automatically have the secondary
axis min/max/ or scale values change so that the secondary axis major
tick marks will line up with those of the primary axis?

For example, in the following data series, automatically makes the
primary axis range from 0 to 14000, with a 2000 unit increment.  On the
secondary axis, excel sets it to 0 to 250 with a 50 point increment.
How do I trick excel into make the secondary axis have 7 increments
(14000 / 2000) so that the major tick marks / gridlines match one
another?  (eg 7 * 50 = a 350 secondary axis max value, which makes the
gridlines work).

Point    Primary    Secondary
1    1000    10
2    2000    20
3    3000    30
4    4000    100
5    5000    50
6    6000    60
7    7000    70
8    8000    200
9    12000    200
10    8000    200

Thoughts?
Brian
Jon Peltier - 31 Jul 2005 21:23 GMT
Brian -

You need to either adjust the secondary scale manually, or write a VBA
procedure to adjust it whenever the data changes or you press a button.

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

> I routinely make graphs for many different product lines, and am
> constantly altering the secondary axis min/max/ or scale so the graph
[quoted text clipped - 24 lines]
> Thoughts?
> Brian
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.