Conditional Formatting If Cell is Not Blank

Method 1 – Use the Conditional Formatting ‘Highlight Cell Rules’ Option If a Cell Is Not Blank

Steps:

  • Select the entire dataset B5:D13.

Conditional Formatting If Cell is Not Blank

  • Go to Home and select Conditional Formatting (in the Styles group).

Conditional Formatting If Cell is Not Blank

  • From the Conditional Formatting drop-down, go to Highlight Cell Rules and pick More Rules.

Conditional Formatting If Cell is Not Blank

  • The New Formatting Rule window will show up. The Format only cells that contain option is selected by default.
  • Choose the No Blanks option from the Format only cells with drop-down.

Conditional Formatting If Cell is Not Blank

  • Click on Format.

Conditional Formatting If Cell is Not Blank

  • Choose the highlight color from the Fill tab.

  • Click OK and OK again to close both dialog boxes.
  • You will see all the cells containing data have been highlighted.

Read More: How to Apply Conditional Formatting for Blank Cells in Excel


Method 2 – Apply a Simple Arithmetic Formula to Conditional Format a Cell

Steps:

  • Select the entire dataset B5:D13.
  • Go to Home, then to Conditional Formatting, and select New Rule.

Apply Simple Arithmetic Formula to Conditional Formatting If Cell is Not Blank

  • The New Formatting Rule window will show up. Choose Rule Type: Use a formula to determine which cells to format.
  • Insert the following formula under Format values where this formula is true.
=B5<>""
  • Click on the Format button and choose the highlight color from the Fill section.

Apply Simple Arithmetic Formula to Conditional Formatting If Cell is Not Blank

  • Click OK twice to close the dialog boxes.

Read More:Applying Conditional Formatting for Multiple Conditions in Excel


Method 3 – Appy the LEN Function in Conditional Formatting for Non-Blank Cells

Steps:

  • Select the entire dataset B5:D13.
  • Go Conditional Formatting and select New Rule.
  • The New Formatting Rule window will show up. Choose Rule Type: Use a formula to determine which cells to format.
  • Use the following formula for Format values where this formula is true.
=LEN(B5)>0
  • Go to Format and choose the highlight color from the Fill tab.

Appy LEN Function in Conditional Formatting for Non-Blank Cell

The LEN function returns the number of characters in a string, so a number greater than zero implies that the cell is not blank. Conditional Formatting then highlights the cell.

  • Click OK twice to close the dialog boxes.

Related Content: Excel Conditional Formatting Formula


Method 4 – Use Excel NOT and ISBLANK Functions in Conditional Formatting

Steps:

  • Select the entire dataset B5:D13.
  • Go to Conditional Formatting and choose New Rule.
  • The New Formatting Rule window will show up. Select Use a formula to determine which cells to format.
  • Use the following formula under Format values where this formula is true.
=NOT(ISBLANK(B5))
  • Go to Format and choose the highlight color from Fill.

Excel NOT and ISBLANK Functions in Conditional Formatting If Cell is Not Blank 

The ISBLANK function checks whether the cell is blank (which returns FALSE for non-blank cells). The NOT function reverts the result of the ISBLANK formula so FALSE is converted to TRUE. Conditional Formatting will end up highlighting cells that are not blank.

  • Click OK twice to close the dialog boxes.

Related Content: How to Use Conditional Formatting in Excel


Download the Practice Workbook


Related Articles

<< Go Back to Conditional Formatting with Multiple Conditions | Conditional Formatting | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Hosne Ara
Hosne Ara

Hosne Ara is a materials and metallurgical engineer who loves exploring Excel and VBA programming. To her, programming is like a time-saving superhero for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B. Sc. in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, she's shifted gears and now works as a content developer. In this role, she... Read Full Bio

2 Comments
  1. Which method is best?

    • Hi JEFF,
      Thanks for your concern. Actually, all the methods here explained are very easy to understand. Considering the situation, you have to choose the best-suited method for serving your purpose. If you don’t want to use any formula, then you can use Method 1.

      Regards,
      Rafiul | ExcelDemy Team

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo