+ Reply to Thread
Results 1 to 6 of 6

Count unique values in columns based on 2 criteria

  1. #1
    Registered User
    Join Date
    02-01-2013
    Location
    West Hartford, CT
    MS-Off Ver
    Excel 2013
    Posts
    8

    Count unique values in columns based on 2 criteria

    Excel 2013
    I am trying to calculate the following values. The spreadsheet is attached.

    Unique Emails 7 (formula I am using is below)
    count of phones without emails (answer is 1)
    count of UNIQUE emails without phones answer is 3
    count of UNIQUE emails with phones answer is 4



    Column A Column B
    [email protected] (212) 888-8888
    [email protected]
    ddd@gmail
    [email protected] (203) 555-1212
    [email protected] (203) 555-1212
    (312) 888-2222
    [email protected]
    [email protected] (212) 999-7777
    [email protected]
    [email protected] (312) 444-2222


    =SUM(IF(FREQUENCY(IF(LEN(A6:A15)>0,MATCH(A6:A15,A6:A15,0),""), IF(LEN(A6:A15)>0,MATCH(A6:A15,A6:A15,0),""))>0,1))
    Attached Files Attached Files
    Last edited by t83357; 08-09-2013 at 10:32 PM. Reason: formatting table looked bad. wrong version of excel listed

  2. #2
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Count unique values in columns based on 2 criteria

    based on your sample file - all to be ARRAY-entered, except the one with COUNTIFS:

    Unique Emails

    Please Login or Register  to view this content.
    count of phones without emails

    Please Login or Register  to view this content.
    count of UNIQUE emails without phones

    Please Login or Register  to view this content.
    count of UNIQUE emails with phones

    Please Login or Register  to view this content.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  3. #3
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Count unique values in columns based on 2 criteria

    Please could you help me, formulas you used is not working for me.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Count unique values in columns based on 2 criteria

    shy, Im sorry to have to do this, but...
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    08-11-2012
    Location
    bengalur
    MS-Off Ver
    Excel 2003, 2007
    Posts
    152

    Re: Count unique values in columns based on 2 criteria

    Sorry for that... I will start this in new thread...

  6. #6
    Registered User
    Join Date
    02-01-2013
    Location
    West Hartford, CT
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: Count unique values in columns based on 2 criteria

    Hi, should I start a new post. One of the formulas doesn't seem to be working. The answer should be 3 but it is coming up as 5. Should I start a new thread?

    I created a new sheet with easier data to follow.
    Attached Files Attached Files

+ 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 unique values of 2 columns with criteria
    By kbalasub in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-16-2013, 12:15 PM
  2. Count unique values across 2 columns with multiple criteria
    By Skywalker01 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-29-2012, 08:04 AM
  3. Count unique values based on several criteria
    By evilgrin in forum Excel General
    Replies: 2
    Last Post: 10-10-2010, 03:50 PM
  4. Count unique values based on matching criteria
    By gromitw in forum Excel General
    Replies: 9
    Last Post: 01-10-2007, 08:59 AM
  5. how to count unique values in excel based on criteria
    By Jorge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2005, 10:06 AM

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