+ Reply to Thread
Results 1 to 7 of 7

Remove duplicates for Tier 3 category

  1. #1
    Registered User
    Join Date
    03-21-2024
    Location
    New Delhi
    MS-Off Ver
    Office 365
    Posts
    2

    Remove duplicates for Tier 3 category

    Data
    Tier Category Name
    Tier 1 Tom
    Tier 1 Tom
    Tier 1 Harry
    Tier 1 Rafa
    Tier 1 Daniel
    Tier 2 Tom
    Tier 2 Harry
    Tier 2 Harry
    Tier 2 CAN ATALAY
    Tier 2 HANN-WEN SHEU
    Tier 3 Oktar
    Tier 3 Miria
    Tier 3 Harry
    Tier 3 CAN ATALAY
    Tier 3 Tom
    Tier 3 Rafa
    Tier 3 Oktar

    Required Output
    Tier Category Name
    Tier 1 Tom
    Tier 1 Tom
    Tier 1 Harry
    Tier 1 Rafa
    Tier 1 Daniel
    Tier 2 Tom
    Tier 2 Harry
    Tier 2 Harry
    Tier 2 CAN ATALAY
    Tier 2 HANN-WEN SHEU
    Tier 3 Oktar
    Tier 3 Miria
    Tier 3 Oktar

    For simplification just using 2 columns from the whole table, column one has Tier category and Column 2 has corresponding names. Trying to remove duplicates From the table for Tier C, for the names which are present in Tier 1 or Tier 2.

    Tier 1,Tier 2 , Tier 3 can have duplicates. But a name present in Tier 2 and Tier 1 should not repeat in Tier 3.

    Trying to automate this when ever new data get pasted in this table. Automatically it should remove Tier 1 and Tier 2 names which repeated for only Tier 3 category and return the distinct names for Tier 3. I tried the following. Need to complete the formula.

    IF(COUNTIFS($B$2:B2,B2,$A$2:A2,"Tier A")>=1,"Keep","Remove")
    IF(COUNTIFS($B$2:B100,B100,$A$2:A100,"Tier B")>=1,"Keep","Remove")

    Tier 1 has Tom and Tier 2 has Harry if you notice as Tier 1 and Tier 2 can have duplicate names/rows i.e., no need to remove the rows we can keep the exact for tier 1 and 2. But specifically for tier C, I need to consider only unique names it can also have duplicate names present in tier c itself that's why Tier 3 has Oktar, but cannot have names which are already occurred in Tier 1 or 2 hence all other names removed. Hope this helps.

    I am not sure if my approach was correct. I was intending to check the names in Tier 1 and Tier 2 from top to bottom and compare with Tier 3 names, where Tier 3 will exclude the names which can be found in Tier 1 and 2 and return the unique names present in Tier 3
    Attached Files Attached Files
    Last edited by Tony1990; 03-21-2024 at 03:03 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove duplicates for Tier 3 category

    Proposed solution.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Remove duplicates for Tier 3 category

    @DJ: nice. I got the first part but struggled with the Tier 3 bit. Only got as far as isolating Miria
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  4. #4
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: Remove duplicates for Tier 3 category

    Tks TMS!

  5. #5
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,290

    Re: Remove duplicates for Tier 3 category

    You're welcome.

  6. #6
    Registered User
    Join Date
    03-21-2024
    Location
    New Delhi
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Remove duplicates for Tier 3 category

    Thanks DJ

  7. #7
    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. 2504 (Windows 11 Home 24H2 64-bit)
    Posts
    90,658

    Re: Remove duplicates for Tier 3 category

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue 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 each of those who offered help.
    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.

+ 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. Compare lists of URLs for duplicates, and remove duplicates
    By mrfranklin in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2021, 02:54 AM
  2. Replies: 6
    Last Post: 11-27-2018, 07:17 AM
  3. Replies: 6
    Last Post: 10-19-2018, 02:44 PM
  4. Hierarchy chart - Connect 1st tier to 3rd tier
    By bjcowen9000 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 06-22-2014, 05:24 AM
  5. Replies: 2
    Last Post: 09-14-2012, 04:31 AM
  6. Replies: 5
    Last Post: 02-28-2012, 02:52 PM
  7. Replies: 2
    Last Post: 03-20-2011, 11:19 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