+ Reply to Thread
Results 1 to 11 of 11

Creating a list according to partial duplicates & Incrementing delimiter in TEXTJOIN

  1. #1
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Creating a list according to partial duplicates & Incrementing delimiter in TEXTJOIN

    Hello guys,

    coming here for a second time with mind boggling problem (for me

    As you can see in the attached file I have a list of product models.
    Full list is 240 000 products and part of them are included in series of products. Totally about 9k+ series.
    I have to prepare a list of ID`s of other products, from the same series, for each product.
    The list can include the current product at first place in the list or can be excluded.
    The list has to be in one cell as the file I`m working on is already with 90 columns and to add another hundred (in some cases) is not very friendly.

    A product matches to a series if columns C,D,E,F,G match. I added a column H to visualize it.
    Attached Files Attached Files
    Last edited by AliGW; 03-30-2022 at 02:28 AM.

  2. #2
    Valued Forum Contributor janmorris's Avatar
    Join Date
    07-24-2021
    Location
    Japan
    MS-Off Ver
    Google Sheets (& Mac 2021)
    Posts
    1,141

    Re: Creating a list according to partial duplicates...

    are you looking for a single formula for column H, where the formula will be in cell H1, and it will give a header value (DUPS) and automatically concatenate each row...

    try this in cell H1:
    Please Login or Register  to view this content.
    sample attached
    As a gesture off appreciation, you can click * Add Reputation at the foot of any of the posts of members who helped you reach a solution.

    And finally, was your problem solved? if so, please click Thread Tools above the first post of your enquiry, then select [Solved]

  3. #3
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Re: Creating a list according to partial duplicates...

    Hi janmorris,

    Instead of dups which is now the result I need list of the ID`s.
    Makes sense now?
    for example
    row 156 content is 494161;Toshiba;Tecra;Z50-E;104;ToshibaTecraZ50-E
    in column dups I need ids of all the other ToshibaTecraZ50-E

    which are
    494162, 494163, 494164, 494165, 494166, 494167, 494168, 494169, 494170, 494171, 494172, 494173, 494174, 494175, 494176, 494177, 494178, 494179

  4. #4
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Creating a list according to partial duplicates...

    So you want the full list of duplicates in each row? If so, try this in I2, copied down:

    =TEXTJOIN(",",1,IF(H2=$H$2:$H$174,$A$2:$A$174,""))

    If you wanted to exclude the current row then:

    =TEXTJOIN(",",1,IF((H2=$H$2:$H$174)*($A$2:$A$174<>A2),$A$2:$A$174,""))

  5. #5
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Re: Creating a list according to partial duplicates...

    Hi nick.williams,

    Doesn't look like it is working properly.
    The result is all ID`s regardless is there match or not. Tested even with a unique value.
    Can you attach a table so I avoid errors on my side?

  6. #6
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Creating a list according to partial duplicates...

    See attached workbook. If you wanted some other result please let me know.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Re: Creating a list according to partial duplicates...

    Thank you.
    Much simpler than expected and it works like a charm.

  8. #8
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Creating a list according to partial duplicates...

    It is out of the initial scope of the post "Creating a list according to partial duplicates" Started by gotmort‎, Yesterday 07:20 AM

    And to give it a proper name I decided to go on a new Thread.

    MOD EDIT: Moved back to the original thread - continue here, please.


    After managing the first part in the previous thread we got the result
    220005;220033;210077;210085;220038;220016;160050

    And now I reached the point where the final result is clear.

    It should look like this:

    a:7:{i:0;i:220005;i:1;i:220033;i:2;i:210077;i:3;i:210085;i:4;i:220038;i:5;i:220016;i:6;i:160050;}

    The first number should count the amount of joined cells.
    The numbers between the cells should increase by one starting from 0


    The attached file

    Column I
    Textjoin where I also put the required delimiter ;i:0;i: / this is the part that I'm unable to figure out the 0 should be incrementing and should start form 0 (in the attached example I added 13) as a part of the delimiter to make the rest work
    Column J
    I add the start and the end of the cell as required / The first number should be equal to the total amount of ID`s it is also equal to the last counter +1
    Column K
    I remove everything up to the last counter /easy because all id`s of products are 6 digits
    Column L
    I remove everything before the last counter / I remove everything before the last :

    Column I is the problem. The auto incrementing part.
    Id`s which I'm joining might not be in any order and can be anywhere from 2 up to 1000
    Tried with concatenated text in the delimiter. Didnt managed to make it work.
    Any idea is it at all possible?
    Attached Files Attached Files
    Last edited by AliGW; 03-30-2022 at 02:27 AM.

  9. #9
    Registered User
    Join Date
    03-20-2021
    Location
    Sofia
    MS-Off Ver
    2020
    Posts
    17

    Re: Creating a list according to partial duplicates & Incrementing delimiter in TEXTJOIN

    I managed to do this with concatenate. Very long and ugly, but the job is done.

  10. #10
    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. 2502 (Windows 11 Home 24H2 64-bit)
    Posts
    89,500

    Re: Creating a list according to partial duplicates & Incrementing delimiter in TEXTJOIN

    Please share the formula you came up with.

    Which Office version do you have? Is 2020 a Mac version or a release number?
    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.

  11. #11
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Creating a list according to partial duplicates & Incrementing delimiter in TEXTJOIN

    Working off my earlier solution, is something like this what you want?

    Please Login or Register  to view this content.
    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. Creating a second list to remove duplicates
    By QSGuy in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-21-2019, 09:06 PM
  2. [SOLVED] creating a second list without duplicates
    By jdeleon in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-16-2013, 03:56 PM
  3. [SOLVED] Creating a unique list from a list of duplicates
    By ssu in forum Excel Programming / VBA / Macros
    Replies: 38
    Last Post: 04-29-2013, 08:19 AM
  4. Replies: 2
    Last Post: 03-24-2013, 12:54 PM
  5. Replies: 2
    Last Post: 08-28-2012, 10:41 PM
  6. Replies: 3
    Last Post: 03-09-2011, 07:00 PM
  7. Creating a list and removing duplicates
    By JohnGuts in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2007, 12:55 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