+ Reply to Thread
Results 1 to 6 of 6

Retrieve names to concatenate on one cell if meet certain criteria

  1. #1
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Retrieve names to concatenate on one cell if meet certain criteria

    I trying to do a formula on sheet 1 to retrieve the names that are on sheet 2 column C if sheet 2 column B=1 next to the name
    i'am using this code from cpearson http://www.cpearson.com/excel/stringconcatenation.aspx to concatenate all names on one cell,
    any help is greatly appreciated...thanks in advance....

  2. #2
    Registered User
    Join Date
    02-15-2016
    Location
    United States
    MS-Off Ver
    2010
    Posts
    33

    Re: Retrieve names to concatenate on one cell if meet certain criteria

    Good afternoon score,

    Would you mind attaching a workbook with a small sample of dummy data with an example of the before/after you're looking to accomplish so that we may better assist?

  3. #3
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Retrieve names to concatenate on one cell if meet certain criteria

    Thanks for your response Chenderson, dummy file attached, thank you very much...
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-15-2016
    Location
    United States
    MS-Off Ver
    2010
    Posts
    33

    Re: Retrieve names to concatenate on one cell if meet certain criteria

    I believe this UDF is perfectly in line with what you would like to accomplish :

    Please Login or Register  to view this content.
    Once you have this code in a module, the formula you use to concatenate your values will be as follows :

    =concatenateif(Sheet2!B:B,1,Sheet2!C:C,CHAR(10))

    Where the first range contains the placement, "1" is the criteria you would like to extract, the second range contains the values you would like concatenated, and the final section is an optional separator (in this case Char(10) is a line break). In order for the line breaks to show, please ensure you have "wrap text" enabled for the cell containing the formula.

    The code above came from the following link :
    https://www.extendoffice.com/documen...-criteria.html

  5. #5
    Forum Contributor
    Join Date
    04-22-2011
    Location
    Isabela, Puerto Rico
    MS-Off Ver
    365 Mac Excel Version 16.54
    Posts
    233

    Re: Retrieve names to concatenate on one cell if meet certain criteria

    Chenderson... It work perfect, thank you very very much!!!

  6. #6
    Registered User
    Join Date
    02-15-2016
    Location
    United States
    MS-Off Ver
    2010
    Posts
    33

    Re: Retrieve names to concatenate on one cell if meet certain criteria

    Absolutely! I'm glad it works for you!

+ 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] Need to count repeated names only once that meet multiple criteria
    By steeler11111 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 12-10-2015, 12:20 PM
  2. Make a list of names from a roster that meet a certain criteria
    By robertwclark in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-08-2014, 02:09 AM
  3. [SOLVED] Need help Pulling Names that meet criteria
    By knockem in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 07-02-2014, 02:59 PM
  4. Replies: 0
    Last Post: 12-20-2010, 04:31 PM
  5. How to retrieve names from the table? 2 criteria given
    By ABSTRAKTUS in forum Excel General
    Replies: 3
    Last Post: 05-10-2010, 01:15 PM
  6. concatenate cell the meet critera
    By profector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-01-2008, 01:58 AM
  7. return worksheet names that do not meet criteria
    By kmfdm515 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-21-2008, 08:44 PM

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