How to create a dynamic check box?

nafijmoon

New Member
Joined
Mar 26, 2019
Messages
4
Hi. I have an excel file which has 2 sheet and so many values in there. Sheet 2 has 32 product items. And sheet 1 is my invoice. I want to add a checkbox in sheet 2 so whenever I check on an item it automatically includes in sheet 1. Serially... I attached 3 images so things get more clear.
 

Attachments

  • Sheet 1.png
    Sheet 1.png
    81.2 KB · Views: 22
  • Sheet 2.png
    Sheet 2.png
    112.1 KB · Views: 21
  • Example Checkbox (2).jpg
    Example Checkbox (2).jpg
    199.9 KB · Views: 20

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Do you have your checkboxes (in your example) linked to cells in the sheet - aligned with the rows they are embedded in? Assuming that is the case ... or assuming you will do that ... you will get a TRUE or FALSE per item in the list. You then need another column of values next to those results, calculated, so as to give numbers of 1,2,3, etc for the items that are ticked. Like:
=IF(A2,COUNTIF($A$1:A2,TRUE),"")

Then, in your invoice, fetch items from the list in order, setting results to blank if there is nothing to fetch (i.e. if the ticked items have all been fetched). Using something like:
=IFNA(INDEX(Sheet2!$B$1:$B$32,MATCH(ROW()-5,Sheet2!$J$1:$J$17,0)),"")
where "ROW()-5" has been used to generate, 1 or 2 or 3 etc, as the formula is copied down (you can use whatever method to generate the pointers) .. and column J of sheet2 contains the 1,2,3 results from the previously shown formula.

Does any of that sound usable?
 
Upvote 0
Do you have your checkboxes (in your example) linked to cells in the sheet - aligned with the rows they are embedded in? Assuming that is the case ... or assuming you will do that ... you will get a TRUE or FALSE per item in the list. You then need another column of values next to those results, calculated, so as to give numbers of 1,2,3, etc for the items that are ticked. Like:
=IF(A2,COUNTIF($A$1:A2,TRUE),"")

Then, in your invoice, fetch items from the list in order, setting results to blank if there is nothing to fetch (i.e. if the ticked items have all been fetched). Using something like:
=IFNA(INDEX(Sheet2!$B$1:$B$32,MATCH(ROW()-5,Sheet2!$J$1:$J$17,0)),"")
where "ROW()-5" has been used to generate, 1 or 2 or 3 etc, as the formula is copied down (you can use whatever method to generate the pointers) .. and column J of sheet2 contains the 1,2,3 results from the previously shown formula.

Does any of that sound usable?
Thank you so much. I really appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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