+ Reply to Thread
Results 1 to 4 of 4

Combine cells based on column duplicates

  1. #1
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Combine cells based on column duplicates

    Hi,

    I'm looking for a formula that will combine all cells in column "H" and Column "J" that have the same data in column "G" and seperate the data with " ; " .
    After the cells are combined the cell that got copied over needs it's entire row deleted.
    Not sure if this is best done in VBA or Formula's.
    Any help would be greatly appreciated.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Combine cells based on column duplicates

    Will you please attach a sample Excel workbook? Please don't attach a picture of one.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    05-30-2016
    Location
    The Netherlands
    MS-Off Ver
    2013
    Posts
    26

    Re: Combine cells based on column duplicates

    Here is the file
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Combine cells based on column duplicates

    The yellow cells contain an array formula that returns the unique values.

    The salmon pink cells contain a UDF to merge the cells you specified.

    the syntax is: =concatall(if(range1=value1,if(range2=value2,range_to_concatenate,""),""),"separator")

    Remember to enable macros on opening.

    Array Formulae are a little different from ordinary formulas in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.

    You will know the array is active when you see curly braces { } appear around the outside of your formula. If you do not CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly braces yourself - it won't work...
    Attached Files Attached Files

+ 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] Combine cells and remove duplicates
    By deanblew in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2016, 10:09 AM
  2. [SOLVED] Macro --- Combine Duplicates --- Delete Row --- Update Column
    By hftechno in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-30-2015, 11:49 AM
  3. Address list: combine row information based on duplicates in column
    By Vendery in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-15-2015, 11:41 AM
  4. [SOLVED] Combine Cells based on column value
    By jamesrdangelo in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2013, 04:42 PM
  5. Replies: 3
    Last Post: 05-21-2012, 03:42 AM
  6. Combine column data according to duplicates
    By harlowjohn1 in forum Excel General
    Replies: 2
    Last Post: 05-29-2010, 12:17 PM
  7. combine cells and delete duplicates
    By megkelley in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 10-28-2007, 05:55 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