Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 8
Default Horizontal Gridlines not matching secondary Y-axis

I'm trying to plot a line/column chart in Excel with 2 data series.
However when I am trying to add in horizontal gridlines, Excel scales
the secondary Y-axis to integers therefore not matching the primary
axis. (ie. the numbers on the secondary Y-axis do not line up with the
gridlines).

Is there anyway that I can fix the scale so that the numbers will
appear beside the gridlines?

Thanks a lot,
Steven

  #2   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4,393
Default Horizontal Gridlines not matching secondary Y-axis

It is all a matter of arithmetic.
Suppose the primary axis goes from A to B with Major units set to N; for
example max is 45, min is 20 and the major units are 5 so the labels are 20,
25, 30, 35,40 and 45
Let the secondary axis go from C to D (say 0 to 350); now you want the same
numbers of tick marks on each axis so (D-C)/N is the value you need for the
Major units; in our example (350-0)/5 = 70

Hope this helps
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Steven" wrote in message
ups.com...
I'm trying to plot a line/column chart in Excel with 2 data series.
However when I am trying to add in horizontal gridlines, Excel scales
the secondary Y-axis to integers therefore not matching the primary
axis. (ie. the numbers on the secondary Y-axis do not line up with the
gridlines).

Is there anyway that I can fix the scale so that the numbers will
appear beside the gridlines?

Thanks a lot,
Steven



  #3   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 8
Default Horizontal Gridlines not matching secondary Y-axis

I'm printing hundreds of charts. Is there anyway that I can automate
this? (maybe do the calculatation in a sheet, can refer to the cells
for 'min, max, major unit, etc...)

Thanks again.


Bernard Liengme wrote:
It is all a matter of arithmetic.
Suppose the primary axis goes from A to B with Major units set to N; for
example max is 45, min is 20 and the major units are 5 so the labels are 20,
25, 30, 35,40 and 45
Let the secondary axis go from C to D (say 0 to 350); now you want the same
numbers of tick marks on each axis so (D-C)/N is the value you need for the
Major units; in our example (350-0)/5 = 70

Hope this helps
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Steven" wrote in message
ups.com...
I'm trying to plot a line/column chart in Excel with 2 data series.
However when I am trying to add in horizontal gridlines, Excel scales
the secondary Y-axis to integers therefore not matching the primary
axis. (ie. the numbers on the secondary Y-axis do not line up with the
gridlines).

Is there anyway that I can fix the scale so that the numbers will
appear beside the gridlines?

Thanks a lot,
Steven


  #4   Report Post  
Posted to microsoft.public.excel.charting
external usenet poster
 
Posts: 4,393
Default Horizontal Gridlines not matching secondary Y-axis

I would put this question in the programming newsgroup
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Steven" wrote in message
oups.com...
I'm printing hundreds of charts. Is there anyway that I can automate
this? (maybe do the calculatation in a sheet, can refer to the cells
for 'min, max, major unit, etc...)

Thanks again.


Bernard Liengme wrote:
It is all a matter of arithmetic.
Suppose the primary axis goes from A to B with Major units set to N; for
example max is 45, min is 20 and the major units are 5 so the labels are
20,
25, 30, 35,40 and 45
Let the secondary axis go from C to D (say 0 to 350); now you want the
same
numbers of tick marks on each axis so (D-C)/N is the value you need for
the
Major units; in our example (350-0)/5 = 70

Hope this helps
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Steven" wrote in message
ups.com...
I'm trying to plot a line/column chart in Excel with 2 data series.
However when I am trying to add in horizontal gridlines, Excel scales
the secondary Y-axis to integers therefore not matching the primary
axis. (ie. the numbers on the secondary Y-axis do not line up with the
gridlines).

Is there anyway that I can fix the scale so that the numbers will
appear beside the gridlines?

Thanks a lot,
Steven




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
How to make Primary axis and Secondary X-axis have the same scale AdamCPTD Excel Discussion (Misc queries) 0 July 14th 06 02:14 PM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Secondary Axis Ann Charts and Charting in Excel 5 October 21st 05 09:38 AM
Secondary Axis Match Primary Axis Gridlines [email protected] Charts and Charting in Excel 1 July 31st 05 09:23 PM
Pivot Table, Line Chart with Secondary Y axis, Page Field selection destroys Y2 axis [email protected] Charts and Charting in Excel 0 July 13th 05 09:30 PM


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