Hi guys,
Hopefully quite a quick question here. I'm trying to add data validation to a cell, based on two criteria:
1) The value entered in the cell must be a number
2) The cell one to the left of it must be blank
In the custom formula input of the Data Validation box for cell B1, I have:
=AND(ISNUMBER(B1),A1="")
This works fine to detect whether A1 is blank (Rule 2), but allows any value to be input in cell B1 (defying Rule 1) when cell A1 is blank. I presume it has something to do with checking the status of two cells; as if I change the formula to say:
=AND(ISNUMBER(B1),1=1)
It is able to detect whether the value put in B1 is a number (Rule 1), but obviously it no longer checks whether A1 is blank (Rule 2).
I can't see anything online outlining limitations of data validation that would explain this behaviour so it would be great if someone could help me work out what's going on here and get something working!
Thanks a lot.
Hopefully quite a quick question here. I'm trying to add data validation to a cell, based on two criteria:
1) The value entered in the cell must be a number
2) The cell one to the left of it must be blank
In the custom formula input of the Data Validation box for cell B1, I have:
=AND(ISNUMBER(B1),A1="")
This works fine to detect whether A1 is blank (Rule 2), but allows any value to be input in cell B1 (defying Rule 1) when cell A1 is blank. I presume it has something to do with checking the status of two cells; as if I change the formula to say:
=AND(ISNUMBER(B1),1=1)
It is able to detect whether the value put in B1 is a number (Rule 1), but obviously it no longer checks whether A1 is blank (Rule 2).
I can't see anything online outlining limitations of data validation that would explain this behaviour so it would be great if someone could help me work out what's going on here and get something working!
Thanks a lot.