+ Reply to Thread
Results 1 to 20 of 20

Add Secondary Primary Axis

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Add Secondary Primary Axis

    Using Excel 2007. Can someone point me to a tutorial explaining how to add a second primary axis and plot data to it?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,819

    Re: Add Secondary Primary Axis

    Perhaps this? http://office.microsoft.com/en-us/ex...149.aspx?CTT=1

    If that is not it, perhaps you can explain what a "second primary axis" is.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    An Excel chart has a primary axis on the left side, with a secondary axis on the right side. Everything I've found discusses adding another secondary axis - on the right side. I want to add another Y axis on the left side of the chart.

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    example contains variations of axes and the position of their labels and lines.

    Any of these fit the bill?
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Hi Andy. Thanks for help with this model. "Large on Secondary Y axis
    both axis on left by adding secondary X axis" is what I'm looking for.
    Last edited by Phil Hageman; 09-19-2013 at 08:21 AM.

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    Okay, do you need any more info on how to do that?

  7. #7
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Yes - do you have instructions on how to do this? BTW, I already have a plot going on on the secondary (right side) axis.

    On another topic, I am using your method of labeling end points based on a dummy series. It inserts the label when new values are posted, but the previous label remains. Is there a way to remove/replace labels?

    Finally - is there a way to color format a line series based on ranges? Example: 300-250 red, 249-200 yellow, 199-150 green.

  8. #8
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    select the chart and use ribbon Chart Tools > Layout > Axes > Secondary Horizontal Axes. This will add horizontal axis to top of plotarea.

    Format secondary horizontal axis. Set Vertical Axis crosses at > Automatic.

    The label last point should automatic remove data labels when the data point is NA().

    You would have to use additional series to colour sections of the line. Problem comes when the line crosses a boundary.
    This example illustrates the technique.
    http://www.andypope.info/charts/conditionalline.htm

  9. #9
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Thanks. Will get busy and report back later.

  10. #10
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Secondary horizontal axis in place (top of plot area). Right click to format, but there is no "Automatic" option under "Vertical axis crosses." I want to move an existing line to the new vertical axis on the left side of the chart, but selecting it does not offer an option I can identify to link it to the new horizontal axis.

  11. #11
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    see picture of formatting dialog from xl2007
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    On the line graph labeling, typical formula is: =IF($C19="",E18,NA()). What I see in the cell is #N/A. Changed the formula to =IF($C19="",E18,"NA()"), got NA(), but the previous labels still remain. Is there a setting somewhere I'm overlooking?

  13. #13
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    Don't put quotes around it, that will cause it to be treated as text and text will be plotted as zero

    =IF($C19="",E18,NA())

    cell should display #N/A, this will cause the chart not to plot a data marker or create a line.

  14. #14
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Formatting axis: Three options appear - Between dates; At date...; and At maximum date. No Crosses at/automatic option.

  15. #15
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Labeling: Removed the "" and tried it again. Previous labels still appearing - so Excel does not recognize the #N/A for some reason.....

  16. #16
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    You did not mention your horizontal axis was dates.

    set to between dates.

  17. #17
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    can you post an example of your file then because my examples do not appear to be the same as what you are using and it is causing confusion.

  18. #18
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Andy, Per attached model:

    Re secondary axis: Two series plotting okay on the left axis, need the BMI series to plot on a right side axis with an maximum of 40, and minimum of 20.

    Re labeling: Previous label does not go away when new weight posted.
    Attached Files Attached Files

  19. #19
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    The series was not set to use the secondary axis.
    Once moverd along with the associated Target series I set the min/max of the secondary scale.

    The labelling does not work as you need to include another line series that only plots the relevant data point. I have added a new series Label WT.
    I also had to change the formula so that #N/A was put out for future data points rather than a zero value.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    08-21-2013
    Location
    Jacksonville, FL, USA
    MS-Off Ver
    Excel 2010
    Posts
    61

    Re: Add Secondary Primary Axis

    Andy,

    I'm new to Excel 2007 so may have something set up wrong, which could be causing my issues.

    1. Labeling still does not remove the prior label on the BMI series when a new weight is posted. It works okay on the weight series - should I change the formulas like you did on the weight series?
    2. BMR does not plot at all - is it not possible to plot three series, two on one side as primary/secondary, and one on the other side? I need to show all three series on the chart with axes sufficient to amplify the series for easier analysis.

    Regards,
    Phil

  21. #21
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Add Secondary Primary Axis

    You can only have 2 Y axes. You appear to want 3. Only way to do that is to factor one of the set of values against one of the other scales.

    You need to add dummy series for all those you want to label the last point for. You will also need to update the formula otherwise zeros will be displayed (if the scale permits it)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 4
    Last Post: 05-17-2012, 11:25 AM
  2. Replies: 6
    Last Post: 12-07-2010, 02:54 PM
  3. [SOLVED] How to make Primary axis and Secondary X-axis have the same scale
    By AdamCPTD in forum Excel General
    Replies: 0
    Last Post: 07-14-2006, 09:15 AM
  4. Replies: 1
    Last Post: 05-03-2006, 09:20 PM
  5. [SOLVED] Secondary Axis Match Primary Axis Gridlines
    By [email protected] in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 07-31-2005, 05:05 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1