Banzai Otis
New Member
- Joined
- Jul 17, 2013
- Messages
- 10
Hi all,
First post, but I have been using (and appreciating) this forum anonymously for a while now. I am using Excel 2007 on Win XP, and I'm stumped over validating which check boxes are checked.
I have a number of check boxes, all of which are linked to cells off to the side which will be hidden. There are some combinations of check boxes which shouldn't be allowed, and I am trying to work out a way to enforce this. I am restricted from using VBA or Macros, otherwise this would be a snap!
For example, assume I have check boxes linked to cells A1,A2,B1,B2. The rule is that neither both A's nor both B's can have their respective boxes checked at the same time. I have a formula that works when I put it in to another cell:
=NOT(OR(AND($A$1,$A$2),AND($B$1,$B$2)))
This successfully returns FALSE when either both A's or both B's boxes are checked, and TRUE otherwise. However, I can't get this to work with any kind of data validation. I've tried using this formula directly in the data validation, and also putting it in a cell and using the value of that cell for data validation. In all cases, validation is triggered if I manually change the cell being validated, but not if I change it's value by checking the linked check box.
I am obviously missing something conceptual about what triggers validation, but my googling has failed me. Thanks for taking the time to read this.
Jason
First post, but I have been using (and appreciating) this forum anonymously for a while now. I am using Excel 2007 on Win XP, and I'm stumped over validating which check boxes are checked.
I have a number of check boxes, all of which are linked to cells off to the side which will be hidden. There are some combinations of check boxes which shouldn't be allowed, and I am trying to work out a way to enforce this. I am restricted from using VBA or Macros, otherwise this would be a snap!
For example, assume I have check boxes linked to cells A1,A2,B1,B2. The rule is that neither both A's nor both B's can have their respective boxes checked at the same time. I have a formula that works when I put it in to another cell:
=NOT(OR(AND($A$1,$A$2),AND($B$1,$B$2)))
This successfully returns FALSE when either both A's or both B's boxes are checked, and TRUE otherwise. However, I can't get this to work with any kind of data validation. I've tried using this formula directly in the data validation, and also putting it in a cell and using the value of that cell for data validation. In all cases, validation is triggered if I manually change the cell being validated, but not if I change it's value by checking the linked check box.
I am obviously missing something conceptual about what triggers validation, but my googling has failed me. Thanks for taking the time to read this.
Jason