+ Reply to Thread
Results 1 to 11 of 11

Remove duplicated in TEXTJOIN formula

  1. #1
    Registered User
    Join Date
    03-02-2021
    Location
    Europe
    MS-Off Ver
    Professional Plus 2019
    Posts
    20

    Remove duplicated in TEXTJOIN formula

    Hello,

    I have used formula TEXTJOIN and i get duplicated that I need help with removing.
    Is there any way to only visualize unique values?

    Attached three are examples marked in red where this issue is clear, concerns column G and H.
    Last edited by caamfin; 07-13-2023 at 02:04 AM.

  2. #2
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Remove duplicated in TEXTJOIN formula

    Try this,

    G11
    =IF(OR(F11="",F11="3DX-SRMS"),"",(TEXTJOIN(",",TRUE,UNIQUE(IF(F11=Baseline!$A$9:$A$1247,Baseline!$M$9:$M$1247,"")))))

    H11
    =IF(OR(F11="",F11="3DX-SRMS"),"",(TEXTJOIN(",",TRUE,UNIQUE(IF(F11=Baseline!$A$9:$A$1247,Baseline!$S$9:$S$1247,"")))))

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Remove duplicated in TEXTJOIN formula

    Does adding the UNIQUE function give you the result you expected

    =IF(OR(F11="",F11="3DX-SRMS"),"",(TEXTJOIN(",",TRUE,UNIQUE(IF(F11=Baseline!$A$9:$A$1247,Baseline!$M$9:$M$1247,"")))))
    Cheers
    Andy
    www.andypope.info

  4. #4
    Registered User
    Join Date
    03-02-2021
    Location
    Europe
    MS-Off Ver
    Professional Plus 2019
    Posts
    20

    Re: Remove duplicated in TEXTJOIN formula

    I coudnt get this to work as it says #NAME?I will try to add the file again with UNIQUE formula added.Attachment 836367

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,436

    Re: Remove duplicated in TEXTJOIN formula

    #NAME suggests it does not recognise the name of a function.

    Either mispelled or not available in that version of excel. Are you sure you have O365?

  6. #6
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Remove duplicated in TEXTJOIN formula

    I suppose you didn't translate the formula correct to your own languge.

    See attachment for the correct translation of the formulas of windknife and Andy in your language.
    Last edited by HansDouwe; 07-14-2023 at 02:16 AM.

  7. #7
    Registered User
    Join Date
    03-02-2021
    Location
    Europe
    MS-Off Ver
    Professional Plus 2019
    Posts
    20

    Re: Remove duplicated in TEXTJOIN formula

    UNIQUE nor _xlfn.UNIQUE is available in this excel version it seems, Professional Plus 2019
    Are there any workarounds?

  8. #8
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Remove duplicated in TEXTJOIN formula

    It works in the version 365 as you indicated in your profile!

  9. #9
    Registered User
    Join Date
    03-02-2021
    Location
    Europe
    MS-Off Ver
    Professional Plus 2019
    Posts
    20

    Re: Remove duplicated in TEXTJOIN formula

    That was in my old work place, i have updated my profile now. Thanks for pointing that out

    Question remains though if I can get unique values somehow or if ill have to live them them repeating

  10. #10
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Remove duplicated in TEXTJOIN formula

    Thanks for updating your profile.

    This solution works for Excel 2019 (but not for Mac):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  11. #11
    Forum Expert
    Join Date
    04-14-2009
    Location
    Taiwan
    MS-Off Ver
    Excel 2016,2019,O365
    Posts
    2,005

    Re: Remove duplicated in TEXTJOIN formula

    G11
    =IF(OR(F11="",F11="3DX-SRMS"),"",(TEXTJOIN(",",TRUE,IF(ROW($M$9:$M$1247)-8=IF(IF(F11=Baseline!$A$9:$A$1247,Baseline!$M$9:$M$1247,"")="","",MATCH(IF(F11=Baseline!$A$9:$A$1247,Baseline!$M$9:$M$1247,""),IF(F11=Baseline!$A$9:$A$1247,Baseline!$M$9:$M$1247,""),0)),Baseline!$M$9:$M$1247,""))))

    commited with Ctrl+Shift+Enter.

    H11
    =IF(OR(F11="",F11="3DX-SRMS"),"",(TEXTJOIN(",",TRUE,IF(ROW($S$9:$S$1247)-8=IF(IF(F11=Baseline!$A$9:$A$1247,Baseline!$S$9:$S$1247,"")="","",MATCH(IF(F11=Baseline!$A$9:$A$1247,Baseline!$S$9:$S$1247,""),IF(F11=Baseline!$A$9:$A$1247,Baseline!$S$9:$S$1247,""),0)),Baseline!$S$9:$S$1247,""))))

    committed with Ctrl+Shift+Enter

    Both copied down.

+ 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. TEXTJOIN can remove all non numbers except the dot
    By joeppiej in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-21-2023, 08:34 PM
  2. [SOLVED] TEXTJOIN - Remove Unique Value Option
    By bobbyrabbit in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 09-05-2022, 07:41 AM
  3. Remove duplicated rows with VBA
    By mimoka82 in forum Excel General
    Replies: 1
    Last Post: 05-25-2021, 01:21 PM
  4. Replies: 1
    Last Post: 01-19-2017, 08:02 AM
  5. Remove many unwanted/duplicated styles
    By Vaslo in forum Excel General
    Replies: 9
    Last Post: 11-24-2014, 12:54 AM
  6. Replies: 26
    Last Post: 07-29-2014, 06:38 PM
  7. Remove Combobox Duplicated items
    By D_Rennie in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-25-2009, 02:35 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