When you work with a large Excel worksheet, finding important information by looking through every row can take time. You may need to identify duplicate customer names, check which payments are overdue, find sales figures above a target or compare monthly performance.
Conditional Formatting in Excel helps you identify this information by changing the appearance of cells automatically when they meet specific conditions. You can use different colours, data bars and other visual formats to make important values easier to recognise. For those developing their spreadsheet knowledge, understanding the Excel training courses in Singapore available for different skill levels can provide useful context when learning features such as conditional formatting, formulas and data management.
For example, if you maintain an employee attendance sheet, you can highlight duplicate employee IDs, mark pending records or identify dates that need attention.
This guide covers eight useful conditional formatting examples using everyday spreadsheet situations. You will learn how to apply built-in rules, create formula-based formatting, highlight entire rows and manage rules without making your worksheet difficult to read.
1. What Does Conditional Formatting Do in Excel?
Conditional Formatting in Excel is a feature that changes the appearance of selected cells when their values meet conditions you define.
You can use it to highlight numbers, text, dates and duplicate entries. Excel checks the rules against the selected cells and applies the chosen formatting when a condition is met.
For example:
- Highlight sales figures above $5,000.
- Identify duplicate invoice numbers.
- Mark tasks with overdue dates.
- Use colour scales to compare performance.
- Display data bars to compare values visually.
The main advantage is that the formatting updates when the underlying values change and the conditions are met. You do not need to colour each cell manually.
Where Can You Find Conditional Formatting?
You can access this feature from the Excel ribbon:
- Open your Excel worksheet.
- Select the cells you want to format.
- Go to the Home tab.
- Select Conditional Formatting in the Styles group.
- Choose a rule from the available options or create a new one.
Excel provides several built-in options, including Highlight Cells Rules, Top/Bottom Rules, Data Bars, Colour Scales and Icon Sets.
Before applying these options, decide what information you want to identify. A clear purpose helps you select the right formatting rule.
2. Highlight Cell Rules: Three Useful Examples
Highlight Cells Rules are useful when you want to identify specific values without writing a formula. You can apply them to numbers, text, dates and duplicate entries.
The following three examples demonstrate how these rules work.
Example 1: Highlight Duplicate Values in Excel
Duplicate entries can create problems in customer lists, employee records, invoice registers and product databases. Conditional Formatting can help you identify repeated values before reviewing the data.
Suppose you have the following customer ID list:
To highlight duplicates in Excel:
Select the Customer ID cells, such as A2.
- Go to Home.
- Select Conditional Formatting.
- Choose Highlight Cells Rules.
- Select Duplicate Values.
- Keep Duplicate selected in the dialog box.
- Choose a formatting style, such as Light Red Fill with Dark Red Text.
- Click OK.
Excel will highlight C101 and C102 because each appears more than once.
When to use it: This rule is useful when checking duplicate invoice numbers, customer IDs, employee codes or product references.
Important: Highlighting duplicates does not delete them. It only changes their appearance. Review the records before deciding whether any entries should be removed.
Example 2: Highlight Values Above a Specific Limit
Suppose you maintain a monthly expense sheet and want to identify expenses above $500.
You can apply a greater-than rule to highlight these values.
Follow these steps:
Select the Amount column, such as B2.
- Go to Home > Conditional Formatting.
- Select Highlight Cells Rules.
- Choose Greater Than.
- Enter 500 in the value box.
- Select a formatting style.
- Click OK.
Excel will highlight $750 and $620 because both amounts are greater than $500.
You can also use other options from Highlight Cells Rules:
- Less Than: Find values below a specified limit.
- Between: Highlight values within a selected range.
- Equal To: Identify cells matching a particular value.
- A Date Occurring: Highlight dates based on available date conditions.
When to use it: This rule can help with expense tracking, sales targets, stock levels and budget monitoring.
klk
Example 3: Highlight Cells That Contain Specific Text
Sometimes you need to identify records based on a word or status instead of a number.
For example, an order tracking sheet may contain these statuses:
To highlight all pending orders:
Select the Status column, such as B2.
- Go to Home > Conditional Formatting.
- Select Highlight Cells Rules.
- Choose Text That Contains.
- Enter Pending.
- Select a formatting style.
- Click OK.
Excel will highlight the cells containing the word Pending.
You can repeat the process with other status values, such as Completed or Cancelled, using different formatting styles.
When to use it: This option is useful for tracking order status, employee attendance, project progress, payment status and customer feedback categories.
For beginners who want to develop their spreadsheet foundations, Basic Excel level course in Singapore covers essential worksheet formatting, data management, formulas and basic conditional formatting.
3. Top 10, Data Bars and Colour Scales
When a worksheet contains many numerical records, highlighting individual cells may not be enough. You may want to identify the highest values, compare performance or understand how numbers are distributed.
Excel provides Top/Bottom Rules, Data Bars and Colour Scales for these tasks.
Example 4: Highlight the Top 10 Values
Suppose your sales report contains monthly sales figures for several employees. You want to identify the ten highest values without sorting the entire dataset.
To apply the Top 10 Items rule:
- Select the sales figures.
- Go to Home > Conditional Formatting.
- Select Top/Bottom Rules.
- Choose Top 10 Items.
- Enter the number of values you want to highlight.
- Select a formatting style.
- Click OK.
Excel will highlight the ten largest values in the selected range.
You can change 10 to another number, such as 5 or 3, depending on your reporting requirements.
When to use it: Use this rule to identify top sales figures, highest expenses, best-performing products or the largest order values.
Note: Top 10 Items selects the ten highest values, not necessarily ten unique values. If some values are tied, more than ten cells may be highlighted.
Example 5: Compare Values Using Data Bars
Data Bars display a horizontal bar inside each selected cell. The length of the bar represents the value compared with other values in the selected range.
For example, consider the following sales report:
To apply Data Bars:
- Select the sales values.
- Go to Home > Conditional Formatting.
- Select Data Bars.
- Choose a solid-fill or gradient-fill style.
- Excel will display bars inside the selected cells.
The laptop cell will have a longer bar because its sales value is higher than the other products.
When to use it: Data Bars are useful for sales comparisons, budget tracking, stock quantities and project completion reports.
They allow readers to compare values visually while keeping the actual numbers visible.
Example 6: Compare Performance Using Colour Scales
Colour Scales apply different colours to cells based on their numerical values. A two-colour scale compares lower and higher values, while a three-colour scale also identifies values in the middle.
Consider this monthly performance data:
To apply colour scales in Excel:
- Select the sales values.
- Go to Home > Conditional Formatting.
- Select Colour Scales.
- Choose a two-colour or three-colour option.
Excel will apply colours based on the relative values in the selected range.
For example, a green-yellow-red scale can display higher values in green, middle values in yellow and lower values in red.
Understanding the Three-Colour Rule
The Three-Colour Rule is a simple way to keep colour-based reports easy to understand:
- Green: Higher or favourable values.
- Yellow: Middle-range values that may need attention.
- Red: Lower or unfavourable values.
This is a suggested reporting convention, not a fixed Excel requirement. Choose colours according to what the data represents.
For example, in a sales performance report, green may indicate higher sales. In an overdue payment report, red may be more appropriate for unpaid records.
Avoid applying too many colour combinations to the same worksheet. A limited colour system helps readers understand the information without distracting them from the actual figures.
4. Formula-Based Rules: Overdue Dates and Entire Rows
Built-in rules are suitable for common formatting tasks. However, some situations require conditions that depend on more than one cell.
For these cases, you can use conditional formatting formula examples to create custom rules.
A formula-based rule works when the formula returns TRUE or FALSE. Excel applies the selected formatting when the condition is TRUE.
Example 7: Highlight Overdue Dates in Excel
Suppose you maintain a task management worksheet with task names, assigned employees, due dates and completion status.
You want to highlight tasks that have passed their due dates but are not completed.
To apply the rule:
- Select the due date range, such as C2.
- Go to Home > Conditional Formatting > New Rule.
- Select Use a formula' to determine which cells to format.
- Enter this formula: =AND(C2<>“",C2
“Completed") - Select Format.
- Choose a fill colour, such as light red.
- Click OK to apply the rule.
The formula checks three conditions:
- C2<>“" checks that the due date cell is not blank.
- C2
- D2<>“Completed" checks that the task is not marked as completed.
Excel will highlight overdue dates for tasks that are still incomplete.
The TODAY function updates with the current date when Excel recalculates the worksheet. This means the formatting can change as dates pass or task statuses are updated.
Example 8: Highlight an Entire Row Based on a Due Date
Sometimes highlighting only the due date is not enough. You may want to highlight the entire task row so that the task name, assigned employee, date and status are all visible together.
You can use the same formula with a different selected range.
Follow these steps:
- Select the complete data range, such as A2.
- Go to Home > Conditional Formatting > New Rule.
- Select Use a formula to determine which cells to format.
- Enter the formula:
- =AND(C2<>“",C2
“Completed") - Select Format.
- Choose a fill colour.
- Click OK.
The dollar signs before C and D keep the formula linked to the Due Date and Status columns as Excel applies the rule across the selected row.
The row number remains relative, so Excel checks the correct date and status for each row.
When to use it: This method is useful for project trackers, payment schedules, employee task lists, delivery records and follow-up sheets.
Important: Make sure the formula references match your worksheet. If your due date or status columns are in different positions, update the column references before applying the rule.
5. Manage Rules and Keep Your Excel Files Efficient
As you apply more formatting conditions, your worksheet may contain several rules across different ranges. If these rules overlap or cover incorrect cells, the results may become confusing.
The Conditional Formatting Rules Manager helps you review and maintain these rules.
A. Open the Rules Manager
To view the existing rules:
- Select a cell within the formatted range.
- Go to Home > Conditional Formatting.
- Select Manage Rules.
- Review the rules displayed in the dialog box.
- Check the range shown under Applies To.
You can use the manager to create, edit, delete and rearrange rules.
B. Check the Applies To Range
One common issue occurs when a rule is applied to the wrong range.
For example, you may want a formatting rule to cover A2, but Excel may show A2 under Applies To.
In that situation, the rule will not cover the remaining rows.
Open Manage Rules, select the relevant rule and correct the Applies To range.
C. Understand Rule Order
When multiple conditional formatting rules apply to the same cells, Excel evaluates them according to their order in the Rules Manager.
If two rules apply conflicting formats, the order can affect which formatting appears. You can move rules up or down to change their priority.
The Stop If True option is also available for certain rule types. It can prevent lower-priority rules from being evaluated when a higher-priority condition is met.
Review overlapping rules when the displayed colours do not match your expectations.
D. Remove Unnecessary Rules
Old rules can remain in a worksheet even when you no longer need them.
To remove a rule:
- Open Conditional Formatting > Manage Rules.
- Select the rule you want to remove.
- Choose Delete Rule.
- Confirm the change.
You can also use Clear Rules to remove conditional formatting from selected cells or the entire worksheet.
E. Keep Your Workbook Easy to Manage
A worksheet with too many overlapping rules can become difficult to maintain. Use these guidelines:
- Apply formatting only to the ranges that need it.
- Remove rules that are no longer required.
- Avoid creating multiple rules for the same condition.
- Use a consistent colour system across related worksheets.
- Check formulas and cell references before applying rules to large ranges.
- Review the Applies To range when copying or extending formatted data.
If you regularly work with Excel reports, keyboard shortcuts can also help with everyday editing and formatting tasks. Explore these 25 time-saving Microsoft Excel shortcuts to make common spreadsheet actions easier to access.
Conclusion
Conditional Formatting in Excel helps you identify important information without manually checking every cell. You can use built-in rules to highlight duplicates, values above a limit and specific text. Data Bars, Top 10 Items and Colour Scales make numerical comparisons easier, while formula-based rules can highlight overdue dates or entire rows.
Start with simple rules and understand how each condition works before applying several formats to the same worksheet. Follow the Three-Colour Rule to keep reports readable, check your formula references and review the Rules Manager when formatting does not appear as expected.
With regular practice, these eight examples can help you manage customer lists, sales reports, expense records, project trackers and other everyday Excel worksheets more effectively.

+65 8421 2824
info@exceltraining.com.sg



Chat With Us