Conditional Formatting in Excel is a game-changer for anyone dealing with large datasets. This feature allows you to automatically apply formatting, such as colors and icons, to cells that meet specific criteria. With conditional formatting Excel formulas, you can customize your data presentation and highlight key information effortlessly. Whether you need to create a heatmap, highlight duplicates, or show trends, conditional formatting in excel with formula makes it simple and effective. Moreover, you can even apply conditional formatting in Excel based on other cells, enabling dynamic and interactive data visualization. Unlock the full potential of your data with conditional formatting Excel and transform the way you analyze information.
Conditional Formatting is a feature in an Excel spreadsheet. It is used to maintain the status of the result easily. It is most often used as color-based formatting to highlight, emphasize, or differentiate among data and information stored in an Excel spreadsheet.
When it comes to applying alternative forms to data that fit particular criteria, Excel conditional formatting is a highly useful feature. It can make it easier for you to draw attention to the key details in your spreadsheets and quickly identify differences in cell values.
You can use preset rules, including Color scales, Data Bars, Icon Sets, Sort filters, etc. to conditionally format your data, or you can construct your own rules that specify when and how the selected cells should be highlighted.
Data Bars
Similar to a bar graph, data bars are horizontal bars that are added to each cell

Data Bars
Color scales
Alter each cell’s color depending on its value. A two- or three-color gradient is used for each color scale

Color Scales
Icon Sets
Based on the value of each cell, icon sets assign a distinct icon to each cell.

Icon Sets
Navigate to the Home tab, access the Style group, and select the dropdown arrow adjacent to Conditional Formatting. Then, opt for Top/Bottom Rules. It’s important to note that you can find Conditional Formatting in the same location across Excel versions from 2010 to Excel 365.
Quick Tip: Go to Home tab > Select Conditional formatting > Select Rule

Go to Home Tab >> Click on “Conditional Formatting”
Step 1: Select the Cells
Select the cells you want to format in the Spreadsheet
Click on Conditional Formatting, On the Home tab, in the Styles group
Step 3: From a Set of Preset Rules, Pick the Required One
From a set of preset rules, pick the one that best serves your needs

Select Highlight Cell Rules
Enter the value in the box on the left of the dialogue box and select the chosen format from the drop-down list on the right (with Default Light Red Fill with Dark Red Text)
.webp)
Enter Values >> Choose Format
Likewise, you have the flexibility to choose a different rule type that better suits your data. For instance, you can opt for:
- Greater than or equal to
- Between two values
- Text that contains specific words or characters
- Date occurring in a certain range
- Duplicate values
You can select any other color for the background, text, or borders of the cells if none of the standard layouts appeals to you. This is how:
Pick Custom Format, In the preset rule dialogue box, from the drop-down list on the right
Change between the Font, Border, and Fill tabs in the Format Cells dialogue window to select the preferred font style, border style, and background color, respectively, click OK.

Edit Format Cells >> click “OK”

Click “OK”
You can create a new Conditional Formatting Rule in Excel from scratch. To do so, follow these steps:

Select “Conditional Formatting” >> Select “New Rules”
Step 3: Select the Rule Type and Click Ok
Now select the rule type, in the New Formatting Rule dialog box

Select the Rule Type >> Click Ok
.webp)
Click on Format> choose Color
Step 5: Preview Result

New Rule Applied
To make any changes in an already existing Formatting Rule in Excel, follow these steps:
Step 1: Select the Cells
Select any cell to which a rule already applies.
.webp)
Select the Cells

Go to Home Home Tab >> Manage Rules
Step 3: Select the Rule you Want to Edit
This will open the Rules Manager dialog box, select the rule you want to modify, then Click on Edit Rule.

