+ Reply to Thread
Results 1 to 4 of 4

Match unique values between two colums

  1. #1
    Registered User
    Join Date
    06-30-2007
    Posts
    5

    Match unique values between two colums

    Hello,

    I am completely ignorant about VBA, but I learn by doing, so I hope someone can help me with this.

    I need to list distinct values corresponding to a distinct value in another column. I was able to do it with an array formula : =INDEX(namedarray,MATCH(0,COUNTIF($B$1:B1,namedarray),0)) , but the several array formulas in the page really, really slow down processing.

    So, the there are two columns, say A and B, and I need to list all the instances where A and B are together as a unique combination.

    Please let me know if I've done a completely **** job at explaining what I need. Thank you.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Match unique values between two colums

    Hi IL_Lee,

    I'd use two helper columns to do this problem and it is very fast. See the attached to see some formulas.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Match unique values between two colums

    or, if you are looking for a match either way (A1=1, B1=2 OR A1=2, B1=1)...
    =IF(COUNTIFS($A$2:$A$25,B2,$B$2:$B$25,A2)>0,"Dup","")
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    06-30-2007
    Posts
    5

    Re: Match unique values between two colums

    Thank you for your answers. Now that I am at work, I will see if I can resolve my problem with the suggestions given. Thanks.

+ 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