+ Reply to Thread
Results 1 to 11 of 11

Remove Duplicate using Formula

  1. #1
    Registered User
    Join Date
    10-26-2022
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    17

    Remove Duplicate using Formula

    Hi,
    Could anybody help me with this by using formula?
    Basically I would like to remove duplicates from a list, but using formula only.

    Input:
    Red
    Red
    Blue
    White
    White
    Red
    Black

    Result:
    Red
    Blue
    White
    Red
    Black

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Remove Duplicate using Formula

    Assum your list in A2:A8
    In B2 draging down
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Quang PT

  3. #3
    Forum Expert
    Join Date
    09-30-2019
    Location
    Chiangmai, Thailand
    MS-Off Ver
    Office 2016, Excel 2019
    Posts
    1,234

    Re: Remove Duplicate using Formula

    Please try this formula pattern

    =IFERROR(INDEX($D$5:$D$12,AGGREGATE(15,6,(ROW($D$5:$D$12)-ROW($D$4))/(1/(COUNTIF(E$5:E5,$D$5:$D$12)=0)),1)),"")

    Regards.
    Attached Images Attached Images

  4. #4
    Registered User
    Join Date
    10-26-2022
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    17

    Re: Remove Duplicate using Formula

    Hi Menem,
    Thanks for the solution.
    For some reason the formula doesnt work.
    Any idea why?
    Attachment 802592
    Last edited by AliGW; 10-28-2022 at 03:07 AM. Reason: Please DON'T quote unnecessarily!

  5. #5
    Registered User
    Join Date
    10-26-2022
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    17

    Re: Remove Duplicate using Formula

    @bebo021999

    Hi,
    I notice that the formula using ROWS($1:1).
    Unfortunately, my actual data between input and output are located in separated column and row (not side by side).
    Is there any other solution?
    Last edited by AliGW; 10-28-2022 at 03:10 AM. Reason: Please DON'T quote unnecessarily!

  6. #6
    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,540

    Re: Remove Duplicate using Formula

    Menem's formula goes into D6, not D5.

    Unfortunately, my actual data between input and output are located in separated column and row (not side by side).
    Provide a sample workbook instead of leaving us guessing. Do this NOW.
    Last edited by AliGW; 10-28-2022 at 03:11 AM.
    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.

  7. #7
    Registered User
    Join Date
    10-26-2022
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    17

    Re: Remove Duplicate using Formula

    Thanks all.

    Sorry for the confusion
    Pls refer to attached sample file.
    Attached Files Attached Files

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,649

    Re: Remove Duplicate using Formula

    Your new sample quite different with 1st post ("Red" repeat twice) that why my solution in #2 did not work for new sample.
    Try again:
    In D5:
    Please Login or Register  to view this content.
    Drag down

  9. #9
    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,540

    Re: Remove Duplicate using Formula

    In D5 copied down:

    =IFERROR(1/(1/INDEX($A$5:$A$16,MATCH(0,INDEX(COUNTIF($D$4:D4,$A$5:$A$16),0,0),0))),"")
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    10-26-2022
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    17

    Re: Remove Duplicate using Formula

    @AliGW

    Thanks alot!
    This could do the trick.
    Last edited by AliGW; 10-28-2022 at 05:52 AM.

  11. #11
    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,540

    Re: Remove Duplicate using Formula

    Glad to have helped.

    If you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered 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. Replies: 3
    Last Post: 04-26-2017, 08:01 PM
  2. Remove Duplicate Values Only - Not Row - No Formula?!
    By MartinGTC in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-05-2016, 04:01 PM
  3. Excel Formula to Remove Duplicate
    By azbi in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-15-2016, 03:28 AM
  4. Formula to remove duplicate words
    By ConfusedaboutVBA in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-20-2013, 10:06 PM
  5. [SOLVED] Remove duplicate and blank with formula
    By ssimo2 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2013, 03:40 PM
  6. How to remove formula from creating duplicate values?
    By Climaxgp in forum Excel General
    Replies: 3
    Last Post: 12-14-2009, 03:04 AM
  7. Formula to remove duplicate entries
    By VegasL in forum Excel General
    Replies: 1
    Last Post: 07-19-2007, 02:46 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