This can be useful in various scenarios, such as data validation, error checking, or report preparation.

The second formula is based on the SUMPRODUCT with the LEN function.

This option is useful when you better treat formulas that return empty strings ("") as empty.

Combining the formula with the IF function

TheCOUNTA functionis designed to count the number of cells in a range that are not empty.

It considers any cell with content, including text, numbers, errors, and formulas, asnon-empty.

If the count is any other number, the formula will return FALSE.

Combining the formula with the IF function

In other words, the result will be TRUEonly when all cells in C5:G5 are empty.

The screen below shows how you’re able to apply the formula above inside theIF function.

The idea here is clearly mark rows where all 5 cells are blank.

Combining the formula with the IF function

Such cells will be considerednon-emptyby the COUNTA function even though they visually appear blank.

If you better treat formulas that return "" as empty, see the SUMPRODUCT options below.

TheSUMPRODUCT functionthen returns the sum of all lengths.

Combining the formula with the IF function

If the combined length is zero, the formula will return TRUE.

Otherwise, the formula will return FALSE.

This is a more robust solution to the empty vs. blank dilemma.

Combining the formula with the IF function

If a cell is truly empty, its length will be zero, and LEN will return zero.

In other words, LEN will treat formulas that return ="" the same as truly empty cells.

If you are checking a range that does not contain formulas, the COUNTA function will work fine.

Excel formula: Row is blank

Excel formula: All values in a range are at least

Excel formula: Count cells that are blank

Excel formula: Highlight rows with blank cells

Excel formula: Highlight blank cells

Excel formula: Only calculate if not blank

Excel SUMPRODUCT function