R
Razoo
Hi,
I have an Excel 2003 worksheet and I wish to perform certain functions if a
range of cells are ALL blank (empty).
I am trying to use the ISBLANK function, but am getting varying results.
Can the ISBLANK function be used to check a range of cells simultaneously?
e.g. =IF(ISBLANK(L11:M21),"Blank","Not Blank")
I am using the following formula in Conditional Formatting, and it seems to
work fine:
=AND(LEFT(L49,1)="G",ISBLANK(L11:M21))
(the first part of the formula looks for a word in L49 beginning with "G",
the second part checks that none of the cells contain data)
However, this Conditional Formatting is actually set in cells L11:M21.
When I call ISBLANK(L11:M21)) from another cell, ISBLANK returns False,
even though there is no visible data in any of the cells L11:M21.
Also, if I call ISBLANK from another cell, but only look at any ONE of the
cells in the range L11:M21 (e.g. L12), then ISBLANK returns True. As soon
as I look at a group of two or more cells in the range (e.g. L12:L14),
ISBLANK returns False. It's not making a lot of sense!
Does the ISBLANK function see a cell with conditional formatting set as a
non-blank cell?
The cells that I am checking with ISBLANK have data validation set so that
they can either be blank (empty) or contain a number between -24 and +24.
Is there a better function I can use to check whether these cells have any
data in them? I only need to know if any one of the cells has data in it.
I need to do the whole range L11:M21 at once, I don't want to test the cells
individually.
TIA,
I have an Excel 2003 worksheet and I wish to perform certain functions if a
range of cells are ALL blank (empty).
I am trying to use the ISBLANK function, but am getting varying results.
Can the ISBLANK function be used to check a range of cells simultaneously?
e.g. =IF(ISBLANK(L11:M21),"Blank","Not Blank")
I am using the following formula in Conditional Formatting, and it seems to
work fine:
=AND(LEFT(L49,1)="G",ISBLANK(L11:M21))
(the first part of the formula looks for a word in L49 beginning with "G",
the second part checks that none of the cells contain data)
However, this Conditional Formatting is actually set in cells L11:M21.
When I call ISBLANK(L11:M21)) from another cell, ISBLANK returns False,
even though there is no visible data in any of the cells L11:M21.
Also, if I call ISBLANK from another cell, but only look at any ONE of the
cells in the range L11:M21 (e.g. L12), then ISBLANK returns True. As soon
as I look at a group of two or more cells in the range (e.g. L12:L14),
ISBLANK returns False. It's not making a lot of sense!
Does the ISBLANK function see a cell with conditional formatting set as a
non-blank cell?
The cells that I am checking with ISBLANK have data validation set so that
they can either be blank (empty) or contain a number between -24 and +24.
Is there a better function I can use to check whether these cells have any
data in them? I only need to know if any one of the cells has data in it.
I need to do the whole range L11:M21 at once, I don't want to test the cells
individually.
TIA,