Auditing checkboxes in the same row

I have a inventory project I am working on, wherein I have 6 checkboxes in each row, 4 on the left and 2 on the right. I want to be able to audit each row, and if any single checkbox is checked, the hidden result cell will have a value of 1. If all the checkboxes are checked, the cell will still have a value of 1. But if no checkboxes are checked, the cell will have a value of 0.


I have looked at if, sumif, sumifs, and countifs, and can't figure things out. (Yes, I am new to using numbers). Everything I find online relates to auditing columns, not row by row. I am really confused.


jt


Posted on Apr 2, 2020 3:25 PM

Reply
Question marked as Top-ranking reply

Posted on Apr 2, 2020 4:50 PM

What about the other possible situations—2, 3, 4 or 5 boxes checked?


You specified that there were "4 on the left, 2 on the right." Does that arrangement have any bearing on the results?


My assumptions below are that the result cell should contain 0 if no boxes are checked, and should contain 1 if any of the boxes are checked.


For the example, it's assumed the boxes are in columns B, C, D, E, G and H of ROW 2, and that cell F2—the cell for which "4 are on the left and two on the right"—will never contain the boolean values 'true' or 'false'

The formula shown below the table is in cell O2. Filled down, it is incremented by Numbers to natch the Bn:Hn references to its current row.

The bottom four rows of the table are to test the effects of a variety of values containing 'true' in column F. This column is included in the range of cells to be counted, but will count as a 0 provided the cell does not contain the boolean value true.


IN cell F7, the letters TRUE were entered in the cell. On pressing return, this text was interpreted as a Boolean, and was counted.


F8: the keystrokes here were ' T R U E (without the spaces). Note the apostrophe preceding the text. This is a signal to Numbers that everything that follows is TEXT. The apostrophe itself is not displayed.

In F8, the enclosing letters around "true" establish that this is a text string, not a Boolean value.

In F9, the cell has been formatted as Text (before the entry was made, preventing Numbers from converting it to a Boolean value.


I also tested entering a number in column F, and found it had no effect on the count.


Here is a text version of the formula. MIN(COUNTIF(B2:H2,TRUE),1)


Regards,

Barry

2 replies
Question marked as Top-ranking reply

Apr 2, 2020 4:50 PM in response to John August

What about the other possible situations—2, 3, 4 or 5 boxes checked?


You specified that there were "4 on the left, 2 on the right." Does that arrangement have any bearing on the results?


My assumptions below are that the result cell should contain 0 if no boxes are checked, and should contain 1 if any of the boxes are checked.


For the example, it's assumed the boxes are in columns B, C, D, E, G and H of ROW 2, and that cell F2—the cell for which "4 are on the left and two on the right"—will never contain the boolean values 'true' or 'false'

The formula shown below the table is in cell O2. Filled down, it is incremented by Numbers to natch the Bn:Hn references to its current row.

The bottom four rows of the table are to test the effects of a variety of values containing 'true' in column F. This column is included in the range of cells to be counted, but will count as a 0 provided the cell does not contain the boolean value true.


IN cell F7, the letters TRUE were entered in the cell. On pressing return, this text was interpreted as a Boolean, and was counted.


F8: the keystrokes here were ' T R U E (without the spaces). Note the apostrophe preceding the text. This is a signal to Numbers that everything that follows is TEXT. The apostrophe itself is not displayed.

In F8, the enclosing letters around "true" establish that this is a text string, not a Boolean value.

In F9, the cell has been formatted as Text (before the entry was made, preventing Numbers from converting it to a Boolean value.


I also tested entering a number in column F, and found it had no effect on the count.


Here is a text version of the formula. MIN(COUNTIF(B2:H2,TRUE),1)


Regards,

Barry

Apr 2, 2020 5:21 PM in response to Barry

Thank you, so very much, Berry. I struggled for several days and got nowhere. Your replay is exactly what I needed.


The first application of this list with the formula is my extensive spice shelf inventory. With this, I can filter out the result in the hidden column and note what I am out of or low on. Next, I am restarting the inventory on my "antique" video and computer games collection, and this will allow me to easily determine the holes in my collection.


Again, thank you.

jt


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.

Auditing checkboxes in the same row

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