+ Reply to Thread
Results 1 to 8 of 8

Custom number format code for hiding specific values on chart axes

  1. #1
    Registered User
    Join Date
    11-23-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Custom number format code for hiding specific values on chart axes

    Hello,

    I want to hide certain values from my two vertical axes:

    Primary axis should not show values <0
    Secondary axis should not show values >120

    Please could somebody tell me how to express this in terms of a custom number format?

    Thank you!

  2. #2
    Registered User
    Join Date
    11-23-2012
    Location
    Maldives
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Custom number format code for hiding specific values on chart axes

    You can edit the horizontal and vertical values.
    Click on the graph
    Chart Tools>Layout>Format Selection
    Click on the axis values you want to change
    Set Minimun to Fixed and type 0
    Set Maximun to Fixed and type 120
    You can also change the units

  3. #3
    Registered User
    Join Date
    11-23-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Custom number format code for hiding specific values on chart axes

    Sorry, that's not quite what I'm after I'm afraid. Let me rephrase it:

    I have a primary y axis, with values from -100 to 100 and a secondary y axis, with values from 0 to 240. I want to display all of each axis, but I only want the values to appear for half of each axis (the top half of primary y and the bottom half of secondary y).

    This can be done by using a custom number format, but I don't understand how to create these to achieve my aim.

    Thanks,

    Rob

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

    Re: Custom number format code for hiding specific values on chart axes

    For learning how to create custom number formats, the help file is a good resource http://office.microsoft.com/en-us/ex...in=HP005198679
    I don't have Excel at home, so I can't test it, but I would expect a two section number format like 0;" " would show numbers >=0 and display a space for numbers <0

  5. #5
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Custom number format code for hiding specific values on chart axes

    Rob,

    Can you post a sample chart?

  6. #6
    Registered User
    Join Date
    11-23-2012
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Custom number format code for hiding specific values on chart axes

    Hi,

    image attached.

    Thanks

    chart.png

  7. #7
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Custom number format code for hiding specific values on chart axes

    Here ya go...
    Attached Images Attached Images

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

    Re: Custom number format code for hiding specific values on chart axes

    Your example looks somewhat like the panel chart discussed here http://peltiertech.com/WordPress/bro...n-excel-chart/ You might look at how he did the axis labels (If I understood him correctly, it was similar to the number format suggested earlier).

  9. #9
    Forum Contributor Steve N.'s Avatar
    Join Date
    12-22-2011
    Location
    USA
    MS-Off Ver
    Excel 2007, 2010
    Posts
    298

    Re: Custom number format code for hiding specific values on chart axes

    There's an excelent tutorial on custom number formats in charts at this site. Nice example file to download as well...

    http://www.databison.com/index.php/c...-chart-labels/

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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