Conditional formatting of chart axes

Excel 365 2016 2013 2010 2003
Another powerful trick to attain the attention of the audience and improve the effect of your presentation is to use axis label formatting customized for the specific value ranges.
Three different formats Excel 2007 Condition format Excel 2007

To change format of the label on the Excel 2007 chart axis, do the following:

   1.   Right-click in the axis and choose Format Axis... in the popup menu:

popup Excel 2007

   2.   In the Format Axis dialog box, on the Number tab, select Custom category and then change the field Format Code and click the Add button:

Format Axis Excel 2007
  • If you need a unique representation for positive, negative, and zero values, just write multiple formats, separating each with a semicolon.
    • If you write two formats, the first applies to positive and zero values and the second applies to negative values.
    • If you write three formats, the first applies to positive values, the second to negative values, and the third to zero.

      [Blue]#,###;[Red]#,###;[Green]~0;

    • If you write four formats, they apply to positive, negative, zero, and text values, respectively.
  • If you want to create a custom condition based on values below or equal to some point (for example, -60) and greater than it, you could type the following condition codes:

    [Cyan][<=-60];[Magenta][>-60]

If you have any questions or suggestions, please feel free to ask OfficeToolTips team.

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information you’ve provided to them or they’ve collected from your use of their services.

Learn more