Checkboxes to automatically populate list below

Tyrolc

New Member
Joined
May 15, 2014
Messages
2
Hi

I have inserted check boxes to a form im updating. I have linked these checkboxes to a cell. The checkboxes are for a 'table 1' of hazards ( there are 46 of them).

Below table 1 is another table (table 2) that lists the items checked in the table above.

I cant seem to find out how to automatically populate the table below in list form. I can do it for a single checkbox on each line, however there are only 10 rows available as there should be no more than that checked in table 1.

Can someone please let me know how you can automatically fill in these rows?
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
There could be two ways: one using macros, and the other using formulas.
below is a simple way with formulas.
The image shows the sheet with the checkboxes, the sheet layout shows the formulas used. The checkboxes are linked to the cells in column D. In column E I count the number of Trues up to that point .
In the list in table 2 (Choice) I lookup the order number (starting from 1) in the column E using Match() whcih will give me the first item. I use the number returned by Match() to lookup the corresponding menuitem using the Index() function.

Columns D & E can be hidden

qKGKbieIBxCfhoLtZDTY_fxZJ-8Z41O89kXvTFBPdKs=w188-h228-p-no



Excel 2010
ABCDE
1columnsto be hidden
2Menu
3Starters
4SaladTRUE1
5Soup1
6Main Course1
7ChickenTRUE2
8PorkFALSE2
9Beef2
10AsparagusTRUE3
11PotatoesTRUE4
12Beetroot4
13Desert4
14Applepie4
15YoghurtTRUE5
16Fruit5
17
18
19Choice:
201Salad
212Chicken
223Asparagus
234Potatoes
245Yoghurt
256-
267-
Sheet4
Cell Formulas
RangeFormula
E4=COUNTIF(D$3:D4, TRUE)
B20=IFERROR(INDEX($B$4:$B$16,MATCH(A20,$E$4:$E$16,)),"-")
 
Upvote 0
Do you have a recommendation if I need to do something similar to this example, but with about 5,000 lines of information? I need to be able to efficiently scale this function.
 
Upvote 0
How dynamic is your data? If the 5000 lines often change you will need to do something different. If the data is fairly static then the above approach should work. The real effort then is setting it up.
But probably you will have to go to macros to get it done easier and with a more flexible way for output. You can then also use user forms to set up the input side in a more professional way.
 
Upvote 0
Thanks for the reply! I was able to find a macro code for quickly linking the checkboxes to cells (relatively quickly, it still took a few minutes to run). The problem I'm having now is that this creates a very large file size and is bogging down my spreadsheet. I think I will have to look fro a way to streamline the data/process or look for a different solution to my issue. Thank you!
 
Upvote 0
JC, it will probably be better if you do it through userforms and macros. Any chance of showing how your data is organised? easiest is with some dummy tables. Put borders around the cells and then copy/paste into your reply.
 
Upvote 0

Forum statistics

Threads
1,216,185
Messages
6,129,383
Members
449,506
Latest member
nomvula

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top