+ Reply to Thread
Results 1 to 6 of 6

Match identical numbers in two columns and display unmatched results

  1. #1
    Registered User
    Join Date
    02-25-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Exclamation Match identical numbers in two columns and display unmatched results

    Hi all,

    Please help me with this problem. Ive been searching answers for couple days. Unfortunately, none of formula or macro works.

    I have two columns with hundreds of identical data and i need to match in column A with an identical data in column B.

    The tricky thing is there are many identical data. Each identical data needs to match with another identical data in column B and then, remove matched data.

    So, i need to display whats left unmatched in column A and in column B.Match Identical Data.xlsx

    Here is an example:

    Column A

    100
    200
    300
    400
    100


    Column B

    400
    200
    300
    100
    500


    Ending results should be showing unmatched "Column A: 100" & "column B:500"

    I also attached a excel if it helps.

    Thanks so much if you guys can help me with this one!!!

  2. #2
    Forum Expert
    Join Date
    01-25-2011
    Location
    Belgium, Alveringem
    MS-Off Ver
    Excel 2003, 2007, 365
    Posts
    1,418

    Re: Match identical numbers in two columns and display unmatched results

    Please Login or Register  to view this content.
    Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    02-25-2014
    Location
    Canada
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Match identical numbers in two columns and display unmatched results

    Thanks Bsalv for fast responding. After I run the macro, excel only display text "column 1" and "column 2", nothing else. Should I do anything before I run this macro?


    Quote Originally Posted by bsalv View Post
    Please Login or Register  to view this content.

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

    Re: Match identical numbers in two columns and display unmatched results

    Hi Curry,

    I don't think you need VBA for this problem. I also think your example is wrong. See the attached. The two helper columns show what is unmatched in the other column. Sort these from low to high and delete all but the Zero. That is your answer.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  5. #5
    Valued Forum Contributor
    Join Date
    01-19-2010
    Location
    Melbourne Australia
    MS-Off Ver
    latest is Excel 2016. have older versions
    Posts
    624

    Re: Match identical numbers in two columns and display unmatched results

    Hi MarvinP,

    I also thought the OP example was wrong but then I reread it carefully and convinced myself the expect result made sense

    The key in OP is to "clear the two cells in col A & B" when a match is found. This would leave 500 in Col B and the second instance of 100 in Col A, by the time you get to the second 100 in col A there will not be a match in col b

    Having said that I haven't done any work on how I might solve the problem, initial thought was a loop down both cols but I suspect that might be a bit slow if there are lots of entries to process.

    Might have a play later in the evening if there hasn't been a solution posted by then

    jmac

  6. #6
    Valued Forum Contributor
    Join Date
    03-21-2013
    Location
    cyberia
    MS-Off Ver
    Excel 2007
    Posts
    457

    Re: Match identical numbers in two columns and display unmatched results

    hi currycai,

    if your data start from cells(31) in cols A and B (as in your download file),
    does running this macro give what you want?
    Please Login or Register  to view this content.

+ 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] Access unmatched query returning Blank Results
    By jonboy6257 in forum Access Tables & Databases
    Replies: 4
    Last Post: 12-04-2013, 10:46 AM
  2. [SOLVED] Display search results inluding results that match patrially
    By RichTea88 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-06-2013, 08:52 AM
  3. Compare cells and display unmatched
    By gauca001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-09-2012, 01:55 AM
  4. [SOLVED] How do I match identical values in 2 columns and then sort?
    By Godswatch in forum Excel General
    Replies: 1
    Last Post: 11-09-2005, 03:00 PM
  5. column filtering to match identical numbers
    By sammc2 in forum Excel General
    Replies: 1
    Last Post: 07-14-2005, 06:59 PM

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