TechJunkie is a BOX20 Media Company

Home Web Microsoft Office How to Automatically Color Code in Excel

How to Automatically Color Code in Excel

How to Automatically Color Code in Excel
How to Automatically Color Code in Excel

MS Excel is one of the most powerful and versatile programs in the MS Office bundle. Unless you work with spreadsheets, you probably don’t even use this program, but it is important to realize just how tweakable and programmable it really is. For instance, you could program the Monopoly boardgame using nothing but Excel. Color coding, however, is much easier to use in this great spreadsheet program.

Conditional formatting gives you the ability to automize cell formatting in accordance with the inserted value in MS Excel. The most popular type of conditional formatting in Excel is automatic color coding.

This is very useful for presentation and visualization, but also in instances where creating gradually changing shades (depending on the cell value) is essential in capturing the big picture of a spreadsheet. The best example of this is sorting temperature values by months.

The Big Picture

Jumping right into color coding is certainly a possibility, but, in truth, conditional formatting takes planning before anything else. During the planning process, whenever you come up with a color-coding idea, ask yourself: “Does this make my life simpler or more complicated?” Technically, you could “tell” Excel to color every cell that contains an irrational number red. This is not necessarily a bad idea, but if you also plan to color code it to change shade intensity as the numbers grow, it may end up confusing.

On the other hand, if you’re creating a spreadsheet for a maths class, wanting your irrational number cells to be colored red is a perfectly imaginable and a viable idea. The point is, you shouldn’t jump straight into color coding without actually thinking about how you’re going to make the entire spreadsheet picture become the best it can be. This takes time and a lot of trial and error.

The Big Picture

Basic Color Coding Options

There are a number of options that can help you in your color coding task and knowing how each one works will make your job easier.

Highlight Duplicates

This is one of the most basic color coding tasks that you give Excel. What it essentially does, is it marks all the duplicate names in the same color. This may help you remove the duplicate names, or may assist you in further spreadsheet analysis. Here’s how to highlight duplicates.

  1. First, you’ll need to select the range of cells that you want to check for duplicates. Of course, by pressing Ctrl + A, you’ll select every cell in the table.
  2. Go to the Home tab and navigate to Conditional Formatting.
  3. Under Conditional Formatting, go to Highlight Cell Rules, and then to Duplicate Values.
  4. The Window that pops up offers you to select the format from two drop-down lists.
  5. The first drop-down list allows you to choose which cells you want colored, Duplicate ones or the Unique
  6. The second drop-down list offers you a set of available colors.
  7. Press OK.

Sort by Color

Sorting your list by color takes you a step further from duplicate highlighting. If you’ve highlighted the duplicates, the sort by color option will allow you to sort them together, which works fantastically with larger lists. Here’s how to do it:

  1. Select the desired data range.
  2. Go to Data -> Sort & Filter -> Sort.
  3. Select the desired column in your data range.
  4. For the Sort on option, select Cell Color.
  5. Choose a color in the Order
  6. Select On Top in the final drop-down list.
  7. Hit OK.

This will sort your list and put the duplicates at the top.

Highlight Top 10

Whether we’re talking about geography, finances, or temperatures, the top 10 items on a list tend to tell a good part of the list’s story. Of course, using the same principle below, you can highlight the bottom 10, top 10%, bottom 10%, above average, below average, and many other data groups.

  1. Select the desired data range
  2. Go to the Home
  3. Click Conditional Formatting.
  4. Go to Top/Bottom Rules.
  5. Select Top 10 Items.
  6. In the window that pops up, adjust the number of options you want (you can do more and less than 10, of course).
  7. Now select the fill color.
  8. Hit OK.

Advanced Options

These were some basic color coding options that Excel offers. Now, let’s go over the more advanced tasks. Don’t worry, they aren’t any more complicated than the previous three.

Show Variances with Data Bars

Data bars essentially draws a bar in each cell, with the length corresponding to the cell value of other cells. Here’s a picture to explain it.

Here’s how to select the column/range that you want to format.

  1. Select the desired data range
  2. Go to the Home
  3. Navigate to Conditional Formatting -> Data Bars.
  4. Select the desired color and fill style.

Highlight Positive, Neutral, and Negative Values with Icon Sets

This will show you how to custom set the positive, neutral, and negative values next to items. This is very useful for sales and revenue breakdowns.

  1. Select the column/range that you want to format.
  2. Go to the Home
  3. Navigate to Conditional Formatting -> Icon Sets.
  4. Choose the icon style that you want to use.
  5. Excel will automatically interpret your data.
  6. If you want to change it, go to Manage Rules under Conditional Formatting.
  7. Choose the Icon Set rule and click Edit Rule.
  8. Adjust the rules according to your preferences.

Show Variances with Color Scales

Using the Color Scales under Conditional Formatting works pretty much the same way as the Icon Sets, only displays the result differently and with more gradients.

  1. Select the range.
  2. Find Color Scales in Conditional Formatting.
  3. Choose the color scale.

Smooth and Easy

Conditional formatting is pretty much basic formatting with some rule setting. Nevertheless, it is very useful and brings out Excel’s true nature – it’s more than a tool for table formatting, its an ultimate program for creating spreadsheets.

What interesting tips do you have to share about Excel? People who work with spreadsheets tend to have their own processes. How does your work? Hit the comment section below with any advice, tips, and questions.

How to Automatically Empty Trash in Outlook

Read Next 

Leave a Reply

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


Kerry Bayley

Jul 30, 2019

My career as a project manager has given me plenty of time to get familiar with the full Microsoft suite, as well as a host of other tools, all of which I write about online.

1951 Articles Published

More