+ Reply to Thread
Results 1 to 3 of 3

Macro for Concatenate the names basis of multiple conditions

  1. #1
    Forum Contributor
    Join Date
    08-12-2013
    Location
    India
    MS-Off Ver
    Office 365
    Posts
    147

    Macro for Concatenate the names basis of multiple conditions

    Hello Guys,

    I need help in creating a one logic in Macro.

    The column A and B each cell conatins single or mutiple names of the customers which I want to concatenate in Column C basis of following conditions:

    1. If there is a different names in Column A and B then in Column C they will be concatenate with separated by comma.

    2. If there is any common name or names is present in Column A and Column B then in Colummn C only that unique name should appear instead of concatenating all names.

    For more understanding please refer the attached sample file.

    Any help will be appreciated a lot.

    Regards,
    Attached Files Attached Files

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

    Re: Macro for Concatenate the names basis of multiple conditions

    Try
    Please Login or Register  to view this content.
    Last edited by jindon; 09-19-2016 at 04:51 AM. Reason: Code Edited.

  3. #3
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Macro for Concatenate the names basis of multiple conditions

    Another way:
    Please Login or Register  to view this content.

    Note for jindon's code, if column 3 is not empty, result may have errors. Or you can fix by changing this line
    Please Login or Register  to view this content.
    to
    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)

Similar Threads

  1. [SOLVED] Formula to pick the value between 2 columns basis of different conditions
    By Manish_Gupta in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-28-2014, 01:36 AM
  2. [SOLVED] Need a Macro to send email from excel through Outlook basis of different conditions
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-11-2014, 10:21 PM
  3. Macro to remove duplicate entries basis of different conditions
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-03-2014, 10:26 AM
  4. Macro to separate, concatenate, and change sheet names
    By JGSmith in forum Excel General
    Replies: 16
    Last Post: 05-04-2014, 04:57 AM
  5. [SOLVED] Ideas for Replacing Names on Monthly Basis
    By albert5445 in forum Excel General
    Replies: 3
    Last Post: 10-09-2013, 04:00 PM
  6. [SOLVED] Need to create a Concatenate formula that displays on a conditional basis
    By chrisnw20 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2013, 11:24 AM
  7. enable/disable start button on basis of chkbox conditions
    By ilyaskazi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-04-2005, 04:09 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