+ Reply to Thread
Results 1 to 12 of 12

How do I insert checkboxes? How do I link them to data validation and vlookup?

  1. #1
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    How do I insert checkboxes? How do I link them to data validation and vlookup?

    Please see the attached example. The Order Form is populated based on the customer's answer to the question of how many computers they need service for. You will see the Data Validation for the question drop down menu, and the VLookUps for what populates the Product Price for each item based on their answer to the question.

    1. I need checkboxes in the three places that say 'CHECKBOX'. How do I create these?

    2. When an item's checkbox is checked, I would like it to put the Product Price for the checked item into that item's cell under Your Order Totals. When it is unchecked, I would like there to either be a 0 or nothing in that item's cell under Your Order Totals, whichever is easier. How do I do this?

    3. It is mandatory that the customer purchases a Spyware Installation Package with their Service Package. Therefore, I need the checkbox next to "Spyware Installation Package" to automatically be checked and the Product Price populated as well as the Your Order Totals, based on their answer. If the customer would like the "Deluxe Spyware Installation Package", when they check the box next to that and the price populates under Your Order Totals, I want it to automatically uncheck the box next to "Spyware Installation Package", and unpopulate that price.

    Any help that could be given would be so helpful!
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    Just FYI... the word 'CHECKBOX' is supposed to be next to the three line items. Pretty obvious, but just to clarify.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    I'm not a big fan of checkboxes. I used, in this case, custom format so that whatever you type into the cell, it shows an "X". I added formulas to your Order totals and put a formula into the checkbox next to the Spyware so it checks it if there's nothing in F9 (Deluxe).
    To keep people from clearing your formulas, I unlocked the cells with the dropdown or checkboxes and protected the sheet. (there's no password so you can easily unprotect it)
    To remove an X, just clear contents or backspace when selected. Alternately, I could add a simple macro that adds or subtracts the "X" when double clicked. It's up to you.
    Does this work for you or do you want true Checkboxes?
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    This is definitely getting close to what I need! Unfortunately, my boss specifically requested checkboxes, so I would prefer to do it that way.

    I see your formulas in my order totals... J8 formula seems pretty basic (=IF(F8>0,I8,0). What about the other two... what is the LEN function? (=IF(LEN(F9)>0,I9,0).

    Also, the way you have it formatted now, you can have both the Spyware Installation Package AND Deluxe Spyware Installation Package selected. Is it possible to just have one or the other?

    It would be super helpful if you could provide a brief explanation on how you're doing what you're doing. My real spreadsheet contains confidential material so I had to make a dummy example to put on here, and therefore will be making the changes to my spreadsheet myself.

    Thanks a ton for your help!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    The spreadsheet I gave you should not allow (as long as no one messes with the formula in F8) someone to pick both the Spyware and the deluxe spyware. Check again.

    LEN(F9) counts the number of characters or digits in cell F9. If I typed "x" in there, it'll be 1. So basically, if there is anything in F9 (the checkbox) then put in the cost from I9. Make sense?

    I will redo this with checkboxes.

  6. #6
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    You're right, my fault. I had unprotected the sheet and must have done something to the "X" cells to mess it up. I see now.

    And yes, those formulas make sense.

    Thanks for your help! I'll be looking for your checkbox version!

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    Here is a checkbox version. In order for you to only allow 1 box (f8 or f9) to be checked at a time, it was necessary to use macros
    The checkboxes are the Tools>Forms checkboxes (not Control or Active X). They are linked to the cells they are in. SO if checkbox in F8 is checked, F8 contains True, if not checked, it contains False.
    F8 and F9 checkboxes also have macros connected to them so that if they are checked, they uncheck the other. For example, the code for the checkbox in F8 is
    Please Login or Register  to view this content.
    A mirror image connected to the F9 checkbox. People will need to enable macros for that function to work.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    Sorry for the delay, I couldn't access the website for some reason.

    I'm working on applying your work to my spreadsheet. I'll let you know if I have any questions, or if I get it to work.

    Thanks SO much! You're saving my job.

  9. #9
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    Ok I already have a question, lol.

    I can only find the ActiveX and Control checkboxes. I have Excel 2007... where can I find these other checkboxes that you speak of?

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    The ones I used are Form Controls (top of the drop down). Sorry, thought you were using 2003.

    Called "Form Control" in 2010, might just be "Control" in 2007. Nominclature seems to change every version

  11. #11
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    YESSSS I got it to work!!!! GREAT instructions. Thank you!!! I've been working on this project every single day for a week straight and I just finished, thanks to you.

  12. #12
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    Glad everythings working.

  13. #13
    Registered User
    Join Date
    02-07-2013
    Location
    Raleigh, NC
    MS-Off Ver
    Excel 2010
    Posts
    27

    Re: How do I insert checkboxes? How do I link them to data validation and vlookup?

    IGNORE THIS - SOLVED IT.

    Hello - could you help me with one more thing? I'm thinking I'll have to use macros. How do you make it so if you click one check box, another check box ALSO checks... and if it gets unchecked, the other checkbox does, too?
    Last edited by akrhodes; 02-15-2013 at 05:27 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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