You send a sales report with 200 rows. Your manager does not have time to inspect every number. If below-target orders are highlighted in red and above-target orders in green, the report becomes easier to review in seconds.
What is Conditional Formatting?
Conditional Formatting automatically changes the look of cells based on rules. Instead of manually coloring each cell, you define the condition once and Excel applies the formatting whenever the condition is met.
Sales variance example
| Product | Sales | Target | Variance | Status |
|---|---|---|---|---|
| Laptop Stand | ₹2,250 | ₹3,000 | -₹750 | Below Target |
| Wireless Mouse | ₹5,200 | ₹4,500 | ₹700 | Above Target |
| Webcam | ₹5,000 | ₹5,000 | ₹0 | On Target |
Common Conditional Formatting rules
Using Data Bars
Data Bars are useful when you want to compare values visually without creating a separate chart. For example, you can apply Data Bars to the Sales column to quickly see which orders are larger.
Data bar example
| Product | Sales | Data Bar |
|---|---|---|
| USB Hub | ₹3,000 | |
| Printer | ₹12,000 | |
| Monitor | ₹38,000 |
Highlight target performance automatically
Download one ZIP file containing the practice workbook, challenge workbook, solution workbook, cheat sheet, quiz and answer key.
Mini assignment
- Calculate Variance as Sales minus Target.
- Highlight negative variance in red.
- Highlight positive variance in green.
- Highlight Urgent priority in red.
- Add Data Bars to the Sales column.
- Review if the report is easier to read.
Quick quiz
- What is Conditional Formatting used for?
- What does a Data Bar show?
- Why should too many colors be avoided?
- What should you check before applying a rule?
Answers: Rule-based formatting; relative value size; it makes reports noisy; selected range.