+ Reply to Thread
Results 1 to 5 of 5

Removing duplicates as a set of 2 column cells

  1. #1
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Removing duplicates as a set of 2 column cells

    Hello Friends

    The Inputs are in Cells C5:D37 (Column C and D) and need to remove the dulicates in the light yellow cells F5:G14 by formula.

    The duplicates are repeated in the rows in both columns as a set.

    thanks in advance.
    Attached Files Attached Files
    Sekar

  2. #2
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,360

    Re: Removing duplicates as a set of 2 column cells

    For first column, put this on F5 and copied down until blanks:
    =IFERROR(VLOOKUP(G5,CHOOSE({1\2},$D$5:$D$50,$C$5:$C$50),2,0),"")

    For Second Column, put this on G5 and ENTER as array formula
    =IFERROR(INDEX($D$5:$D$50,AGGREGATE(15,6,IF(FREQUENCY(IFERROR(MATCH(IF($D$5:$D$50<>"",$D$5:$D$50),$D$5:$D$50,0),""),ROW($D$5:$D$50)-ROW($D$5)+1),ROW($D$5:$D$50)-ROW($D$5)+1),ROWS($A$1:A1))),"")
    Attached Files Attached Files

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Removing duplicates as a set of 2 column cells

    An array formula in F5, copied across and down:

    =IFERROR(INDEX(C:C,SMALL(IF(COUNTIFS($F$4:$F4,$C$5:$C$32,$G$4:$G4,$D$5:$D$32)=0,ROW($C$5:$C$32),""),1)),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,513

    Re: Removing duplicates as a set of 2 column cells

    Try this non ARRAY formula.
    In K5, then dragged across L17, till blank cells are seen.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  5. #5
    Forum Contributor
    Join Date
    02-15-2016
    Location
    India
    MS-Off Ver
    2016
    Posts
    657

    Re: Removing duplicates as a set of 2 column cells

    Thanks to kvsrinivasamurthy, Glenn and Azumi

    These formulas workign fine and helped me to save the time.

    I will use the Srinivasamurthy's Non array formula

    Thanks again to all.

+ 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. [SOLVED] removing duplicates only within duplicates on another column
    By eculver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-10-2016, 08:08 PM
  2. [SOLVED] Removing duplicates from column A while keeping their respective values from column B
    By joel.mugabe in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-19-2016, 02:38 AM
  3. [SOLVED] Removing duplicates with rules in another column
    By guy13 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-22-2014, 07:47 AM
  4. Removing duplicates from 2 Column Listbox
    By pratyathedon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-16-2013, 07:39 AM
  5. Removing Duplicates in one column and summarizing data
    By guard23 in forum Excel General
    Replies: 5
    Last Post: 02-09-2012, 03:33 PM
  6. Replies: 4
    Last Post: 09-05-2011, 01:06 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