+ Reply to Thread
Results 1 to 12 of 12

Formula to merge duplicate and textjoin

  1. #1
    Registered User
    Join Date
    08-13-2022
    Location
    Singapore
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    5

    Formula to merge duplicate and textjoin

    sample.xlsx
    Hi all, any help is greatly appreciated. I have attached the the excel file for my query. As you can see from the excel sheet the column under Order ID there are duplicate data. I would like to merge these and the column under Description to have textjoin. Pls see After tab to show the result i would like to have. Any help will be greatly appreciated.
    Last edited by Muneer1977; 08-13-2022 at 09:03 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,375

    Re: Formula to merge duplicate and textjoin

    Welcome to the forum.

    Please provide ONE samlple .xlsx file with a tab showing before and another tab showing after - make it easy for your helpers by keeping everything in one workbook, please.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    08-13-2022
    Location
    Singapore
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    5

    Re: Formula to merge duplicate and textjoin

    Thank you. will attach file like you mentioned.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Formula to merge duplicate and textjoin

    In the attached I created your expected results using Power Pivot and a DAX measure.
    Attached Files Attached Files
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    08-13-2022
    Location
    Singapore
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    5

    Re: Formula to merge duplicate and textjoin

    Appreciate your help here. I have more of such data to consolidate. How do i add in more lines and refresh to pivot them all ?

  6. #6
    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: Formula to merge duplicate and textjoin

    or...


    =TEXTJOIN(CHAR(10),,IF(Before!$A$2:$A$6=A2,Before!$C$2:$C$6,""))

    (works in O365)
    Attached Files Attached Files
    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

  7. #7
    Registered User
    Join Date
    08-13-2022
    Location
    Singapore
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    5

    Re: Formula to merge duplicate and textjoin

    Hi Glenn, Good day to you sir, I added in more data to the file you sent me with the formula. I tried to drag down the formula to the newly added data. It does not seem to work. Can you assist me with this ?sample.xlsx

  8. #8
    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: Formula to merge duplicate and textjoin

    You need to change the range of the formula to include all of the data!!!


    =TEXTJOIN(CHAR(10),,IF(Before!$A$2:$A$14=A2,Before!$C$2:$C$14,""))

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Formula to merge duplicate and textjoin

    You would refresh in the same manner as if your were using a regular pivot table. Add the records, go to Data and Refresh all

  10. #10
    Registered User
    Join Date
    08-13-2022
    Location
    Singapore
    MS-Off Ver
    Office Pro Plus 2019
    Posts
    5

    Re: Formula to merge duplicate and textjoin

    sample (3).xlsx

    Tried refreshing and got error. Maybe i did something wrong. Can you help me out ?

  11. #11
    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: Formula to merge duplicate and textjoin

    Did you see Post 8??

  12. #12
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,703

    Re: Formula to merge duplicate and textjoin


+ 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 TEXTJOIN if column contains the same values
    By YMUNSHI in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2021, 10:23 PM
  2. [SOLVED] formula to extract, count then textjoin
    By aan.isnaini in forum Excel Programming / VBA / Macros
    Replies: 25
    Last Post: 12-08-2021, 03:15 PM
  3. [SOLVED] TEXTJOIN in a Spill Array Formula
    By DJunqueira in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-12-2021, 02:33 PM
  4. [SOLVED] Textjoin() and Match() Formula Issue
    By cdspeights in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 10-24-2019, 11:45 AM
  5. [SOLVED] TEXTJOIN - getting 1 occurrence of duplicate values only
    By aTRc in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-30-2019, 03:36 AM
  6. Modify TEXTJOIN formula to avoid duplicate returns
    By Thintin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-18-2019, 11:06 AM
  7. [SOLVED] TextJoin formula with MID function
    By Brsth in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 04-26-2018, 11:00 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