+ Reply to Thread
Results 1 to 3 of 3

Find numbers that dont exists in both columns

  1. #1
    Registered User
    Join Date
    09-15-2006
    Posts
    31

    Find numbers that dont exists in both columns

    Hi!

    I have two large columns with different numbers, example:

    Column A Column B
    100121 100121
    102131 102131
    251154 251154
    565612 565612
    656512 656512
    566564 566564
    121211
    565444

    I want to create a macro or function that compare these 2 columns and returns the numbers that dont exists in both columns.

    In the example above the function/macro would return: 121211
    565444
    Help is very appreciated!

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,446
    Paste this

    =IF(ISERROR(MATCH(B1,A:A,0)),"Not in both columns","In both columns")

    into cell C1 and copy down

    hth

    Dave

  3. #3
    Registered User
    Join Date
    09-15-2006
    Posts
    31
    Works perfect, thank you very much

+ 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