Conditional formatting for chart axes

Excel 365 2016 2010 2007 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.
Axes Condition formatting inExcel 2013

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

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

Format Axes in popup Excel 2013

   2.   On the Format Axis task pane, in the Number group, select Custom category and then change the field Format Code and click the Add button:

Format Axis in Excel 2013
  • 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.
    • If you write four formats, they apply to positive, negative, zero, and text values, respectively.

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

  • 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]

See also How to hide points on the chart axis.

Please, disable AdBlock and reload the page to continue

Today, 30% of our visitors use Ad-Block to block ads.We understand your pain with ads, but without ads, we won't be able to provide you with free content soon. If you need our content for work or study, please support our efforts and disable AdBlock for our site. As you will see, we have a lot of helpful information to share.