+ Reply to Thread
Results 1 to 5 of 5

Formula to exclude duplicate values in a concatenation?

  1. #1
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    8

    Formula to exclude duplicate values in a concatenation?

    Hello,

    Is there a formula that will concatenate cells of text along a row whilst not including any duplicates within said row.

    I'm aware I can "Remove duplicates" using the toolbar function, however I want to avoid any such manual intervention.

    See example data attached.

    Concatenate without duplicates.jpg

    Thanks in advance,

    Katie

  2. #2
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Formula to exclude duplicate values in a concatenation?

    Try this ...

    =SUBSTITUTE(TRIM(A2&" "&IF(B2<>A2,B2,"")&" "&IF(COUNTIF(A2:B2,C2)=0,C2,"")&" "&IF(COUNTIF(A2:C2,D2)=0,D2,"")), " ", " - ")

  3. #3
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Formula to exclude duplicate values in a concatenation?

    Is the column number is fixed, what is the total No. of column.

    Can you please upload an excel sheet

    Thanks
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  4. #4
    Registered User
    Join Date
    09-14-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    8

    Re: Formula to exclude duplicate values in a concatenation?

    Thanks, PMPhuocam. Worked great

  5. #5
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,910

    Re: Formula to exclude duplicate values in a concatenation?

    You're welcome!

+ 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. Replies: 5
    Last Post: 09-16-2015, 09:24 AM
  2. [SOLVED] Exclude values within brackets from my formula.
    By faithhammer in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 11-25-2013, 01:17 AM
  3. sum formula to exclude zero values
    By nmginn in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-14-2013, 04:19 PM
  4. Formula to Exclude Duplicate Values
    By jjcgirl in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-22-2013, 11:43 AM
  5. Exclude duplicate values from out of a calculating a sumproduct
    By Alan Casey in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2012, 04:29 PM
  6. Sumproduct Formula - How Do I Exclude Values
    By winnie_shrub in forum Excel General
    Replies: 3
    Last Post: 04-14-2009, 06:32 AM
  7. Formula to add numbers and exclude text values
    By jpruffle in forum Excel General
    Replies: 7
    Last Post: 04-01-2009, 05:26 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