+ Reply to Thread
Results 1 to 5 of 5

Selecting data from a checkbox

  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    -
    MS-Off Ver
    Excel 2003
    Posts
    11

    Exclamation Selecting data from a checkbox

    Hi All,
    I have summary sheet with cell G7 which is classification.

    On another template that users will fill out, i have 4 classification values being: Mandatory, Core System, Priority, Discretionary which are selected by the use of a checkbox which they tick the correct classification type.

    In cell G7 i need to check to see which classification type has been ticked and then display the classification type accordingly e.g. 1-Mandatory, 2-Core System, 3-Priority, 4-Discretionary. I have tried using something similar to:

    =IF('01'!B21:D21=TRUE, "1-Mandatory", IF('01'!B22:D22=TRUE, "2-Core System", IF('01'!B23:D23=TRUE, "3-Priority", IF('01'!B24:D24=TRUE, "4-Discretionary"))))

    ...where sheet 01, B21:D21 are the cells that the checkbox is merged into.

    Thanks. sdaddy.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Selecting data from a checkbox

    Way, WAY easier ways of skinning this cat.

    On your template, forgo the checkboxes for a combo box or an in-cell drop down list (through normal Data>Validation>List, then simply reflect the value chosen directly in your cell G7. Why work harder than necessary for this?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Selecting data from a checkbox

    doesnt work like that ,you only need to ref the cell the check box is linked to(and you should only link to one cell anyway)
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    06-09-2009
    Location
    -
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: Selecting data from a checkbox

    hi martindwilson, i cannot seem to be able to right click on the checkbox to assign it to a cell or look at the properties or anything. seems it could be locked. have u experienced anything like that before?

    i am unsure how the checkbox was created i am just helping out in this area unfortunately...

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Selecting data from a checkbox

    its probably a control toolbox check box then
    you need to go into design mode to edit it
    make sure the control toolbox toolbar is visible(right click any toolbar at top and check the contol toolbox option)
    look for the symbol on the left that looks like a blue triangle/sitting on a ruler
    click that
    right click checkbox
    properties
    and in the window that pops up you should see which cell if any its linked to.

+ 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