One check box as true at a time?

I am currently setting up spreadsheet for work. At one point in the sheet I have a column of check boxes. I am using these check boxes to set a value in another table. However, it will be a problem if more than one check box is "checked" (true) as the LOOKUP function will always return the bottom checked value. There may be a different way to formulate the function, but I'm thinking the simpliest solution would be to simply allow only one box to be check at a time, as this would also eleminate human error. (Only one value should be "true" regardless) Any thoughts would be helpful.


Thanks

MacBook

Posted on May 30, 2011 9:17 AM

Reply
Question marked as Top-ranking reply

Posted on May 30, 2011 12:30 PM

What you're asking for is a way to format a group of cells to act as 'radio buttons.' Not a supported feature, unfortunately.


But you can provide a warning, as suggested by Yvan, or using the smilar method below, which highlights the checked cells when, as shown, more than one in the set is checked.


User uploaded file


The formula in A1 can be placed anywhere in the document. All nine of the checkbox cells (B2:B10) have the same pair of conditional rules applied:

User uploaded file

The first rule may appear redundant, as it sets a conditional format that has exactly the same appearance as the default format—a white fill. It's purpose is to avoid the second rule being applied to unchecked cells in the group.


Incidently, the technique is easily revised to change the maximum number of allowable checks in the group of cells. Just change the 1 in the formula to the desired maximum.


Regards,

Barry

7 replies
Question marked as Top-ranking reply

May 30, 2011 12:30 PM in response to stmcgill81

What you're asking for is a way to format a group of cells to act as 'radio buttons.' Not a supported feature, unfortunately.


But you can provide a warning, as suggested by Yvan, or using the smilar method below, which highlights the checked cells when, as shown, more than one in the set is checked.


User uploaded file


The formula in A1 can be placed anywhere in the document. All nine of the checkbox cells (B2:B10) have the same pair of conditional rules applied:

User uploaded file

The first rule may appear redundant, as it sets a conditional format that has exactly the same appearance as the default format—a white fill. It's purpose is to avoid the second rule being applied to unchecked cells in the group.


Incidently, the technique is easily revised to change the maximum number of allowable checks in the group of cells. Just change the 1 in the formula to the desired maximum.


Regards,

Barry

May 31, 2011 6:36 AM in response to Barry

It seems to me that if you really want a "Radio Button" User interface then you need to use the closest item Numbers has. Radio Buttons allow a single selection of a set (That is they are mutually exclusive). The check boxes cannot enforce this so the next best element that numbers has is a Pop-Up menu. You can set the contents of the pop up using the inspector for the menu.


I hope this helps

Wayne

May 30, 2011 10:14 AM in response to stmcgill81

As far as I know, there is no way to guarantee that only one box is checked in a column.

There is a workaround : create a table with a single cell.

In this cell, insert this kind of formula :


=IF(COUNTIF(Table 1 :: B,TRUE)>1,"CAUTION. several boxes are checked !","")

User uploaded file


Yvan KOENIG (VALLAURIS, France) lundi 30 mai 2011 19:14:41

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

May 31, 2011 7:33 AM in response to Wayne Contello

(1) radio buttons doesn't exist in Numbers

(2) even if they are delivered in a future version, they would be able to replace a set of checkboxes in a row.

Here the asker want to have a single selected checkbox in a column.

It's not a feature which would be offered by radio buttons.


Yvan KOENIG (VALLAURIS, France) mardi 31 mai 2011 16:33:21

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

May 31, 2011 10:13 AM in response to stmcgill81

Yvan,

You seem to understand my problem here, and you solution works as desired, however it is a little less than ideal. Is there a way to display this caution in the result box when more than one box is checked, without stopping the result to display when one box is checked? My formula in the result box is "=LOOKUP(TRUE,FRONTDOOR QUOTE :: B3:B8,FRONTDOOR QUOTE :: D3:D8)"

The "true" refrences the checked box

"FRONTDOOR QUOTE :: B3:B8" is the location of the check boxes

"FRONTDOOR QUOTE :: D3:D8" is the number I need displayed in the result box


My fear is this spreadsheet will be used by other people not familar with spreadsheets. As this result will factor into a result box later down spreadsheet it could have dire results.


Any thoughts?

Thank you

User uploaded file

May 31, 2011 11:31 AM in response to Jerrold Green1

Thanks Jerrold.

You responded while I was eating. So, now I'm free for other tasks 😉


Yvan KOENIG (VALLAURIS, France) mardi 31 mai 2011 20:31:19

iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7

Please : Search for questions similar to your own before submitting them to the community


To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

One check box as true at a time?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.