+ Reply to Thread
Results 1 to 4 of 4

Count Unique Values in a Column that are not in adjacent Column

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Count Unique Values in a Column that are not in adjacent Column

    I need to count the number of unique values that appear in column A but not column B. There are blank cells to contend with and there are values in column B that do not appear in column A. Any ideas?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count Unique Values in a Column that are not in adjacent Column

    Post some sample data and tell us what result you expect.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Count Unique Values in a Column that are not in adjacent Column

    Sample Data:

    Sample Data.jpg

    The result should be 3. The highlighted values do not appear in column B and there are 3 unique values in the set.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Count Unique Values in a Column that are not in adjacent Column

    Try this array formula**:

    =SUM(IF(FREQUENCY(IF(ISNA(MATCH(A1:A21,B1:B21,0)),IF(A1:A21<>"",MATCH(A1:A21,A1:A21,0))),ROW(A1:A21)-ROW(A1)+1),1))

    ** array formulas need to be entered using the key
    combination of CTRL,SHIFT,ENTER (not just ENTER).
    Hold down both the CTRL key and the SHIFT key
    then hit ENTER.

+ 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. Count adjacent column of unique data
    By stevenoob in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-16-2013, 10:27 PM
  2. Replies: 8
    Last Post: 05-15-2013, 04:50 PM
  3. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  4. [SOLVED] Vlookup and Count Unique Records in adjacent column
    By gjohn282 in forum Excel General
    Replies: 3
    Last Post: 06-26-2012, 02:17 AM
  5. Replies: 3
    Last Post: 03-17-2012, 11:32 PM

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