+ Reply to Thread
Results 1 to 3 of 3

Forming String from Selected Items

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Forming String from Selected Items

    Thanks for these ideas, guys.

    Bob

    I have a listing of schools, some records selected with a "Y". When all of the desired schools have been selected, I want to run a macro that will scan through those cells and, for each one that is selected, put the school name into a string. I want that resultant string to be written to a cell.

    Here's an example of the data:

    Please Login or Register  to view this content.
    The resultant string should then read "East, Northside, The Meadows"

    TIA

    Bob
    Last edited by bstubbs; 06-06-2009 at 09:43 AM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Forming String from Selected Items

    You can use this function:
    Please Login or Register  to view this content.
    And this array-entered formula:

    =Cat(IF(A1:A10="y", B1:B10, ""), ", ")
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Forming String from Selected Items

    This will put the result in C1:
    Please Login or Register  to view this content.

+ 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