Select your Desired Rule
Step 4: Make the Changes and Click Ok
Make the required changes in the Edit Formatting Rule dialogue window, Click on Ok
Here are some Scenario-Based Examples of Conditional Formatting in Excel:
How to Find Duplicates in Excel
Step 1: Select the Cells in which you want to Find Duplicates
Select the cells where you want to identify duplicate values. For example: select the column TOT as shown in the figure.
.webp)
Select the Data
Click on the Conditional Formatting and click on new rules. Now a window appears, select ‘format only unique and duplicate values’ and click on the format.
.webp)
Go to the Conditional Formatting >> Cell Formatting
Step 3: Choose the Color
Select the Fill option in the tab and choose the background color and click ok.
.jpg)
Choose the Color
Step 4: Preview Duplicates
Now the duplicate values as shown in the figure.
.webp)
Preview Results
How to Highlight Cells with Value Greater or Less than a Number in Excel
Follow the below steps for highlighting cells with a value greater or less than a given number:
Step 1: Select the Cells
Select the cells that you want to highlight with Greater or less than a number.

Select the cells
Click on the conditional formatting and click on new rules. Now select “Format all cells based on their values“. In the ‘Minimum’ and choose the value you want to identify the lesser values and choose the color. Similarly, In the Maximum and choose the value you want to identify the lesser values and choose the color. And click ok.
.webp)
Go to Conditional Formatting >> New Rule
Step 3: Preview Result
In the below figure, the values with green color indicate greater values and the values with red color indicate fewer values.
.webp)
Preview Results
How to Highlight Top or Bottom values in Excel
Step 1: Select the Cells where you want to Highlight Top and Bottom N items
To highlight the top and/or the bottom N items select the cells where you want to highlight top and bottom N items .
Step 3: Choose Top/Bottom Cells
Click on the conditional formatting->Top/bottom cells->Top 10 Items. Choose a value in format cells that rank at the top and choose the format and click ok.
.webp)
Click on Conditional Formatting > Top/Bottom Rules > Top 10
Step 4: Preview the Result
In the below figure, the red color indicates the top 5 values in rank.
.webp)
Preview Result
You won’t need to start over when applying a conditional format you’ve already established to different data. To transfer the current conditional formatting rule(s) to another data collection, just utilize Format Painter.
Click on the first cell in the range you want to format, then drag the paintbrush down to the last cell to paste the copied formatting.

Copy Excel Conditional Formatting
There are two easy ways to delete conditional formatting rules
Step 1: Select the BestChoice after choosing the desired cell range

Select “Clear Rules” >> Clear Rules from Selected Rules
Step 1: Select the Rule
Under the Conditional Formatting Rules Manager

