Forum Discussion
Frank Spade
Apr 09, 2022Copper Contributor
How to determine if there is a non-empty cell in a range
I have tried for over an hour to find a solution to this simple question and finally give up. ISBLANK(A1:AD3) gave an overflow warning. Can somebody please tell me the answer?
- Apr 09, 2022
HansVogelaar
Apr 09, 2022MVP
In Excel in Microsoft 365 and Office 2021, the formula ISBLANK(A1:AD3) returns an array the same size as A1:AD3.
If you just want to know if there is at least one empty cell in the range, you can use
=COUNTIF(A1:AD3,"")>0
This will return TRUE if at least cell is blank, FALSE otherwise.
If you want to know how many cells are blank, use
=COUNTIF(A1:AD3)
- Detlef_LewinApr 09, 2022Silver ContributorWhy not use COUNTBLANK()?
- Frank SpadeApr 09, 2022Copper ContributorThank you.