Reputation: 10064
Ive got a spreadsheet with a matrix chart with "x" in columns d:s
in column b
i want to write a formula if
d:sISBLANK write "blank" in column B
.
To do this i tried : =IF(ISBLANK(C2:S2) , "blank", "not blank")
But it always equates to "not blank". Any ideas where ive gone wrong ?
Ive created a sample spreadsheet for testing here : https://docs.google.com/spreadsheets/d/1b-LyPDld5a3WZue7zYSGvFbYy-tDZQLAcsRpNq4yBnU/edit#gid=0
Upvotes: 0
Views: 302
Reputation: 150
You are trying to evaluate all of the cells in C2:S2 (an array) so the formula needs to be evaluated as an array formula.
Assuming that you want to display "Not Blank" if any of the cells have contents include an AND with your ISBLANK, then evaluate as an array formula.
=IF(AND(ISBLANK(C2:S2)),"Blank","Not Blank")
Try the expression with ctrl + shift + enter.
Upvotes: 1
Reputation: 124
Try with COUNTA(range):
Upvotes: 2