+ Reply to Thread
Results 1 to 6 of 6

Compare Colums

  1. #1
    Registered User
    Join Date
    05-01-2011
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    29

    Compare Colums

    Hi, I have a worksheet that has two lists of MAC address’s I would like a formula for excel to compare mac address’s in column A to column B and flag up any which are not in column A

    I.E

    Colum A Column B In List A
    00:EE:EE:EE:41 00:EE:EE:EE:12 Match Found
    00:EE:EE:EE:12 00:EE:EE:EE:00 Match Not Found
    00:EE:EE:EE:13 00:EE:EE:EE:13 Match Found
    00:EE:EE:EE:11 00:EE:EE:EE:11 Match Found

    Any Idea's as to the best way to do this

    Thank You

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Compare Colums

    try =COUNTIF(A:A, B1)>0 this will give you TRUE/FALSE

    For Match foun add one more IF statement

    =IF(COUNTIF(A:A, B1)>0, "Match found", "Match not found")
    Never use Merged Cells in Excel

  3. #3
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: Compare Colums

    Not that it matters much, but you can do without the >0 condition

    Please Login or Register  to view this content.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,053

    Re: Compare Colums

    =true(), true()

  5. #5
    Valued Forum Contributor mahju's Avatar
    Join Date
    11-27-2010
    Location
    Pakistan, Faisalabad
    MS-Off Ver
    Excel 2010 plus
    Posts
    730

    Re: Compare Colums

    Hi
    If first colomn is in A5 and 2nd is in B5 then

    May be this one

    Please Login or Register  to view this content.
    Regards
    Mark the thread as solved if you are satisfied with the answer.


    In your first post under the thread tools.

    Mahju

  6. #6
    Registered User
    Join Date
    05-01-2011
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    29

    Re: Compare Colums

    Quote Originally Posted by zbor View Post
    try =COUNTIF(A:A, B1)>0 this will give you TRUE/FALSE

    For Match foun add one more IF statement

    =IF(COUNTIF(A:A, B1)>0, "Match found", "Match not found")
    Is there any way to have it return N/A if there is no MAC address In List A

    I.E My Setup
    List A Fomula to compare List A with list B
    IP Address: Device Name: Mac Address: MAC Check:
    192.168.1.1 Dlink 00:11:11:111:11:11 Match Found
    192.168.1.2 No Device N/A

    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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