+ Reply to Thread
Results 1 to 3 of 3

compare two columns and count the differences

  1. #1
    Registered User
    Join Date
    09-25-2012
    Location
    Greenwood, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    2

    compare two columns and count the differences

    I have a worksheet that has two columns. Both columns have city and state name in them. What I need to do is compare column a to column b and come up with the number of city/states that are in column a but not in column b. Can you help?

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: compare two columns and count the differences

    One way.

    I n C1 put this and copy down. Thia will be a helper and hidden column.

    =IF(A1<>"",COUNTIF(B:B,A1),"")

    Then use this to get your result.

    =COUNTIF(C:C,0)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --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.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    09-25-2012
    Location
    Greenwood, Arkansas
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: compare two columns and count the differences

    That works but I am supposed to do it using a single formula. Any other suggestions?

+ 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