It's 3:12 PM. You're pasting Q3 sales data from seven regional managers into Sheet1. Sarah Chen’s numbers in column D look suspiciously high — $247,800 vs. the team average of $92,500. You need to flag outliers *before* the 3:30 sync. But when you click Conditional Formatting > Highlight Cells Rules, nothing highlights Sarah’s row correctly — and you realize you’ve been applying rules to static ranges for years.
Quick Answer
To create a conditional format in Excel, select your data (e.g., D2:D21), go to Home → Conditional Formatting → New Rule, choose "Use a formula to determine which cells to format", enter =D2>AVERAGE($D$2:$D$21), set fill color, and click OK. That’s it — no wizards, no guesswork, and it updates automatically when values change.
All the Methods
| Method | Steps | Best For | Limitations |
|---|---|---|---|
| Highlight Cells Rules | Select range → Home → Conditional Formatting → Highlight Cells Rules → choose rule (e.g., "Greater Than") → enter value or cell reference | One-off thresholds (e.g., “> 100,000”) | Hardcoded values only — won’t adapt if AVERAGE(D2:D21) changes |
| Top/Bottom Rules | Select range → Conditional Formatting → Top/Bottom Rules → pick “Top 10%”, “Above Average”, etc. | Rank-based highlighting (top performers, bottom quartiles) | No custom logic — can’t say “above team average but below corporate target” |
| Data Bars / Color Scales / Icon Sets | Select range → Conditional Formatting → choose visual type → adjust min/max if needed | Quick visual comparisons across columns | No control over exact thresholds; bars scale per column, not per workbook |
| New Rule (Formula-Based) | Select range → Conditional Formatting → New Rule → “Use a formula…” → enter formula referencing top-left cell (e.g., =B2>100) → set format |
Dynamic, reusable, cross-column logic (e.g., “highlight entire row if status = ‘Overdue’”) | Requires understanding of relative vs. absolute references — one wrong $ sign breaks everything |
| Format Painter + Existing Rule | Click cell with existing CF → Ctrl+C → select new range → Alt+H+F+P | Extending same rule to adjacent columns without reconfiguring | Copies *all* formatting — including font size, borders — not just conditional logic |
Method 1 Deep Dive
Let’s fix Sarah Chen’s outlier issue using formula-based conditional formatting. You have this data in Sheet1:
| A | B | C | D |
|---|---|---|---|
| Name | Region | Quarter | Revenue |
| Sarah Chen | West | Q3 | $247,800 |
| James Wu | East | Q3 | $89,200 |
| Maya Patel | South | Q3 | $76,500 |
| David Kim | North | Q3 | $92,100 |
| Aisha Johnson | West | Q3 | $104,300 |
Select D2:D21. Press Alt+H+L+N — that’s the keyboard shortcut for New Rule. Choose “Use a formula to determine which cells to format”. In the formula box, type:
=D2>AVERAGE($D$2:$D$21)
Note: D2 is relative. $D$2:$D$21 is absolute. Excel will auto-adjust D2 to D3, D4, etc., as it evaluates each cell. Click Format → Fill → choose light orange (#FFD580). Click OK twice.
Surprising tip: If your data has blanks in D2:D21, AVERAGE() ignores them — but your formula still works. However, if you used =D2>100000, and someone later enters “N/A” in D15, Excel treats it as 0 and highlights it. Always test with real edge cases.
Method 2 Deep Dive
Now highlight the entire row for anyone above average — not just column D. Select A2:E21. Press Alt+H+L+N again. Choose “Use a formula…”. Enter:
=$D2>AVERAGE($D$2:$D$21)
See the $D2? The column is locked ($D), but the row is relative (2). So for row 3, Excel checks $D3, not $D2. That’s how you tie formatting to one column while affecting multiple columns.
Try this variation: highlight rows where Region = "West" AND Revenue > 100000. Formula:
=AND($B2="West",$D2>100000)
This only works because you selected A2:E21 *first*. If you’d selected just D2:D21, Excel wouldn’t know what $B2 means.
Cheat Sheet
| Action | Shortcut | Key Detail |
|---|---|---|
| Open Conditional Formatting menu | Alt+H+L |
Works from any cell — no need to pre-select data |
| New Rule dialog | Alt+H+L+N |
Skip the wizard — go straight to formula mode |
| Edit existing rule | Alt+H+L+E |
Opens Manage Rules — edit or reorder without deleting |
| Apply same rule to new range | Alt+H+F+P |
Paste formats *including* conditional rules — but verify $ references |
| Clear all CF from selection | Alt+H+L+C |
“Clear Rules” → “From Selected Cells” — fast cleanup before reapplying |