Skip to main content

How to highlight row if cell contains text/value/blank in Excel?

How to highlight row if cell contains text/value/blank in Excel?

Author: Kelly Last Modified: 2025-04-15
A screenshot showing a highlighted row in Excel where the order of 'Apple' is found

For example we have a purchase table in Excel, now we want to find out the purchase orders of apple and then highlight the entire rows where the orders of apple are in as the left screenshot shown. We can get it done easily in Excel with Conditional Formatting command or Kutools for Excel's features, please read on to find out how.

Highlight entire row if cell contains specific text/value/blank with Conditional Formatting

Highlight entire row if cell contains specific text/value with Kutools for Excel

Highlight entire row if cell contains one of specific values in another column


Highlight row if cell contains specific text/value/blank with Conditional Formatting 

To highlight entire rows of cells containing the specific text, value or just blank cells with the Conditional Formatting command in Excel, you can do as following:

1. Select the purchase table excluding its column headings.

2. Click "Home" > "Conditional Formatting" > "New Rule". See the screenshot below:
A screenshot of the New Formatting Rule option in Excel

3. In the coming New Formatting Rule dialog box as shown in the screenshot below, please do as follows:
(1) Click to select the "Use a formula to determine which cells to format "in the "Select a Rule Type "box;
(2) In the "Format values where this formula is true" box, enter this formula:

=$B2="Apple"
(3) Click the "Format" button.
A screenshot of the New Formatting Rule dialog box in Excel for conditional formatting

 

Notes:
(1) In the formula =$B2="Apple", $B2 is the cell you will check if contains the specific text or value, and "Apple" is the specific text, you can change them as you need. And this formula can only find out cells only containing the specific text or value.
(2) If you want to highlight rows if cells are blank, use this formula: =$B2="".
(3) If you want to highlight rows if cells begin with specific text, you need to enter =LEFT($B2,5)="Apple"; or to highlight rows if cells end with specific text, enter =RIGHT($B2,5)="Apple".

4. Now the Format Cells dialog box is opening. Go to the "Fill" tab, specify a background color, and click the "OK" button.
A screenshot showing the Format Cells dialog box where background color is selected in Excel

5. Click "OK "button to close the New Formatting Rule dialog box.

Then all rows containing the specific content cells in the selected range are highlighted.

Highlight row if cell contains specific text/value with Kutools for Excel

With "Kutools for Excel"'s "Select Specific Cells" feature, we can select the rows if cells contain specific text or value, and then highlight these rows easily in Excel.

Kutools for Excel offers over 300 advanced features to streamline complex tasks, boosting creativity and efficiency. Itegarate with AI capabilities, Kutools automates tasks with precision, making data management effortless. Detailed information of Kutools for Excel...         Free trial...

1. Select the column where you will find out cells if contain specific text or value.

2. Click "Kutools" > "Select " >" Select Specific Cells".
A screenshot of the Kutools for Excel 'Select Specific Cells' feature dialog box

3. In the opening Select Specific Cells dialog box as above screenshot shown, please do as follows:
(1) Check the "Entire row" in the "Selection type" section;
(2) In the "Specific Type" section, click the first box and specify the "Contains" from the drop down list, and then enter the specific text into the following box.
(3) Click the "OK" button.

4. In the second Select Specific Cell dialog box, click the "OK" button. And then all cells with the entire rows which contain the specific text or value are selected.
A screenshot of a success dialogA screenshot showing the rows highlighted after applying the Kutools for Excel 'Select Specific Cells' feature

5. Click the "Fill Color" button on the "Home" tab, and then specify a highlight color from the drop down list.

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


 Highlight entire row if cell contains one of specific values in another column

Sometimes you may need to highlight the entire row only if its cell contains one of specific values in another column. Kutools for Excel’s "Compare Ranges" utility provides another workaround to highlight entire rows if cells contain one of specific values easily.

Kutools for Excel - Packed with over 300 essential tools for Excel. Enjoy permanently free AI features! Download now!

1. Click "Kutools" >" Select > Select Same & Different Cells".
A screenshot of the Kutools for Excel 'Select Same & Different Cells' option in Kutools tab in Excel

2. In the Select Same & Different Cells dialog box as shown in the right screenshot, please do as follows:

(1) In the "Find values in "box, please specify the Column whose cells you will check if containing one of specific values;
(2) In the "According to" box, please specify the column containing the specific values;
(3) In the "Based on" section, please check the "Each row" option;
(4) In the "Find "section please check the" Same Values" option;
(5) In the "Processing of results "dialog box, please check the "Fill backcolor" option and specify the fill color;
(6) Check the "Select entire rows" option.

A screenshot of the Kutools for Excel 'Select Same & Different Cells' dialog box

3. Click the" OK "button to apply this utility. And then another Compare Ranges dialog box comes out and shows us how many rows have been selected. Just click the "OK" button to close it.
A screenshot of a success dialog

And then you will see if a cell contains one of specific values in another column, the entire row of this cell is highlighted and filled with the specific color.
A screenshot showing the result after using Kutools for Excel to highlight rows based on values from another column

Kutools for Excel - Supercharge Excel with over 300 essential tools. Enjoy permanently free AI features! Get It Now


Demo: highlight row if cell contains certain value or one of specified values

 
Kutools for Excel: Over 300 handy tools at your fingertips! Enjoy permanently free AI features! Download Now!

Related Articles

How to prevent saving if specific cell is blank in Excel?

How to not calculate (ignore formula) if cell is blank in Excel?

How to use IF function with AND, OR, and NOT in Excel?

How to display warning/alert messages if cells are blank in Excel?

How to enter/display text or message if cells are blank in Excel?

How to delete rows if cells are blank in a long list in Excel?

Best Office Productivity Tools

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates   |  Delete Blank Rows   |  Combine Columns or Cells without Losing Data   |   Round without Formula ...
Super Lookup: Multiple Criteria VLookup    Multiple Value VLookup  |   VLookup Across Multiple Sheets   |   Fuzzy Lookup ....
Advanced Drop-down List: Quickly Create Drop Down List   |  Dependent Drop Down List   |  Multi-select Drop Down List ....
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  |  Compare Ranges & Columns ...
Featured Features: Grid Focus   |  Design View   |   Big Formula Bar    Workbook & Sheet Manager   |  Resource Library (Auto Text)   |  Date Picker   |  Combine Worksheets   |  Encrypt/Decrypt Cells    Send Emails by List   |  Super Filter   |   Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters, ...)   |   50+ Chart Types (Gantt Chart, ...)   |   40+ Practical Formulas (Calculate age based on birthday, ...)   |   19 Insertion Tools (Insert QR Code, Insert Picture from Path, ...)   |   12 Conversion Tools (Numbers to Words, Currency Conversion, ...)   |   7 Merge & Split Tools (Advanced Combine Rows, Split Cells, ...)   |   ... and more
Use Kutools in your preferred language – supports English, Spanish, German, French, Chinese, and 40+ others!

Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time.  Click Here to Get The Feature You Need The Most...


Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!