+ Reply to Thread
Results 1 to 4 of 4

Return a string from multiple checkbox results

Hybrid View

dillinger Return a string from multiple... 04-26-2010, 09:21 AM
davesexcel Re: Return a string from... 04-26-2010, 07:32 PM
Palmetto Re: Return a string from... 04-26-2010, 08:13 PM
dillinger Re: Return a string from... 05-01-2010, 11:46 AM
  1. #1
    Registered User
    Join Date
    04-26-2010
    Location
    nebraska
    MS-Off Ver
    Excel 2007
    Posts
    13

    Return a string from multiple checkbox results

    Hello! I'm new here and looking for some assistance. I've got 8 checkboxes and I'd like to be able to check any number of them and return a string based on only the TRUE results. So, if the results are A, B, C, D, E, F, G, H I'd like to be able to return the string: "A, C, and F" or even just "B" or "C, D, E, and H". Does that make sense? I've got the checkboxes returning the correct words I need if any of them are checked, it's the getting of the string I'm having issues with. Anybody able to help?

    Thanks!

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,523

    Re: Return a string from multiple checkbox results

    To best describe or illustrate your problem you would be better off attaching a dummy workbook, the workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    If needed supply a before and after sheet in the workbook so the person helping you can see what you are trying to achieve.

    Doing this will ensure you get the result you need!

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Return a string from multiple checkbox results

    You can do this without code if it fits your situation.

    Assuming check boxes are linked to cells, say A1:H1, then in the row below each cell you could use this formula:

    =IF(A$1=TRUE,"A ","")

    And in the cell to show the string, this formula:

    =A2&B2&C2&D2&E2&F2&G2&H2

    See if the attached is of any help. Otherwise,as davesexcel points out, upload a sample workbook.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    04-26-2010
    Location
    nebraska
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Return a string from multiple checkbox results

    Quote Originally Posted by Palmetto View Post
    You can do this without code if it fits your situation.

    Assuming check boxes are linked to cells, say A1:H1, then in the row below each cell you could use this formula:

    =IF(A$1=TRUE,"A ","")

    And in the cell to show the string, this formula:

    =A2&B2&C2&D2&E2&F2&G2&H2

    See if the attached is of any help. Otherwise,as davesexcel points out, upload a sample workbook.
    That totally worked. I can't believe I didn't think of that. Thank you so much for the help!

    PS: Sorry it took me until today to get back to you. I work the weekend shift.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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