Excel Conditional Formatting Guide: Basics, Top N, Icon Sets, Color Scales, and Formula Rules

Excel Conditional Formatting Guide: Basics, Top N, Icon Sets, and Formula Rules

To automatically highlight important values in reports, Excel conditional formatting is one of the most powerful tools available. This guide covers Quick Fixes → basic rules → visual effects → formula rules, along with rule conflicts and performance issues.

Quick Fix (Done in 3 Minutes)

  1. Select the range: B2:F101
  2. Top N: Home > Conditional Formatting > Top/Bottom Rules > Top 10 Items…
  3. Duplicate values: Highlight Cells Rules > Duplicate Values…
  4. Data bars: Data Bars > Gradient Fill
  5. Manage Rules: Manage Rules > organize priority & Stop If True

Core Concepts: Rules, Priority, and Range

Regularly review each rule’s Applies to range and priority. In formula rules, use $ to correctly lock relative and absolute references.

Manage Rules · Stop If True

Go to Home > Conditional Formatting > Manage Rules to move rules (↑↓), and select Stop If True when rules conflict.

Basic Rules in Practice

Duplicate Values

Conditional Formatting > Highlight Cells Rules > Duplicate Values…

Top/Bottom N

Quickly highlight high and low values with Top 10 Items, Top 10%, Bottom 10 Items, and similar rules.

Above/Below Average

Quickly identify deviations based on the average.

Visual Effects: Data Bars, Color Scales, and Icon Sets

Data bars are useful for relative comparisons by length, color scales show the distribution of continuous values, and icon sets are ideal for summarizing status.

Custom Formula Rules (Best 7)

// Highlight a specific month
=TEXT($A2,"yyyy-mm")=$H$1

// Shade weekends
=WEEKDAY($A2,2)>=6

// Department = Sales & below target
=AND($C2="Sales",$F2<$E2)

// Last 30 days
=TODAY()-$A2<=30

// Mark blank cells
=ISBLANK($D2)

// Duplicate key (name + phone)
=COUNTIFS($B:$B,$B2,$C:$C,$C2)>1

Alternatives and Related Features

  • Manage ranges with a Table for automatic expansion.
  • Use with filters and slicers to improve readability.
  • For PivotTables, check the “Apply rule to all cells showing” option.

Troubleshooting

SymptomCauseSolution
Formatting conflictOverlapping rulesAdjust priority + Stop If True
Some cells are missedIncorrect applied rangeReset Applies to
Formula rule applies to only one rowIncorrect locked referencesAdjust $ (for example, =$B2>=$H$2)
Slow performanceToo many rules or an overly large rangeClean up rules and manage the data as a Table
Lost when the PivotTable refreshesIncorrect application methodCheck the PivotTable field-based application option
Color scale looks awkwardMidpoint not setSet the midpoint to 0

Related Articles

Leave a Reply

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