+ Reply to Thread
Results 1 to 2 of 2

Finding common column values with duplicate numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    houston
    MS-Off Ver
    Excel 2003
    Posts
    1

    Finding common column values with duplicate numbers

    Hi
    i have two columns where in i have a field Region ID coming from two diff tables. Now i need to find out the common Region ID values between Table 1 and Table 2. InTable 2, i have duplicate Region ID's. How can i find out the common values between the two columns with duplicate values also.

    I have attached the file with the values.

    Pls help me what can i do.

    Thanks
    Rita
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Finding common column values with duplicate numbers

    It would help if you outlined expected results.

    If you're saying you want to list all items from Table2 that appear in Table1 including any duplicated entries then:

    D1:
    =SUMPRODUCT(COUNTIF($A$3:$A$11,$B$3:$B$38))
    this gives total no. of entries to be retrieved
    then

    D3:
    =IF(ROWS(D$3:D3)>$D$1,"",SMALL(IF($B$3:$B$38>=$A$3,IF(LOOKUP($B$3:$B$38,$A$3:$A$11)=$B$3:$B$38,$B$3:$B$38)),ROWS(D$3:D3)))
    confirmed with CTRL + SHIFT + ENTER (enter alone will not suffice)
    copied down to D38
    the above is based on sample file in which values in A & B are sorted in Ascending order.

    edit: above revised to account for possibility that first List2 value is lower that first List1 value
    Last edited by DonkeyOte; 10-13-2010 at 06:14 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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