When you are working with a large database you may want to highlight some specific rows based on other cells or values to identify them quickly. In such a case, you can highlight rows using conditional formatting. Conditional formatting is a fascinating way to highlight a row and reduce your workloads and it can improve your efficiency. Today in this article, we will demonstrate how to highlight rows using conditional formatting in Excel.
Download Practice Workbook
Download this practice book to exercise the task while you are reading this article.
9 Suitable Methods to Highlight Row Using Conditional Formatting
Think of a situation where you are given the Name, Department, Subject, Marks, and Grade of some students. Now you have to highlight some rows based on their names, departments, or grades using conditional formatting. In this section, we will demonstrate 9 different ways to do that.
1. Highlight Row Based on a Single Text
Highlighting rows based on a single text is one of the basic methods of conditional formatting. Suppose we have to highlight rows that have the Arts department. We will follow the steps below to learn.
- Select the entire dataset. In your Home Tab, go to Conditional Formatting in the Style Group. Click on it to open available options and from them click on New Rule.
Home → Conditional Formatting → New Rule
- A new window opens. Select Use a Formula to Determine the Cells to Format to continue.
- In the formula section, insert this formula.
- This formula will compare the dataset cells with the name Arts. When the value will match, it will highlight the row.
- We need to format the matched cells. The format section will help you out. We have chosen the color of the text Automatic. The fill cells option will help you to color the rows with a specific color. Choose any color you like to go.
- Now that we have completed all the actions, click OK to get the result.
- We have highlighted our rows based on a text value in a cell using conditional formatting.
2. Highlight Row Using Different Color Based on Multiple Texts
Following the same instructions as discussed in the previous method, we can highlight rows based on multiple conditions. Consider a case where you have to highlight the rows that have the Chemistry subject and Science department in them. Follow the steps below to learn this technique.
- Go to the New Formatting Window following these steps.
Home → Conditional Formatting → New Rule
- Select Use a Formula to Determine the Cells to Format.
- Write down the formula to specify the cells that contain the Chemistry The Formula is,
- Select the color format for your matched cells. Click OK to continue
- The conditional formatting features successfully highlight the rows.
- Now we need to highlight the rows that contain the Science department in them. For that, go to
Home → Conditional Formatting → Manage Rules
- The Conditional Formatting Rules Manager window appears. Click New Rule to add another one.
- Set the formula for the second condition. Write down the formula in the formula box.
- Set the format and you are good to go.
- Finally, click OK to highlight row based on multiple conditions using conditional formatting
- The result is here.
3. Highlight Row with Conditional Formatting Based on a Number value
We can highlight a row using conditional formatting based on numbers too. In this given situation, we have to highlight the rows with a mark equal to 90.
- Insert the formula in the formula box of the New Formatting Rule
- Specify the formatting and click OK to continue.
- Our job here is done.
- Using the same procedures, you can also apply the greater than or the less than conditions. For highlighting row having a number greater than 90, the formula is,
- Confirm the format and click OK.
- We have got the result. In the same way, you can find the number less than 90.
4. Apply The OR Function to Highlight Row
You can use The OR Function to apply conditional formatting. We want to highlight the Commerce department or Philosophy subject using the OR function. Insert those texts into your reference table.
- Write down the OR formula in the formula box. The Formula is,
- The OR formula will compare the cell values with Commerce and Philosophy and then it will color the rows that matched the conditions.
- Select a formatting style according to your preferences.
- Click OK and your job is done.
Read more: Excel Conditional Formatting Formula with IF
5. Insert The AND Function to Highlight Row with Conditional Formatting
The AND Function also helps you to highlight rows using conditional formatting. Here we will apply a new condition. We will change row colors that have both Physics and A+ grades in them.
- Following the same procedures discussed above, go to the New Formatting Rule window and apply the AND The formula is,
- Set the formatting styles and click OK to format the cells.
- We have successfully highlighted the rows according to the conditions.
- Excel Conditional Formatting Formula
- How to Apply Conditional Formatting to Multiple Rows (5 Ways)
- Conditional Formatting Multiple Text Values in Excel (4 Easy Ways)
- Conditional Formatting with Formula for Multiple Conditions in Excel
6. Use The SEARCH Function to Highlight Row
You can Use The SEARCH Function to find and highlight any specific rows in your dataset using conditional formatting. To do this, insert a name that you want to find in the database.
- Apply the SEARCH function to find Marketing. The formula is,
- Click OK to continue.
- See, we have highlighted the rows that contain the subject Marketing.
7. Highlight Empty and Non-Empty Row with Conditional Formatting
Sometimes you have empty rows in your database that you want to highlight. You can do it easily using conditional formatting.
- Open the New Formatting Rule window and select Format Only the Cells that Contain
- Select Blank from the options
- Set the Formatting and click OK to continue
- The blank cells are now highlighted with color.
8. Conditional Formatting to Highlight Row with Above and Below Average Values
- In order to find above or below average values from your dataset, apply this formula,
- OK to get the result. That’s how you can find below or above-average values.
Read more: How to Highlight Highest Value in Excel
9. Highlight Rows with Duplicate Value Using Conditional Formatting
In some cases, you need to highlight rows with duplicate values in them. The COUNTIF Function can help you in this situation. Follow these instructions to learn this method.
- Apply this formula in the formula box.
- Here $E$4:$E$13 is the range and $E4 is the criteria. If the function finds a value of more than once, it will highlight the row.
- OK to get the result. This result here is achieved with the first occurrence.
- We can also highlight duplicate rows without the first occurrence. For that, the formula is,
- Set the format and get the result by clicking OK.
- The final result is here.
Things to Remember
👉 When you want to find out case sensitive name, you can use the FIND function instead of the SEARCH function
👉 Use the Absolute Cell references ($) to block the cells.
We have discussed nine suitable ways to highlight rows using conditional formatting in excel. You are most welcome to comment if you have any questions or queries. You can also check out our other articles related to the Excel tasks!