+ Reply to Thread
Results 1 to 11 of 11

Adding Checkboxes Updating Formula

  1. #1
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    20

    Adding Checkboxes Updating Formula

    Hi, when placing an "x" in columns B and C the output is listed in Columns D and E respectively. Is there a way to replace the "x" in columns B and C with Check boxes? I am planning to create up to 200 check boxes so I'm not sure if this will effect performance or if there is a better way?. The main aim is to be able to click in and out of cells to select or de-select items that will add themselves to the list results in D and C - Thanks for any help or ideas.
    Attached Files Attached Files

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Adding Checkboxes Updating Formula

    How about this for a sample. Adding all of those check boxes could be a nightmare.

    Just double click on anything in B2:C20.

    Also, I added an additional formula due to the fact the Aggregate function is not available with an Excel version earlier than 2010. That might not be a problem for you, but just in case.
    Last edited by jeffreybrown; 06-07-2018 at 11:41 AM.
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    20

    Re: Adding Checkboxes Updating Formula

    Awesome, thank-you, that is a great solution and even better than check boxes. If I may ask, if I wanted to add more item lists eg, a new list in columbs G M and S with essential and desirable is it possible to have the result output in the original 2 columbs D and E as in the new example attached?, thanks again for your help on this.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Adding Checkboxes Updating Formula

    For future reference, try to include the full setup in your initial post, because nothing is coming to mind on this and I may have left this to others.

    I will leave a post for some of the formula guru's to step in.

  5. #5
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    20

    Re: Adding Checkboxes Updating Formula

    will do - sorry I am a bit of a newbie on forums so just getting used to how they work but will put full question at the start in future. Thanks again for your help, your solution has got me much further ahead in a better way than I expected, so glad you picked up on it. thanks again

  6. #6
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Adding Checkboxes Updating Formula

    S8S,

    Your new example has the same items in G M and S as the items listed in A... so how would they be distinguishable from each other?
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  7. #7
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    20

    Re: Adding Checkboxes Updating Formula

    sorry, they will be different, I didnt update the sheet properly - please see attached for updated example

  8. #8
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Adding Checkboxes Updating Formula

    Lets see if this works... instead of formulas the code does the listing, and kept jeffreybrown's great checkmark code, just expanded to use any columns defined in an array at the start

    I also made it more dynamic, so you can go to any row and the code should be good. (listing and double-clicking will work up to last row of the column it belongs with). So if last row in Col A that has data is row 40 then B and C will also work for clicking up to row 40.
    Last edited by Arkadi; 06-07-2018 at 01:50 PM.

  9. #9
    Registered User
    Join Date
    05-31-2018
    Location
    London
    MS-Off Ver
    365
    Posts
    20

    Re: Adding Checkboxes Updating Formula

    That, is absolutely perfect - thank-you guys, much appreciated - this has really really helped me out cheers :-)

  10. #10
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Adding Checkboxes Updating Formula

    So happy you now have your solution.

    Thanks Arkadi, great work.

  11. #11
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Adding Checkboxes Updating Formula

    Thanks for the rep and feedback S8S, as well as marking the thread as solved.

    Thanks jeffreybrown, I just added some to the great job you had already done! By the way, it WAS your request in Call in the Cavalry that brought me here, so the OP owes his solution to your efforts there also
    Last edited by Arkadi; 06-07-2018 at 02:04 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Macro for adding VBA checkboxes
    By steve_l in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-23-2011, 06:45 AM
  2. updating formula when adding a new workbook
    By bmunoz64 in forum Excel General
    Replies: 3
    Last Post: 12-20-2010, 05:07 PM
  3. Adding Values to Checkboxes
    By gtwinter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-05-2010, 03:40 PM
  4. Replies: 0
    Last Post: 06-05-2009, 02:17 PM
  5. Adding Checkboxes to a Form
    By Bill in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-26-2006, 07:00 PM
  6. adding checkboxes
    By shadespool in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2006, 01:46 PM
  7. Adding checkboxes via code to a workheet
    By Stef in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-01-2005, 11:06 AM
  8. Checkboxes for adding values
    By traps in forum Excel General
    Replies: 0
    Last Post: 01-06-2005, 12:07 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1