Customize Excel Conditional Formatting Icons

Customize Excel Conditional Formatting Icons

In Excel 2007 and Excel 2010, you can use icon sets in conditional formatting. There are built-in icon sets, and in Excel 2010 you can Customize Excel Conditional Formatting Icons, to some extent. Here’s how to do that, and a workaround to create icons on the worksheet instead.

Built-in Conditional Formatting Icons

There is a good selection of built-in Excel Conditional Formatting Icon sets.

For example, use Red, Yellow and Green stoplight icons, to highlight the good, average, and poor results in your sales data.

Or, choose directional arrows, with a green Up arrow, a right-pointing yellow arrow, and a red Down arrow.

conditionalformaticon00

Grey Directional Arrows

There are also icon sets with grey directional arrows. Those are useful for data where an increased amount is bad, instead of good. For example, your data might show counts of part failures, or customer complaints.

  • Traditionally, green means “good” or “safe”, and red means “bad” or “danger”.
  • There’s no setting that lets you change the icon colours
  • The neutral grey arrows would be better than using a green Up arrow, for data where Up is “bad”

Or, see the section further down, with notes on how to create your own icon set, outside of the conditional formatting settings.

Limit the Colours

Rob emailed me recently, to ask how to limit the conditional formatting icons to 2 colours only, instead of the 3 or 4 default icon colours.

I am only interested in using 1 or 2 icons (a red X for “Off” and a Green light for “On” – not interested in the Yellow light). I want these icons to be triggered by a boolean (TRUE/FALSE) in another cell.

Create Your Own Icon Set in Excel 2010

Fortunately, if you’re using Excel 2010, you aren’t limited to the default icon sets – you can create your own icon sets , by mixing and matching from the available icons. (You can’t create your own icons, unfortunately, or change the look of the built-in icons.)

To create the icon set that Rob wants, I selected cells B2:B5, and set the following Formatting Rule.

  • The Show Icon Only option is checked
  • Green Circle icon when the value is greater than or equal to 1 (Number)
  • Red X icon when the value is less than 1 and greater than or equal to 0 (Number)
  • No Cell Icon when the value is less than 0

conditionalformaticon02

How It Works

In cell B2 there is a formula to multiply the value in cell A2 by 1:

=A2*1

That formula is copied down to cell B5.

  1. If the result in column A is TRUE, the formula result in column B is 1, and a green circle shows.
  2. If the result in column A is FALSE, the formula result in column B is 0, and a red X shows.

conditionalformaticon01

Get the Sample File

To get the Excel file, with the Create Your Own Icon Set example, go to the Conditional Formatting page on my Contextures site.

The zipped file is in xlsx format, and the file does not contain any macros.

Create Your Own Icon Set

If the built-in icon sets for conditional formatting don’t have what you need, you can create your own custom icons, outside of the conditional formatting settings.

See this Create Your Own Icon Set article, for the step-by-step details.

This workaround technique also works for earlier versions of Excel, where you can’t customize the icon sets, or in Excel versions where icon sets don’t exist

In this technique, you use the WingDings font, combined with conditional formatting, to show coloured symbols in the cell.

And if you’re still using Excel 2003, there are detailed instructions in this article: Conditional Formatting Icons in Excel 2003

image
_______________

44 thoughts on “Customize Excel Conditional Formatting Icons”

  1. Hi!,
    I am trying to highlight a 5% variance in my data, I have cell A1 as Budget figure, B1 as Actual figure and C1 as the difference, I want C1 to go red when it is 5% > or < the budget figure, can anyone help please ? I am using MS Excel 2010
    Thanks
    Clodagh

  2. I too would like to have the option to have an up arrow coloured red (it doesn’t make sense to indicate a rising temperature with a green up arrow – unless you are trying to reach an optimum temperature – ) and a down arrow as green (a reduction in sickness in the department is definitely a green indicator)

  3. Excel should have more fancy icons to choose when doing conditional formatting.
    The selection is too small and boring today.
    Also, it should be possible to customize and insert your own icons!
    Strange this is not an option in Excel.

  4. Here’s a workaround for Excel 2007 to display only two of the three icons.
    A series of drop-down lists (Status_01, Status_02, etc.) have two selections: “Yes” or “No”. The list may also be left empty is it isn’t needed.
    Conditional Formatting Rule #1:
    Format only cells that contain
    Cell Value equal to =0
    Cell Font = white, Fill = white
    Stop If True is selected
    Conditional Formatting Rule #2
    Format all cells based on their values
    Format Style: Icon Sets
    Icon Style: 3 Symbols (Uncircled)
    Show Icon Only is selected
    Checkmark when value >= 2 Number
    Caution when 0 Number
    X when <= 0
    Formula of cell: =IF(Status_01="Yes",2,IF(Status_01="No",-1,0))
    "Yes" in Status_01 displays the green checkmark.
    "No" in Status_01 displays the red X.
    No selection in Status_01 displays an "empty" cell. Note: default value.

  5. sorry to add more question to the above, i need to show the equal icon if the value of the cell I’m formatting is equal to the value of a cell next to it…help please. thank you

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.