Highlight row based on cell value

Imagine that when you are looking at a large list of numerical data, it’s useful to find largest and smallest value. Sometimes you need to find if a value is larger than a specific number. At times, the cell will be another color if the expected value is higher than a specific number. In a large data, it would be more difficult to find or calculate in excel.

Case Study 1: You can have a cell turn Green when it contains a number Greater than 200. But how do you highlight an entire row?

You can do this using Conditional Formatting. This is an Excel feature used when you want to format cells based on their content.

Our focus here is:

Learning how to highlight a particular cell based on condition using conditional formatting.

Steps to learn how to Highlight a row based on cell value.

This table shows electronics product’s monthly sale information of a particular shop

We have a Product sale database. We want to highlight those products with a number of sales greater than 200.

Step 1:

  • Create a table like the one in the picture above.
  • This table shows electronics product’s monthly sale information of a particular shop.
  • Column A contains the Product list and Column B is Showing the Number of products sold out of this month.
  • Here we will highlight those product row if the number of sales is greater than 200.
  • So let’s try first for the product “Mobile”.

From the drop-down list select New Rules

Step 2:

  • Select Range A2:B2
  • Click Home tab
  • Styles group click Conditional Formatting
  • Drop-down list select New Rules.

Select a Rule Type, list Click Use a formula to determine which cells to format

Step 3:

  • Now New Formatting Rule dialog box will appear
  • From Select a Rule Type, list Click Use a formula to determine which cells to format
  • Then in the text box named Format values where this formula is true type the code given below:

=$B$2>200

In this code, we are telling that when the value of cell B2 is greater than 200 then format the cell. Now click on Format.

Click Fill tab and from the Background color list Select a color whatever you want

Step 4:

  • Now Format Cells dialog box will appear
  • Click Fill tab and from the Background color list Select a color whatever you want
  • Here we have selected green when the number of the sale will be greater than 200
  • Now click OK.

New Formatting Rule dialog box we can see our selected Green color in Preview

Step 5:

  • In New Formatting Rule dialog box we can see our selected Green color in Preview
  • Now click OK.

Compare Sales in Excel

Step 6:

Now let see in our excel sheet is the color of range A2:B2 is changed? NO! Because the number of sale is not greater than 200. Now let change the value of B2 as 250 instead of 100 and see the Magic! The color of A2:B2 is changed as green color as we were selected.

So, in this way, we can Highlight our cell based on value using some condition in New Formatting Rule.

. In here we got green colored rows only for those products which are sold out more than 200

Step 7: Now do the same process for another row. Then our table will be looked like above picture. In here we got green colored rows only for those products which are sold out more than 200. So, what about those products which are sold out less than 200.

Tips 1: We can use more than one Conditional Formatting Rules for each cell or row. So now we will do the same process for all rows but now the code will be:

=$B$2<200

And we will choose a red color for format cell.

After applying the new rule for all rows, our table will highlight

Step 8: After applying the new rule for all rows, our table will highlight. Also those rows in where the number of sale is less than 200 as like above picture.

Add texture instead of color!

Add texture instead of color!

We can add Texture instead of fill color in our conditional formatting. Do the Step 2 and Step 3 again and Click Fill Effect instead of choosing any color. Then Fill Effects dialog box will appear. Now choose an effect and click OK.

Use another tab of Format Cells like Number, Font, and Border whatever you want.

After use Fill Effects, range A2:B2 will be looked like above picture. In the same way, we can change border or font instead of using color. Use another tab of Format Cells like Number, Font, and Border whatever you want.

Format cells from Lowest to Highest value!

Case Study 2: Format cells from Lowest to Highest value!

  1. Now we will color column B from light color to dark color based on some sales from lowest to the highest value.
  2. Do the Step 2 again and then in New Formatting Rule dialog box choose Format all cells based on their values.
  3. Choose Lowest value color and the Highest value color as like above picture.
  4. In this example, we have chosen a light green color for lowest sale value.
  5. Dark green color for highest sale value.
  6. Now click OK.

After that our product sale database table will be looked like above picture.

After that our product sale database table will be looked like above picture.

So, Now we have learned successfully, how to Highlight a Row based on a Cell value! Enjoy Excel Tips…!!

Related Tutorials

Delete Duplicate in Excel or Remove Duplicate in Excel
November 9, 2018
Excel Formulas PDF
September 6, 2018
How To Lock Cells in Excel | Unprotect Excel
August 13, 2018
4x Faster at Excel
August 6, 2018
Separate Content of One Excel Cells into Separate Columns
August 3, 2018
How to Transpose Excel Columns to Rows | Paste Special Method
July 26, 2018
How to create sparklines in Excel
July 19, 2018
AutoSum in Excel with Shortcut
July 17, 2018
OFFSET Function in Excel
July 6, 2018
Strikethrough Shortcut in Excel & Word
July 4, 2018
INDIRECT Function with SUM, MAX, MIN & Independent Cell Value
June 29, 2018
Pivot Table Slicers In Excel
June 12, 2018
How to Split Cells in Excel using Text to Column
June 7, 2018
How to Wrap Text in Excel Automatically and Manually
June 6, 2018
How to Hide/Unhide Column in Excel
June 5, 2018
Learn how to remove blank cells in Excel
June 3, 2018
How to Group Numbers, Dates & Text in Pivot table in Excel
June 1, 2018
5 Powerful Tricks to Format cells in Excel
May 31, 2018
Insert a Picture into a Cell in Excel
May 25, 2018
What is ISFORMULA Function and FORMULATEXT Function
May 21, 2018
How to Use SUBSTITUTE Function
May 21, 2018
Excel Quartile Function in Excel
May 8, 2018
How to use the Excel PERCENTILE function
May 7, 2018
Insert or Type degree symbol in Excel with Autocorrect Feature
May 7, 2018
Insert Symbol Dialog Box to Insert or Type degree symbol in Excel
May 7, 2018
25% Discount
No prize
All Courses at $200
Almost!
10% Discount
Free Ebook
No Prize
No luck today
Almost!
50% Discount
No prize
80% Discount
Get a chance to boost your knowledge!
Use this coupon code for any course that you wish for. 
Our in-house rules:
  • You can choose any course & redeem coupon
  • If you find any difficulty, mail us on [email protected]
  • Wheel Spin will end soon
  • Coupon code can be applied within 2 days.