+ Reply to Thread
Results 1 to 25 of 25

Finding duplicates between two lists

  1. #1
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Question Finding duplicates between two lists

    Hi,

    There are two list as followes:

    A1 A2
    2 6
    5 4
    7 8
    6 2
    5 4
    In A3 and A4 i would like to have duplicates sorted as followes:

    A3 A4
    2 6
    5 4
    Because 2,6 and 5,4 have occured twice same way or either way.

    Thanks

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists



    Are you sure about the cell addresses? They are all the same column. It also appears (by cell row numbers) you want the output to overwrite the source data.

    What am I missing?
    Dave

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding duplicates between two lists

    I think OP should read this first: ROW & COLUMN

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    @ sandy

    That was my first thought, too. OP's previous posts seem to indicate otherwise. I'm stumped.

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Finding duplicates between two lists

    I'd better shut up instead of writing something unpleasant

  6. #6
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    My mistake, it was supposed to be A1 B1 AND C1 OR C2 ETC SERIALLY.

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    If you mean like this


    A
    B
    C
    D
    1
    2
    6
    2
    6
    2
    5
    4
    5
    4
    3
    7
    8
    4
    6
    2
    5
    5
    4


    Then try this formula in C2 fill down and across until you get blanks. A simpler way has not occurred to me.

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

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    Also try array entering this one in C2 fill down and across. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  9. #9
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    This is simpler. Also array entered.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Hi, Dave thanks a million for saving my time and energy, that latest formula did the magic.
    cheers

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    You're welcome. Thanks for the feedback.

  12. #12
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    HI, Dave what if there are three coloumns, as followes:

    A1 A2 A3
    2 9 15
    3 6 7
    2 2 4
    5 5 6
    2 9 15
    and the resolution in A4, A5, A6 should be:

    A4 A5 A6
    2 9 15
    cheers

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    Just include the additional range in column C, array enter in D1, fill down and across until you get blanks.

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



    A
    B
    C
    D
    E
    F
    1
    2
    9
    15
    2
    9
    15
    2
    3
    6
    7
    3
    2
    2
    4
    4
    5
    5
    6
    5
    2
    9
    15

  14. #14
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Hi, Dave what if there are more than 100 rows, it not working for even for 15 rows atleast

  15. #15
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Finding duplicates between two lists

    Quote Originally Posted by LAVA2 View Post
    Hi, Dave what if there are more than 100 rows, it not working for even for 15 rows atleast
    Extend the range in FlameRetired's formula.

    PHP Code: 
    =IFERROR(INDEX(A$1:A$5,SMALL(IF(FREQUENCY($A$1:$A$5*$B$1:$B$5*$C$1:$C$5/

    (
    $A$1:$A$5+$B$1:$B$5+$C$1:$C$5),

    $A$1:$A$5*$B$1:$B$5*$C$1:$C$5/($A$1:$A$5+$B$1:$B$5+$C$1:$C$5))>1,ROW($A$1:$A$5)-

    MIN(ROW($A$1:$A$5))+1),ROWS($1:1))),""
    Last edited by Indi_Ra; 02-08-2018 at 02:47 PM.

  16. #16
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Hi, Indi_Ra thank you for the answer, i have still got couple of questions still unsolved.

    1. What if there are 300 rows for 3 coloumns A,B,C? FOR EXAMPLE:
    Please Login or Register  to view this content.
    the outcome should be like this

    Please Login or Register  to view this content.
    2. What if there are 300 rows for only 2 coloumns A,B?

    Cheers
    Last edited by LAVA2; 02-08-2018 at 04:53 PM.

  17. #17
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Finding duplicates between two lists

    You get answers for both question.

    1. What if there are 300 rows for 3 coloumns A,B,C? FOR EXAMPLE:
    in post 13 from FlameRetired and also mine answer post 15
    2. What if there are 300 rows for only 2 coloumns A,B?
    in post 9 from FlameRetired

    why you ask again? Did you try that formulas?

  18. #18
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    YES I HAVE TRIED SEVERAL TIMES USING THE FORMULAS:

    Please Login or Register  to view this content.
    AND

    Please Login or Register  to view this content.
    but however i try it won't work unless for very small ranges up to 10 not more than that.

    Any suggestions?

  19. #19
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Finding duplicates between two lists

    Are you array entering the formulas ... Ctrl + Shift + Enter?

  20. #20
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Yes Dave i have done Ctrl + Shift + Enter

    but still there is problem, whenever range is increased from 5 to 242 formula doesn't works.

    Please provide some suggestions

    thanks

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Finding duplicates between two lists

    Please attach your workbook.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  22. #22
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Hi, thanks for the suggestion , i have posted the workbook.

    Desperately waiting for your reply

    cheers
    Attached Files Attached Files

  23. #23
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Finding duplicates between two lists

    I hope you are not seriously expecting anyone to pick through this file and work out what you are trying to do. Please would you provide a much simplified version with your expected results clearly marked out? Thanks.

  24. #24
    Banned User!
    Join Date
    10-29-2012
    Location
    Europe
    MS-Off Ver
    2013, 2016
    Posts
    318

    Re: Finding duplicates between two lists

    @LAVA2

    You don't say you have many blank rows (cells).
    Remove that empty row and all formulas work well.

    You have this formula:

    =IFERROR(INDEX(C$1:C$236,SMCLL(IF(FREQUENCY($C$1:$C$236*$D$1:$D$236/($C$1:$C$236+$D$1:$D$236),$C$1:$C$236*$D$1:$D$236/($C$1:$C$236+$D$1:$D$236))>1,ROW($C$1:$C$236)-MIN(ROW($C$1:$C$236))+1),ROWS($1:1))),"")

    Of course that formula don't work!!!! That SMCLL should be SMALL

    Next time copy, carefully, formulas from this site, don't write yourself.
    Last edited by Indi_Ra; 02-09-2018 at 10:44 AM.

  25. #25
    Forum Contributor
    Join Date
    12-02-2013
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    112

    Re: Finding duplicates between two lists

    Dear Indi_Ra Thank you very very much for solving this issue. Yes next time i should be more considerate and careful in such delicate matters.

    Thanks again

+ 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. Finding Duplicates - Then finding delta
    By meppwc in forum Excel General
    Replies: 1
    Last Post: 09-30-2015, 04:10 PM
  2. Replies: 2
    Last Post: 12-27-2013, 09:24 AM
  3. 12 lists into one while removing duplicates, how?
    By Taxster in forum Excel General
    Replies: 4
    Last Post: 12-02-2013, 08:10 AM
  4. [SOLVED] Removing duplicates from two different lists
    By percyth1 in forum Excel General
    Replies: 2
    Last Post: 04-03-2012, 10:11 PM
  5. Merging two lists, finding and keeping only duplicates
    By SilverdaleJB in forum Excel General
    Replies: 3
    Last Post: 10-23-2010, 10:06 AM
  6. Remove duplicates from both Lists
    By Sircrayon in forum Excel General
    Replies: 1
    Last Post: 09-16-2010, 10:38 AM
  7. Duplicates over two lists
    By mc515 in forum Excel General
    Replies: 1
    Last Post: 04-10-2008, 10:40 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