Using Conditional Formatting to highlight range of percentages in Excel

With conditional formatting feature, Excel makes even the numeric bits easy to understand with visual aids. Conditional formatting lets you format the cell and text within in relation to particular condition.

Suppose you want your data to appear like this:

  • Less than 0% = Red
  • Greater than 0% but equal to 5% = Yellow
  • Greater than 5% = Green

You can get it done easily even without a formula by defining three specific rules using conditional formatting dialogue box. Following steps will help you get it done easily:

Step 1: Have your data prepared and percentages calculated. Usually we don’t have negative percentages but to represent the decrease or adverse variance we use it. This helps us not only show that the figure is negative but also the extent of it.

For illustration purposes I have a very simple data. In column A I have a budgeted data and in column B I have actual data.

Step 2: In column C put this formula in cell C2:

=(B2/A2)-1

cond 1

Press Enter and drag the fill handle down to row 6. All numbers will be in decimals.

Step 3: Select the range from C2 to cell C6 and hit Ctrl+Shift+5 to apply the percentage formatting. Once done the numbers will appear in percentages.

Step 4: Having C2:C6 range still selected go to Home tab > Styles group > click conditional formatting drop down button > hit New rule

Step 5: Click New rule button. Select the option “Format only cells that contain”. Change the second drop down under “Format only cells with” to less than and type in 0%. Click format button > fill tab and select red color. Press OK to close the dialogue box.

Step 6: Click the new rule button again. Select the option “Format only cells that contain”. Change the second drop down under “Format only cells with” to between and type in 0% in the first field and 5% in the second field. Click the format button and select a yellow color under the fill tab. Press OK to close the dialogue box

Step 7: Click the new rule button again. Select the option “Format only cells that contain”. Change the second drop down under “Format only cells with” to Greater than and type in 5% in the field. Click the format button and select green color under the fill tab. Click OK to close the dialogue box.

Step 8: Click Apply button and TADA!!!

Following animation will walk you through the whole process:

cond 2

You have your percentages color coded to easily know what type of variance you are assessing without stressing your mathematics skills 😉

If you liked this then don’t forget to check other tutorials with conditional formatting feature in action:

  1. How to LOOKUP using ONLY Conditional Formatting in Excel
  2. ABC Analysis using Conditional Formatting in Excel
  3. Comparing two columns to highlight Duplicates in the same row – Excel Conditional Formatting
  4. Making Aging Analysis Reports Using Excel – How To

3 COMMENTS

  1. Thank you for this valuable information.

  2. if we not calculate percentage manualy and percentage direct needs to apply on actual column with conditional formating with Red, Green & Yellow colour how it works ???

  3. Thank you so much for writing this guide! This exactly what I have been looking for on Google for hours. I got myself into a mess and confused, but then I found your article and it was exactly what I needed to make sense and fix the mess! 🙂

Comments are closed.