Conditional formatting in Excel automatically highlights cells based on rules you choose, making it easier to spot overdue dates, duplicate entries, unusual values and task progress. To apply it, select your data, go to Home > Conditional Formatting, choose a rule, set the condition and select a formatting style. Excel updates the formatting as the underlying values change.
Whether you manage invoices, track projects or organise office records, these ten practical examples will help you make your spreadsheets clearer and easier to use.
Want to improve your Excel skills? Skill Up’s Microsoft Excel Complete Training covers conditional formatting alongside formulas, data management and other spreadsheet techniques. It provides structured online training for learners who want to develop their Excel knowledge.
What Is Conditional Formatting in Excel?
Conditional formatting is an Excel feature that automatically changes how cells look when their values meet specified conditions.
For example, you can highlight expenses above £500, turn overdue deadlines red or colour-code tasks according to their progress. The formatting updates when the relevant data changes without altering the underlying values.
According to Microsoft’s conditional formatting guidance, Excel supports several rule types, including colour scales, data bars, icon sets and formula-based conditions.
Conditional formatting is also useful when developing advanced Excel skills for work, particularly when managing larger datasets.
How to Apply Conditional Formatting in Excel
Excel provides built-in rules for common tasks, such as highlighting duplicates or values above a limit. For more specific conditions, choose New Rule > Use a formula to determine which cells to format. Formula-based rules are especially useful when you want to highlight entire rows or check several conditions at once.
Before trying the examples, start with a basic rule.
- Open your Excel worksheet and select the cells you want to format.
- Click the Home tab.
- Select Conditional Formatting in the Styles group.
- Choose a rule category, such as Highlight Cells Rules.
- Select a condition, such as Greater Than.
- Enter the value and choose a formatting style.
- Click OK to apply the rule.
For example, selecting B2:B20 and setting a Greater Than rule to 500 highlights values exceeding 500.
Excel checks the selected cells against your condition and updates the formatting when their values change.
The following examples use Microsoft 365 desktop terminology. Some menu options may differ in Excel for the web or older versions.
10 Practical Uses of Conditional Formatting in Excel
1. Highlight Values Above or Below a Limit
Suppose you manage office expenses and want to identify purchases exceeding £500.
Select the expense values in B2:B20, then:
- Go to Home > Conditional Formatting > Highlight Cells Rules.
- Select Greater Than.
- Enter 500.
- Choose a red fill and click OK.
Every value above £500 will be highlighted.
You can also use Less Than to identify figures below a minimum target. This is useful for reviewing departmental spending, sales performance or stock levels.
2. Highlight Duplicate Entries
Duplicate invoice numbers or customer references can cause confusion when reviewing records.
Excel can identify repeated values without deleting anything.
- Select the invoice references in A2:A100.
- Choose Conditional Formatting > Highlight Cells Rules > Duplicate Values.
- Select a highlight colour.
- Click OK.
Excel highlights values appearing more than once in the selected range.
Remember, highlighting duplicates does not remove them. If you need to clean your records, follow the separate guide on how to remove duplicate entries.
3. Colour-Code Tasks Based on Their Status
A task tracker becomes easier to scan when different statuses have consistent colours.
Suppose column D contains the following statuses:
| Task status | Formatting colour |
|---|---|
| Completed | Green |
| In Progress | Amber |
| Overdue | Red |
To create the first rule:
- Select D2:D30.
- Choose Conditional Formatting > Highlight Cells Rules > Text that Contains.
- Enter Completed.
- Select a green fill and click OK.
The Text that Contains rule matches cells containing the specified wording. If your tracker uses similar status labels, such as “Overdue” and “Not Overdue”, consider an exact-match formula rule to avoid highlighting the wrong entries.
Repeat for the other statuses, selecting different colours.
If your team regularly updates task statuses, you can also create an Excel drop-down list to make entries more consistent.
4. Highlight Overdue Dates Automatically
Conditional formatting can identify missed deadlines in a project tracker.
Suppose column C contains due dates, starting at C2.
To highlight overdue dates:
- Select C2:C30.
- Open Conditional Formatting > New Rule.
- Choose Use a formula to determine which cells to format.
- Enter the formula:
=AND(C2<TODAY(),C2<>"") - Click Format, choose a red fill and confirm.
The formula highlights dates earlier than today while excluding empty cells.
This works well for payment deadlines, outstanding tasks and administrative follow-ups. Make sure Excel recognises the entries as actual dates rather than text.
5. Use Colour Scales to Show Trends
Colour scales help you identify high and low values without examining every figure.
For example, imagine a worksheet containing monthly sales figures.
- Select the sales values.
- Go to Conditional Formatting > Colour Scales.
- Choose a two-colour or three-colour scale.
Excel applies different shades according to the values in the selected range.
Higher figures might appear green, while lower figures appear red, depending on the scale selected.
Colour scales are particularly useful when reviewing sales results, spending patterns or performance figures. For accessibility, avoid relying on colour alone to communicate important information.
6. Compare Figures Using Data Bars
Data bars display horizontal bars inside cells, making numerical comparisons quicker.
Suppose column B contains departmental expenditure.
- Select the relevant values.
- Choose Conditional Formatting > Data Bars.
- Select a suitable bar style.
Excel displays bars whose lengths represent the relative values.
You can immediately identify departments with higher or lower expenditure while retaining the actual numbers.
If you want to develop your spreadsheet analysis skills further, Skill Up’s Data Analysis In Excel course covers advanced Excel features, including conditional formatting, PivotTables, charts and data analysis.
Data bars are useful for simple visual comparisons. To analyse relationships between larger datasets, see our guide to Power Pivot for data analysis.
7. Identify Top or Bottom Performers
Excel’s Top/Bottom Rules can highlight the highest or lowest values in a selected dataset.
For example, to identify your five highest sales figures:
- Select the sales range.
- Open Conditional Formatting > Top/Bottom Rules.
- Choose Top 10 Items.
- Change the default number from 10 to 5.
- Choose a formatting style and click OK.
Excel highlights the five highest-ranked values. Ties can result in more than five highlighted cells.
You can also highlight bottom values or figures above and below average.
This feature is useful when reviewing performance reports or identifying results that deserve closer attention.
8. Highlight Entire Rows Based on a Cell Value
Sometimes highlighting one cell is not enough. You may want an entire task row to change colour when its status becomes overdue.
Suppose your table covers A2:D20, with task statuses in column D.
- Select A2:D20.
- Choose Conditional Formatting > New Rule.
- Select Use a formula to determine which cells to format.
- Enter the formula:
=$D2="Overdue" - Choose a red fill and click OK.
Excel highlights each row where column D contains Overdue.
The dollar sign fixes the column reference, while the row number changes as Excel evaluates each row.
Understanding cell references also helps when working with other Excel techniques, including INDEX MATCH formulas.
9. Apply Multiple Conditions Using AND or OR
Formula-based conditional formatting allows you to check several conditions simultaneously.
Suppose column C contains invoice due dates and column D contains payment statuses.
You want to highlight invoices that are both overdue and unpaid.
Select A2:D30, create a new formula-based rule and enter the formula: =AND($C2<>"",$C2<TODAY(),$D2="Unpaid")
Choose a red fill and apply the rule.
The formula highlights rows only when both conditions are satisfied. The blank-cell check prevents missing due dates from being treated as overdue.
Use OR instead when meeting either condition should trigger formatting.
For more practice with Excel functions, Skill Up’s Adventures in Excel Course includes lessons on logical functions, date functions, lookup functions and other useful spreadsheet techniques.
Microsoft’s guidance on AND and OR functions explains how these logical functions evaluate multiple conditions.
10. Highlight Blank Cells in a Tracker
Missing information can easily go unnoticed in large worksheets.
Suppose column B should contain an assigned employee for every task.
To identify missing assignments:
- Select B2:B50.
- Choose Conditional Formatting > New Rule.
- Select Format only cells that contain.
- Set the condition to Blanks.
- Choose a yellow fill and click OK.
Empty cells are highlighted, making incomplete records easier to identify.
Be aware that cells containing spaces are not genuinely empty. Formula-generated empty strings may also require different handling.
For other ways to work efficiently with spreadsheets, see these useful Excel keyboard shortcuts.
Practical Example: An Excel Invoice Tracker
Suppose you are reviewing invoices on 20 November 2026. The following example shows how conditional formatting identifies overdue, unpaid invoices.
The worksheet uses columns A to D for invoice details. The Expected result column below explains how the conditional formatting rule should behave.
| Invoice (A) | Client (B) | Due date (C) | Payment status (D) | Expected result |
|---|---|---|---|---|
| INV-101 | Client A | 15/11/2026 | Unpaid | Highlight red |
| INV-102 | Client B | 25/11/2026 | Unpaid | No highlight |
| INV-103 | Client C | 10/11/2026 | Paid | No highlight |
| INV-104 | Client D | Blank | Unpaid | No highlight |
For INV-104, leave the due-date cell genuinely empty rather than entering the word “Blank”.
These results are based on 20 November 2026. As the TODAY() function updates automatically, the highlighted invoices may change on subsequent dates.
How to Manage, Edit or Remove Conditional Formatting Rules
As worksheets change, you may need to update existing rules.
To manage them:
- Select a formatted cell or range.
- Go to Home > Conditional Formatting > Manage Rules.
- Change the Show formatting rules for setting if necessary.
- Select a rule to edit, delete or reorder it.
The Applies to field determines which cells the rule affects.
When several rules apply to the same cells, their order can affect the displayed formatting. The Stop If True option can prevent lower-priority rules from being evaluated when a higher rule’s condition is satisfied.
To remove formatting, select the relevant cells and choose Conditional Formatting > Clear Rules > Clear Rules from Selected Cells.
Why Is Conditional Formatting Not Working?
Most conditional formatting problems involve the selected range, rule conditions or formula references.
| Problem | What to check |
|---|---|
| Wrong cells highlighted | Review the Applies to range |
| Formula rule fails | Check cell references and formula syntax |
| Dates are not highlighted | Confirm dates are stored as valid Excel dates |
| Unexpected colours appear | Review overlapping rules and their priority |
| Blank cells behave unexpectedly | Check for spaces or formulas returning empty text |
For formula-based rules, remember that Excel evaluates the formula relative to the first cell in the selected range.
If formatting changes unexpectedly after copying or inserting rows, check the Rules Manager for altered or overlapping ranges.
Final Thoughts
Conditional formatting in Excel makes everyday spreadsheet tasks easier by highlighting information that needs attention. Start with basic rules, then progress to formulas as your confidence grows.
If you want to demonstrate broader spreadsheet knowledge professionally, it is also worth reviewing Excel certification options in the UK and how different certificates relate to your goals.
Ready to Build Confident Excel Skills?
Learn conditional formatting, formulas and data tools at your own pace with Skill Up’s Microsoft Excel Complete Training.
- Conditional formatting and data tools
- Formulas, PivotTables and Power Pivot
- About 40 hours of flexible online learning
Frequently Asked Questions
1. Can I apply conditional formatting to an entire column?
Yes. Select the required column or data range before creating a rule. For formula-based formatting, ensure the references match the first selected data row. Using only the populated range is often more practical than formatting an entire column.
2. Does conditional formatting work in Excel Tables?
Yes. You can apply conditional formatting to Excel Table data, including numerical values, dates and text. Check the rule’s range when adding new rows to ensure the intended cells remain covered.
3. Can I apply multiple conditional formatting rules to the same cells?
Yes. Excel allows multiple rules to apply to the same range. Use Manage Rules to review their order, conditions and formatting settings when results overlap.
4. Can conditional formatting change a cell’s colour automatically?
Yes. Conditional formatting can automatically change a cell’s fill colour, font colour or other supported formatting when its value meets a specified rule. For example, you can make overdue dates appear red or completed tasks appear green. The formatting updates when the relevant data changes.
All Courses
Personal Development
Employability
Career Bundle
Management
Free QLS Certificate
IT & Software
Business
Technology
Health & Care
Quality Licence Scheme Endorsed Courses
Health & Safety
Training
Marketing
Job Ready Programme
Design
Accounting & Finance
Health and Fitness
Healthcare and Medical
Animal Care
Psychology
Microsoft Office
Teach & Education
I.T
HR and Leadership
Counselling and Therapy
Teaching & Child Care
Health and Social Care
Electrical & Electronics
Law
Food Nutrition
programming
Administration & Office Skills
Education
Language
Engineering
Cooking & Baking
Law & Criminology
Accounting
QLS Bundle
Office Skills
Awareness
Photography
Finance
Lifestyle
Diet and Nutrition
Makeup & Beauty
Therapy
Sports
First Aid
Accounting & Bookkeeping
Mathematics
Excel
Web Design
Top Rated Course
Diet and Fitness
Counselling
Agriculture
Networking & Design
General Education
Biotechnology
Audit
Economics
Lifestyle & Recreational
Adobe Photoshop
Travel and Tourism
Categories
Awarded By