Click “OK”
Removing conditional formatting in Excel can be a quick and easy task with the right keyboard shortcuts. If you want to remove all the conditional formatting rules from a selected range of cells, you can follow these steps:
Step 1: Select the Cell range
Select the range of cells from which you want to remove the conditional formatting.
Step 2: Press Keys
Press Alt + H + E + F on your keyboard.
This shortcut sequence will open the Clear Rules menu, allowing you to remove conditional formatting from the selected cells. Mastering this shortcut can save you time and streamline your data management process, ensuring your spreadsheets remain clean and organized.
Note: To use the keyboard shortcut provided above, begin by highlighting the cells from which you wish to remove the Conditional Formatting. Afterward, press the designated keys.
- Highlighting Top and Bottom Values: You can use Conditional Formatting to highlight the highest and lowest values in a Dataset so that you can easily identify significant data points.
- Data Bars and Colors Scales: Represent data visually using data bars or color scales to create intuitive maps, making patterns and trends more apparent.
- Icons Sets: Apply Icon Sets to cells, by using symbols such as arrows or checkmarks, to quickly assess data against preset conditions.
- Formulas in Conditional Formatting: You can use custom formulas to create complex conditions for formatting. This can help you for more precise control over the formatting rules.
- Cell Reference in Conditional Formatting: You can apply Conditional Formatting dynamically based on values in other cells using Cell References.
- Managing Rules: You can efficiently Manage and organize your conditional formatting rules through the “Conditional Formatting Rules Manager”.
Conclusion
Mastering conditional formatting in Excel can revolutionize the way you handle data, providing clearer insights and more effective presentations. By leveraging conditional formatting Excel formulas and applying rules based on other cells, you can create dynamic and interactive data visualizations that highlight key information effortlessly. This powerful feature not only enhances your data analysis capabilities but also improves your efficiency and decision-making processes.
Conditional Formatting in Excel – FAQs
How do I use conditional formatting in Excel?
Here are some following steps by which you can use conditional Formatting:
- Select Your Data Range
- Open Conditional Formatting Menu
- Choose a Rule Type
- Set Your Criteria
- Apply the Rule
What is the key for conditional formatting in Excel?
There is no single shortcut key for conditional formatting, but you can access the Conditional Formatting menu with the following sequence:
Press Alt + H + L to open the Conditional Formatting menu.
What are the four types of conditional formatting in Excel?
The four types of conditional formatting are:
- Highlight Cells Rules: Format cells that contain specific text, values, dates, or duplicate values.
- Top/Bottom Rules: Format the highest or lowest values, top 10 items, or above/below average values.
- Data Bars: Add horizontal bars inside the cells to visually represent the data magnitude.
- Color Scales: Apply a gradient of colors to represent the data values, making it easy to spot trends.
What are the three rules in conditional formatting in Excel?
The three rules are as follows:
- Value-Based Rules
- Text-Based Rules
- Date-Based Rules
What is excel conditional formatting formula if?
Conditional Formatting in Excel can be enhanced using the IF formula to apply specific formats based on custom criteria.
- Select the Range of Cells
- Open Conditional Formatting Menu
- Choose ‘New Rule’
- Select ‘Use a Formula to Determine Which Cells to Format’
- Enter the IF FormulaSet the Format
- Apply the Rule
Our GATE 2026 Courses for CSE & DA offer live and recorded lectures from GATE experts, Quizzes, Subject-Wise Mock Tests, PYQs and practice questions, and Full-Length Mock Tests to ensure you’re well-prepared for the toughest questions.
Take the Three 90 Challenge! Complete 90% of the course in 90 days and earn a 90% refund. Stay motivated, track your progress, and make the most of your preparation time. Plus, enjoy exclusive features like:
--> All India Mock Test
--> Live GATE CSE & DA Mentorship Classes
--> Live Doubt Solving Sessions
Join now and stay ahead in your GATE 2026 journey!
Similar Reads
Conditional Formatting in Excel
Conditional Formatting in Excel is a game-changer for anyone dealing with large datasets. This feature allows you to automatically apply formatting, such as colors and icons, to cells that meet specific criteria. With conditional formatting Excel formulas, you can customize your data presentation an
11 min read
How to use Conditional Formatting in Excel?
Microsoft Excel is a software that allows users to store or analyze the data in a proper systematic manner. It uses spreadsheets to organize numbers and data with formulas and functions. MS Excel has a collection of columns and rows that form a table. Generally, alphabetical letters are assigned to
4 min read
Conditional Formatting - PowerBI
Conditional formatting in Power BI is a powerful feature that allows you to visually enhance and customize the appearance of your data based on certain conditions or rules. It lets you apply different styles, colors, and formats to your data to make it stand out and convey important insights more ef
5 min read
Formatting Charts in Excel
One of the major uses of Excel is to create different types of charts for a given data set. Excel provides us with a lot of modification options to perform on these charts to make them more insightful. In this article, we are going to see the most common "Formatting" performed on charts using a suit
3 min read
Adding Conditional Formatting to Excel Using Python Openpyxl
Adding conditional formatting using openpyxl is an easy and straightforward process. While working with Excel files, conditional formatting is useful for the visualization of trends in the data, highlighting crucial data points, and making data more meaningful and understandable. In this article, we
5 min read
COUNTIF Function in Excel
The COUNTIF function in Excel is a key tool for anyone who works with data. It helps you count cells that meet certain criteria, making it invaluable for everything from simple data management to complex statistical analysis. Whether you're a business professional, data analyst, or student, learning
10 min read
How to Apply Conditional Formatting in a Pivot Table in Excel
One of the most useful ways to customize the pivot table formatting is using Conditional Formats. Conditional formatting rules can be applied to Pivot tables just like they can be applied to normal data ranges. So by using conditional formatting, we can highlight the cells with a certain color depen
8 min read
How to Apply Conditional Formatting Based On VLookup in Excel?
VLOOKUP is an Excel function to lookup data in a table organized vertically. VLOOKUP supports approximate and exact matching, and wildcards (* ?) for partial matches. Conditional Formatting Based on Vlookup: 1. Using the Vlookup formula to compare values in 2 different tables and highlighting those
3 min read
Conditional Summation
Users can determine the total of the values in a column depending on certain conditions by using MySQL's Conditional Summation feature. By enabling users to do calculations on data subsets that satisfy particular needs this feature improves data analysis and manipulating capabilities. One's capacity
3 min read
Conditional Summation in SQL
In data manipulation, SQL (Structured Query Language) stands as a powerful tool for extracting, transforming, and analyzing data stored in relational databases. Among its numerous functionalities, SQL provides robust capabilities for summation operations, allowing users to aggregate data according t
5 min read
Conditional Convergence
Conditional convergence is convergence with a condition that is a series is said to be conditionally convergent if it converges, but not absolutely. This means that while the series ∑an converges, the series of the absolute values ∑∣an∣ diverges. A classic example of a conditionally convergent seri
5 min read
How to Use Conditional Formatting in Google Sheets
Conditional formatting in Google Sheets automatically formats cells based on specific rules, highlighting essential data points, trends, or outliers for more accessible data analysis and interpretation. This article discusses conditional formatting in Google Sheets, from the basics to advanced techn
8 min read
Conditional Summation in PostgreSQL
PostgreSQL is a powerful tool that includes advanced features in the field of data analysis and database management. One of its significant useful functions is the capacity to carry out conditional summation, which allows users to add up numbers based on given conditions. This article goes through t
5 min read
Conditional Summation in PL/SQL
Conditional Summation is a process of calculating a sum based on some specific criteria or condition. Calculating "conditional summation" can have lots of use cases. In financial sectors, it allows us to calculate the total or average of a specific category. Similarly in educational sectors, conditi
5 min read
Conditional Operator in Programming
Conditional Operator, often referred to as the ternary operator, is a concise way to express a conditional (if-else) statement in many programming languages. It is represented by the "?" symbol and is sometimes called the ternary operator because it takes three operands. Table of Content Syntax of C
9 min read
Conditional Inference Trees in R Programming
Conditional Inference Trees is a non-parametric class of decision trees and is also known as unbiased recursive partitioning. It is a recursive partitioning approach for continuous and multivariate response variables in a conditional inference framework. To perform this approach in R Programming, ct
5 min read
R If Else Conditions
The if-statement in Programming Language alone tells us that if a condition is true it will execute a block of statements and if the condition is false it won’t. But what if we want to do something else if the condition is false? Here comes the R Programming Language else statement. We can use the e
5 min read
Array Formulas in Excel
Excel is among the most powerful and widely used spreadsheet tools which eases organizing numbers and data within the sheets with pre-built formulas and functions. In this article, we are going to study Array Formulas. Arrays are one of them. Using Excel Array Formulas, make it super easy to handle
8 min read
Conditional Probability Practice Question
Conditional probability is a measure of the probability of an event occurring given that another event has already occurred. In simple words, conditional probability is like figuring out the chances of something happening given that something else has already happened. The probability of A given tha
7 min read