When you are staring at a massive Microsoft Excel spreadsheet containing hundreds of rows of sales figures or test scores, it is impossible for the human eye to quickly identify trends, anomalies, or failing grades. You could manually highlight cells in red or green, but if the data changes tomorrow, your manual highlights will be incorrect. To make your data instantly readable and dynamic, you must use Conditional Formatting.
Conditional Formatting allows you to set automated rules for a spreadsheet. You tell Excel: “If the number in this cell is less than 50, turn the cell red. If it is greater than 90, turn it green.” Because the formatting is tied to a rule, the colours will automatically update in real-time as the data changes. In this guide, you will learn how to apply these powerful visual rules.
How to Apply Basic Highlight Rules
The most common use case is highlighting numbers that fall above or below a specific threshold (e.g., identifying sales reps who failed to meet their quota).
- Open your Excel spreadsheet and highlight the specific column or range of cells containing the data you want to analyse.
- Ensure you are on the Home tab of the Ribbon menu.
- Locate the Conditional Formatting button (it usually has an icon of a blue and red grid) and click it.
- Hover your mouse over Highlight Cells Rules in the dropdown menu.
- Select Greater Than… or Less Than… depending on your goal.
A small dialogue box will appear.
- In the left box, type your threshold number (e.g., type
50to flag failing grades). - In the right dropdown menu, select the visual style. Excel offers default options like “Light Red Fill with Dark Red Text”. (You can also choose “Custom Format” to define your own specific colours).
- Click OK.
Instantly, every cell in your highlighted range that contains a number lower than 50 will turn red. If you change a 45 to a 60, the red formatting will automatically disappear.
Using Data Bars for Instant Visualisation
If you want to compare values relative to one another—such as seeing which products generated the most revenue this quarter—you should use Data Bars. This feature turns a standard column of numbers into a miniature bar chart.
- Highlight your column of numbers (e.g., Total Revenue).
- Click Conditional Formatting.
- Hover over Data Bars.
- Select one of the Gradient or Solid Fill colours (e.g., Blue Data Bar).
Excel will instantly fill each cell with a coloured bar. The cell with the highest number will have a bar that fills the entire width of the cell, while smaller numbers will have proportionally shorter bars. This allows you to spot top performers at a glance without reading a single number.
Finding Duplicate Data
If you have merged two mailing lists and need to ensure you do not send the same email twice to the same client, Conditional Formatting can instantly flag duplicate entries.
- Highlight the column containing the email addresses.
- Click Conditional Formatting > Highlight Cells Rules > Duplicate Values…
- The default setting will highlight any duplicates in red. Click OK.
You can now quickly scroll through the list and delete or merge the highlighted entries.
How to Remove Conditional Formatting
If your spreadsheet becomes too colourful or the rules are no longer needed, you must clear the formatting properly (using the standard “paint bucket” fill tool will not work).
- Click Conditional Formatting.
- Hover over Clear Rules.
- Select Clear Rules from Entire Sheet (or from selected cells).
By mastering Conditional Formatting, you transform dense, intimidating walls of numbers into intuitive, automated dashboards that instantly communicate critical insights.