One way to solve this problem is with the SUMPRODUCT function, as seen in the worksheet above.

Another approach is to use the newer BYROW function.

Both methods are described below.

Testing for blank rows with the BYROW function

Notice we are excluding column B which contains times.

This formula will return TRUE only when all cells in a given row are empty.

The result from SUM is then compared to zero to force a TRUE or FALSE result.

Testing for blank rows with the BYROW function

These results spill into the range J5:J16.

For example, it’s possible for you to use BYROW inside theFILTER functionto remove blank rows.

BYROW can apply stock functions like SUM, COUNT, and AVERAGE or a custom LAMBDA function.

Testing for blank rows with the BYROW function

Testing for blank rows with the BYROW function

Testing for blank rows with the BYROW function

Excel formula: All cells in range are blank

Excel formula: Get row totals

Excel formula: Count rows that contain specific values

Excel SUMPRODUCT function

Excel BYROW function

Excel LAMBDA function