Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • What-If Analysis: Scenarios and Goal Seek in Excel
  • How to create Checklist in Excel
  • Conditional Formatting New Rule with Formulas in Excel
  • Conditional Formatting Rules in Excel
  • How to Create Column Chart in Excel

References

  • How to use Excel VLOOKUP Function
  • How to use Excel TRANSPOSE Function
  • Count unique text values with criteria
  • How to get last column number in range in Excel
  • How to create dynamic named range with OFFSET in Excel

Data Validations

  • How To Create Drop-down List in Excel
  • Excel Data validation with conditional list
  • Excel Data validation require unique number
  • Excel Data validation no punctuation
  • Excel Data validation must begin with

Highlight rows with blank cells in Excel

by

This tutorial shows how to Highlight rows with blank cells in Excel using the example below;

Formula

=COUNTBLANK($B5:$F5)

Explanation

To highlight rows that contain one or more blank cells. you can conditional formatting with a simple formula based on the COUNTBLANK function.

In the example shown, the range B5:F15 is formatted with a conditional formatting rule based on this formula:

=COUNTBLANK($B5:$F5)

Note: it’s important that CF formulas be entered relative to the “first cell” in the selection, B5 in this case.

Once you save the rule, you’ll see the rows that contain one or more blank cells highlighted.

How this formula works

Conditional formatting is applied to all cells in the active selection at the time a rule is created.

In this case, the column references are locked to prevent columns from changing as the formula is evaluated, but the row references are relative so that row numbers are free to change. The result is a formula that applies exactly the same logic to every cell in the same row.

If COUNTBLANK finds any blank cells in a given row, it returns a positive number, which Excel evaluates to TRUE,  triggering the rule.

If COUNTBLANK finds no blank cells, it returns zero, which is evaluated as FALSE, and the formatting is not triggered.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • Nested IF function example in Excel
  • IFS function: Description, Usage, Syntax, Examples and Explanation
  • IF with boolean logic in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • OR function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Calculate series of dates by workdays in Excel
  • Next biweekly payday from date in Excel
  • Get first day of previous month in Excel
  • EOMONTH function: Description, Usage, Syntax, Examples and Explanation
  • WEEKDAY function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • Map text to numbers in Excel
  • Group numbers at uneven intervals in Excel
  • How to randomly assign data to groups in Excel
  • Calculate conditional mode with criteria in Excel
  • How to randomly assign people to groups in Excel

General

  • How to make excel worksheets print on one page?
  • How to calculate percentage of total in Excel
  • How to add sequential row numbers to a set of data in Excel
  • Basic numeric sort formula in Excel
  • Basic error trapping example in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning