Cookies help us deliver our services. By using our services, you agree to our use of cookies.
Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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

doc highlight row if cell contains 1

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 screen shot shown. We can get it done easily with Conditional Formatting command or Kutools for Excel's features in Excel.

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

Select entire rows if cells contain certain text/values in Excel

Kutools for Excel's Select Specific Cells feature can help you quickly select the cells, entire rows, or entire columns if cells contains the certain value in Excel. Full Features 60-day Free Trial!
ad select row if contains


arrow blue right bubbleHighlight row if cell contains specific text/value/blank with Conditional Formatting

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

1. Select the purchase table without its column headings.

2. Click the Home > Conditional Formatting > New Rule. See the first screenshot below:
doc highlight row if cell contain 3

3. In the coming New Formatting Rule dialog box, (see the second screenshot above):
(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 =$B2="Apple";
(3) Click the Format button.
Notes:
(1) In the formula of =$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, enter =$B2="" in the Step 3-(2).
(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.
doc highlight row if cell contain 4

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.


arrow blue right bubbleHighlight 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 - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

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

2.  Click the Kutools > Select > Select Specific Cells.

3.  In the opening Select Specific Cells dialog box (see above screenshot),
(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.

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

Free Trial Kutools for Excel Now


arrow blue right bubble 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 - Combines more than 300 Advanced Functions and Tools for Microsoft Excel

1. Click Kutools > Select > Select Same & Different Cells.

2. In the Select Same & Different Cells dialog box, 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;
(4) In the Processing of results dialog box, please check the Fill backcolor option and specify the fill color;
(5) Check the Select entire rows option.

3. Click the OK button to apply this utility. And then another Compare Ranges dialog box comes out and show us how many rows have been selected. Just click the OK button to close it.

And then you will see if a cell contains one of specific values in another column, the entire row containing this cell will be highlighted and filled with the specific color.
doc highlight row by other column 4

Free Trial Kutools for Excel Now


arrow blue right bubbleDemo: highlight row if cell contains certain value or one of specified values

Tip: In this Video, Kutools tab and Enterprise tab are added by Kutools for Excel. If you need it, please click here to have a 60-day free trial without limitation!

Automatically highlight active row and column with Kutools for Excel

When selecting a cell in Excel, normally only the active cell is highlighted. However, Kutools for Excel's Reading Layout utility can automatically highlight the entire row and column of active cell automatically. Full Features 60-day Free Trial!
ad reading layout 1


arrow blue right bubbleRelated Articles



Recommended Productivity Tools

Office Tab

gold star1 Bring handy tabs to Excel and other Office software, just like Chrome, Firefox and new Internet Explorer.

Kutools for Excel

gold star1 Amazing! Increase your productivity in 5 minutes. Don't need any special skills, save two hours every day!

gold star1 300 New Features for Excel, Make Excel Much Easy and Powerful:

  • Merge Cell/Rows/Columns without Losing Data.
  • Combine and Consolidate Multiple Sheets and Workbooks.
  • Compare Ranges, Copy Multiple Ranges, Convert Text to Date, Unit and Currency Conversion.
  • Count by Colors, Paging Subtotals, Advanced Sort and Super Filter,
  • More Select/Insert/Delete/Text/Format/Link/Comment/Workbooks/Worksheets Tools...

Screen shot of Kutools for Excel

Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    Donbosoco · 7 days ago
    Hi , if i type the number 5 , that 5 rows should be need to highlighted. how to do this?
    Pls help
  • To post as a guest, your comment is unpublished.
    Yoga · 7 months ago
    My excel is become little slow while filter the data for the conditional formatted column. Is there any better solution to do highlight dupes in the same column of excel?

    I very frequently use filter option for the conditional formatted columns.

    Please help me.
    • To post as a guest, your comment is unpublished.
      kellytte · 24 days ago
      Hi Yoga,
      Apply Kutools for Excel’s Select Duplicate & Unique Cells feature to find out and highlight duplicates in one column.
  • To post as a guest, your comment is unpublished.
    Jeff · 1 years ago
    How to you conditionally format cells with both numbers and text, based on the number. I Have a column that has entries such as 30 days, 12 days, 84 days...etc I would like to highlight the cells <= 30 green, and >=80 Red. Thank you for your help.
    • To post as a guest, your comment is unpublished.
      Greg · 7 months ago
      I did something similar but instead used evaluation statements based on the initial date for that item. In other words I would highlight the cell containing remaining days (30 days, 12 days, etc) based off a calculation of the current date and the initial date which was kept in the cell next to the remaining days. For me 10-30 was red text, 31-60 was yellow text and 0-9 was dark red fill with bold white text. Annoying yes but called attention to it.
  • To post as a guest, your comment is unpublished.
    Dylan · 1 years ago
    Let's say you have a row, and the first cell currently contains no value. The remaining cells contain values. Now, I wish to input a value into that empty cell. When I do, regardless of the data entered, I wish for the entire row to be highlighted. How do I go about doing this?
    • To post as a guest, your comment is unpublished.
      Tang Kelly · 1 years ago
      Hi Dylan,
      Do you mean highlight the entire row if the specified cell is nonblank? If so, you can:
      (1) Select the row
      (2) Apply conditional formatting with formula , and the formula is =ISBLANK($A2)=FALSE (A2 is the first cell )
  • To post as a guest, your comment is unpublished.
    MAYRA · 1 years ago
    Conditional Formatting