+ Reply to Thread
Results 1 to 9 of 9

Return multiple names into a single cell

  1. #1
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    Return multiple names into a single cell

    Hi,
    I was told that my problem can be solved using a VBA, but I don’t know the first thing about VBAs and I’m an excel novice in general.
    Here’s the spreadsheet I’m working with: DCM_market_update_1-15-16 test.xlsm I’m working with the columns in blue. I’m trying to consolidate the names that have an ‘X’ in their column into the corresponding cell in the ‘WMVBDs” column. For example, in the first row, there are X’s in the columns corresponding to Loop, Ramirez, and Williams. I would like those three names returned into a single cell in the WMVBDs column, with a comma in between each name.
    Thanks in advance!

  2. #2
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Return multiple names into a single cell

    Hello my friend

    Try this:

    Please Login or Register  to view this content.
    Put this into one Module and execute it
    Last edited by Gatti; 01-13-2016 at 05:40 PM.

  3. #3
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Return multiple names into a single cell

    What about the x's under Blaylock, Drexel and Lebenthal in the same Row?

  4. #4
    Valued Forum Contributor Gatti's Avatar
    Join Date
    06-08-2015
    Location
    Brasil, São Paulo, Ribeirão Preto
    MS-Off Ver
    365
    Posts
    346

    Re: Return multiple names into a single cell

    @jolivanes my code didn't work there?

  5. #5
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,516

    Re: Return multiple names into a single cell

    @Gatti
    I don't know. I was referring to Wikster7's statement of 3 x's while there were 6.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Return multiple names into a single cell

    UDF

    Use in cell like
    =HConcatenate($U$4:$AT$4,U5:AT5,"x",", ")
    and filldown.
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    Re: Return multiple names into a single cell

    Thanks jindon - this worked great!

  8. #8
    Registered User
    Join Date
    07-10-2015
    Location
    New York, NY
    MS-Off Ver
    2013
    Posts
    34

    Re: Return multiple names into a single cell

    Hi Gatti - I used jindon's solution. Thanks for trying to help me - I really appreciate it!

  9. #9
    Valued Forum Contributor
    Join Date
    04-26-2015
    Location
    Toronto, Canada
    MS-Off Ver
    2010
    Posts
    502

    Re: Return multiple names into a single cell

    @jindon

    That's a brilliant solution and one for my book of "who knew" :-)

+ 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. [SOLVED] vLookup multiple values separated by ";" in single cell / return result in single cell
    By Tunesmith in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2015, 12:02 PM
  2. [SOLVED] How to return multiple values to a single cell based on multiple criteria
    By lwallace in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-20-2014, 06:32 AM
  3. Finding a Single name in Cell in a Cell with Multiple Names (words)
    By perm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-08-2014, 12:29 AM
  4. [SOLVED] Consolidate cells with multiple names into a single column with one name per cell
    By rbtx70 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-26-2013, 12:16 PM
  5. [SOLVED] Convert multiple names in cells of a Column to a List with single name in each cell
    By mvmathur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-20-2013, 12:04 PM
  6. Executing Multiple Defined Names in Single Cell
    By thesonofdarwin in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 07-24-2010, 01:10 PM
  7. How to return multiple IF values in a single cell?
    By macmanjpc in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-15-2008, 08:54 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