Conditional Formatting: Preset Rules vs Formula Rules
By ExcelReady TeamUpdated 8 min read
The short answer
Use a preset rule (Highlight Cells Rules, Top/Bottom Rules, Data Bars, Color Scales, Icon Sets) when each cell should be coloured by its own value. Use a formula rule when the colour depends on another column, on two conditions at once, or must cover the whole row, such as =AND($C2<>"Done",$F2<$H$1) for overdue tasks.
Key takeaways
- Preset rules test the cell they colour. Formula rules can test any cell and colour a different one.
- Only presets give data bars, colour scales and icon sets. Formula rules set number, font, border and fill formats.
- To colour a whole row, select it all and lock the column: =$C2="Blocked".
- Write the formula for the top-left cell of the range, and test it in a spare cell first.
- When two rules set the same format, the one higher in Manage Rules wins.
On this page+
- Preset rules vs formula rules at a glance
- The task tracker we'll format
- The same tracker, formatted both ways
- How to write the formula rule so it colours the right rows
- When two rules hit the same row
- When to use preset rules
- When to use formula rules
- What a job test usually checks
- How to decide: a quick checklist
- Common mistakes with preset and formula rules
- Our recommendation
- Practise it
Conditional formatting preset rules vs formula rules is a choice between speed and reach. Preset rules (Highlight Cells Rules, Top/Bottom Rules, Data Bars, Color Scales and Icon Sets) take two clicks and colour each cell by its own value. A formula rule takes a minute longer but can check other columns, combine conditions and colour an entire row. This guide runs both on one task tracker so you can see which jobs each one can and can't do.
Preset rules vs formula rules at a glance#
Presets compare a cell with a value. Formula rules ask any TRUE/FALSE question you can write.
| Feature | Preset rules | Formula rule ("Use a formula to determine which cells to format") |
|---|---|---|
| Where | Home > Conditional Formatting > Highlight Cells Rules, Top/Bottom Rules, Data Bars, Color Scales, Icon Sets | Home > Conditional Formatting > New Rule |
| What it tests | The cell being coloured | Any cell, range or calculation |
| Colour a whole row | No | Yes, with a mixed reference like =$C2="Blocked" |
| Two conditions at once | No (between two numbers is the exception) | Yes, with AND or OR |
| Data bars, colour scales, icons | Yes | No: number, font, border and fill only |
| Ranking and averages | Built in: Top 10, Top 10%, Above Average | Possible, but you write it with LARGE or AVERAGE |
| Typing needed | A value or nothing | A formula with the right $ signs |
| Easy to get wrong | Rarely | Yes: wrong row or wrong $ |
The task tracker we'll format#
This tracker for a website relaunch sits in A1:F8. H1 holds the report date, 16-Mar-2026, so every result below can be reproduced. In a live file you would use TODAY() instead.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Task | Owner | Status | Estimate | Actual | Due |
| 2 | Homepage copy | Maya | In progress | 6 | 9 | 12-Mar-2026 |
| 3 | Product photos | Leo | Done | 10 | 8 | 10-Mar-2026 |
| 4 | Pricing table | Maya | Blocked | 4 | 5 | 18-Mar-2026 |
| 5 | SEO titles | Omar | Not started | 3 | 0 | 13-Mar-2026 |
| 6 | Checkout test | Leo | In progress | 8 | 6 | 20-Mar-2026 |
| 7 | Launch email | Omar | Done | 5 | 7 | 14-Mar-2026 |
| 8 | FAQ page | Maya | In progress | 4 | 4 | 16-Mar-2026 |
The same tracker, formatted both ways#
Here are five things a team lead might want to see, and which kind of rule can deliver each one.
| Goal | Preset rule | Result | Formula rule (applied to A2:F8) | Result |
|---|---|---|---|---|
| Spot blocked work | Highlight Cells Rules > Text that Contains: Blocked, on C2:C8 | Cell C4 only | =$C2="Blocked" | All of row 4 |
| Top 3 by actual hours | Top/Bottom Rules > Top 10 Items, changed to 3, on E2:E8 | E2 (9), E3 (8), E7 (7) | =$E2>=LARGE($E$2:$E$8,3) | Rows 2, 3 and 7 |
| Overdue and not done | Not possible: A Date Occurring only offers periods like Yesterday or Last week, and can't check the status | – | =AND($C2<>"Done",$F2<$H$1) | Rows 2 and 5 |
| Over estimate and not done | Not possible: each row needs its own comparison plus a status check | – | =AND($C2<>"Done",$E2>$D2) | Rows 2 and 4 |
| Show hours as bars | Data Bars on E2:E8 | A bar in every cell, longest for 9 | Not possible | – |
The pattern is clear. When the question is about the cell itself, a preset is quicker and does the same job. When the question involves another column, a second condition or the whole row, only a formula rule can do it. And for visual scales, only presets can.
Check the overdue result by hand: row 2 is due 12 March and in progress, row 5 is due 13 March and not started. Row 3 and row 7 are past due but Done. Row 8 is due on the report date itself, which isn't before it, so it stays uncoloured.
One more preset detail: Text that Contains matches part of the text, so it would also colour "Unblocked". The formula =$C2="Blocked" only matches the exact word.
How to write the formula rule so it colours the right rows#
A formula rule is written for the top-left cell of the range in Applies to, and Excel adjusts it for every other cell, exactly like copying a formula.
- Select A2:F8, starting at row 2 so the header isn't coloured.
- Go to Home > Conditional Formatting > New Rule (Windows keyboard: Alt, H, L, N). On a Mac, the path is the same; in the dialog, set Style to Classic, then pick the formula option.
- Choose Use a formula to determine which cells to format.
- Type
=AND($C2<>"Done",$F2<$H$1). - Click Format, pick a red fill, and click OK twice.
The $ signs are what make a whole row light up. $C2 locks the column, so every cell in row 2, from A2 to F2, checks C2. The row number stays free, so row 3 checks C3. $H$1 is fully locked because every row compares with the same report date. If mixed references are new to you, this guide to mixed references and relative vs absolute references explain the idea with ordinary formulas.
Watch out when you click a cell while typing the rule: Excel inserts a fully locked reference such as $F$2. Left like that, every row checks F2, so either every row is coloured or none is. Remove the $ before the row number.
Test the formula in a cell first#
Type the same formula in a spare cell, G2: =AND($C2<>"Done",$F2<$H$1). Fill it down to G8 with Ctrl+D (Mac: ⌘D). You should see TRUE in G2 and G5 and FALSE everywhere else. If the TRUEs are on the right rows, the rule will be too. The conditional formatting formula guide has more ready-made rule formulas.
When two rules hit the same row#
Row 2 is both overdue (red fill) and over estimate (say, yellow fill). Both rules are TRUE, and both set a fill, so they conflict. Excel applies the one higher in the list in Home > Conditional Formatting > Manage Rules. Use the Move Up and Move Down arrows to put the more urgent rule first.
If the rules don't conflict, for example one sets a red fill and the other sets bold text, Excel applies both. The Stop If True box on a rule stops Excel from checking the rules below it for those cells. It can't be set on data bar, colour scale or icon set rules. When colours look wrong, the conditional formatting troubleshooting guide walks through the usual causes.
When to use preset rules#
Use a preset whenever the cell should be judged on its own value.
- Thresholds: Greater Than 5,000, Less Than 0, Between 10 and 20.
- Text and dates in that cell: Text that Contains, A Date Occurring (Last week, This month).
- Duplicates: Duplicate Values finds repeated IDs in one column.
- Rankings: Top 10 Items, Top 10%, Above Average. Excel does the maths for you.
- Visual scales: Data Bars, Color Scales and Icon Sets are only available as presets.
Presets are also easier for colleagues to edit. Anyone can change "Greater Than 5,000" to 6,000 in Manage Rules, while a formula needs someone who reads formulas. The beginner's guide to conditional formatting covers each preset step by step.
When to use formula rules#
Use a formula rule when the preset menus can't ask your question.
- Whole rows: colour every cell of a task, order or employee based on one column.
- Comparisons across columns: actual vs estimate, sales vs target, end date vs start date.
- Two or more conditions: AND, OR and NOT, such as overdue and not done.
- An input cell:
=$B2=$J$1highlights the owner picked in J1, so a manager can switch views. - Anything a function can test: COUNTIF for duplicates across two columns, ISNUMBER(SEARCH()) for a word anywhere, WEEKDAY for weekends.
What a job test usually checks#
Practical tests tend to include one task of each kind. "Highlight every amount over 1,000" expects a preset: a formula works too, but takes longer and adds risk. "Highlight the entire row of every overdue task" can only be done with a formula rule. The checker usually looks at the result on the sheet, so the classic failure is a rule written for row 1 on a range that starts at row 2: every highlight then lands one row off.
How to decide: a quick checklist#
- Should cells other than the tested one be coloured, like a whole row? Yes: formula rule.
- Does the condition use another column or a second test? Yes: formula rule.
- Do you want bars, colour scales or icons? Yes: preset.
- Is it a top N, top %, above-average or duplicate check on one column? Yes: preset.
- Will non-formula users maintain the file? Yes: prefer a preset where one can do the job.
Common mistakes with preset and formula rules#
- Expecting a preset to colour the whole row. It colours only the cells it tests.
- Forgetting the
$before the column.=C2="Blocked"on A2:F8 makes each cell test the cell two columns to its right, so only A4 is coloured. - Writing the formula for the header row. With A2:F8 selected,
=$C1="Blocked"colours row 5, one row below the blocked task. - Typing a TRUE/FALSE test into a preset's value box. "Format cells that are GREATER THAN" compares the cell with whatever you type, so
=AND(...)there doesn't act as a rule. Use New Rule and the formula option. - Rules in the wrong order. A green "Done" rule above a red "Overdue" rule can hide the red. Check the order in Manage Rules.
- Wrapping the test in IF.
=$C2="Blocked"is enough; the rule already means "if TRUE, format".
Our recommendation#
Start with a preset whenever the cell is judged on its own value: it's faster, harder to get wrong and easier for others to edit, and it's the only way to get data bars, colour scales and icons. Switch to a formula rule the moment you need a whole row, another column, or two conditions. When you do, select the full table from row 2, lock the column with $, write the formula for row 2, and test it in a spare cell before you paste it into the rule.
Practise it#
Try the over-estimate exercise on this page, which is exactly the test-it-in-a-cell step. Then practise conditional formatting in a live spreadsheet: you'll set a Greater Than rule, flag duplicate IDs and the top 3 with presets, then colour whole rows with a formula rule and a $ on the column.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
Before building a rule that colours tasks running over their estimate, test the formula in a cell. In G2, return TRUE if the task is not Done and its Actual hours (E2) are greater than its Estimate (D2). Lock the columns with $, as you would in the rule.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Actual | Over estimate? | ||||||
| 2 | ||||||||
| 3 | ||||||||
| 4 | ||||||||
| 5 | ||||||||
| 6 | ||||||||
| 7 | ||||||||
| 8 | ||||||||
| 9 | ||||||||
| 10 | ||||||||
| 11 |
Tip: Use AND with two tests: $C2<>"Done" and $E2>$D2. Row 2 should return TRUE: 9 actual hours against an estimate of 6.
Practise this in a lesson
Frequently asked questions
What is the difference between a preset rule and a formula rule in conditional formatting?
A preset rule, such as Greater Than or Top 10 Items, compares each cell with a value and colours that same cell. A formula rule runs a TRUE/FALSE formula you write, so it can look at other columns, combine conditions and colour whole rows.
Can I highlight a whole row with a preset conditional formatting rule?
No. Highlight Cells Rules only colour the cells that meet the condition. To colour the whole row, select every column of the table and use a formula rule with the column locked, such as =$C2="Blocked".
Can a formula rule show data bars or icons?
No. A formula rule can only apply number, font, border and fill formats. Data bars, colour scales and icon sets are separate preset types that colour each cell by its own value.
Which conditional formatting rule wins when two rules apply?
If both set the same kind of format, such as the fill colour, the rule higher in the Conditional Formatting Rules Manager wins. If they set different things, such as bold text and a fill, both are applied.
Why is my formula rule colouring the wrong rows?
The formula is probably written for the wrong row. It must be written for the top-left cell of the Applies to range, so if the range starts at row 2, the formula must refer to row 2.