+ Reply to Thread
Results 1 to 5 of 5

Concatenate duplicates

  1. #1
    Registered User
    Join Date
    11-14-2012
    Location
    India
    MS-Off Ver
    MS 365
    Posts
    22

    Concatenate duplicates

    Hi,

    Need help for concatenating duplicate text. Can someone take a look at this data and see if there's a formula that will concatenate as required? I've taken a stab, but it only works where there are 2 notes of the same type etc. but in some cases you'll see there are more than 2, so a cleverer Excel user needs to help me out please!

    I need to concatenate the text so it's in one field that can then be use as report; in the attached, I've highlighted where there are notes of the same type for the same date, Type and type 2, that need to be concatenated into one field to.

    Thanks,
    Maxi
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Concatenate duplicates

    Excel version lower than 2019 requires a helper column because Textjoin function is not available.

    H2 helper
    =IF((A2=A3)*(B2=B3)*(D2=D3)*(G2=G3),F2&" "&H3,F2)

    I2 result
    =IF((A2=A3)*(B2=B3)*(D2=D3)*(G2=G3)*((A2<>A1)+(B2<>B1)+(D2<>D1)+(G2<>G1)),H2,"")
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    11-14-2012
    Location
    India
    MS-Off Ver
    MS 365
    Posts
    22

    Re: Concatenate duplicates

    Excel version lower than 2019 requires a helper column because Textjoin function is not available.

    Thanks, I am using 2019 version so shall i just directly the formula you have mentioned in I2?

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Concatenate duplicates

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

    Please try at H2

    =IF((A2=A3)*(B2=B3)*(D2=D3)*(G2=G3)*((A2<>A1)+(B2<>B1)+(D2<>D1)+(G2<>G1)),TEXTJOIN(" ",,F2:INDEX(F2:F13,MATCH(0,INDEX((A2=A3:A13)*(B2=B3:B13)*(D2=D3:D13)*(G2=G3:G13),),))),"")
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    11-14-2012
    Location
    India
    MS-Off Ver
    MS 365
    Posts
    22

    Re: Concatenate duplicates

    Thanks! This work. Appreciate your help.

+ 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. Auto concatenate and reverse concatenate & Remove duplicates .
    By Andy308 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-15-2016, 12:38 PM
  2. [SOLVED] Macro to find duplicates, concatenate cells, then delete old duplicates (2)
    By cny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 06:05 AM
  3. Macro to find duplicates, concatenate cells, then delete old duplicates
    By givemepuppies in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-04-2016, 02:43 AM
  4. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  5. [SOLVED] Find duplicates, concatenate into different column, sum and delete duplicates
    By rosannang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 11:23 AM
  6. Concatenate Duplicates
    By Omnicube in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-17-2011, 12:05 PM
  7. Concatenate and delete duplicates, again
    By evanorden in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-16-2011, 10:13 AM

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