+ Reply to Thread
Results 1 to 4 of 4

Counting unique values

  1. #1
    Registered User
    Join Date
    04-12-2006
    Posts
    7

    Counting unique values

    I have a series of names in column A and corresponding dates in column B. I need to find the number of unique dates (in serial form) corresponding to a name.

    Col A Col B

    Jones 38822
    Smith 38822
    Walker 38822
    Jones 38822
    Jones 38823
    Jones 38823

    In cell C1 I need to have the days associated with Jones, in this case, 2.

  2. #2
    Domenic
    Guest

    Re: Counting unique values

    Try...

    =COUNT(1/FREQUENCY(IF(A1:A6="Jones",IF(B1:B6<>"",B1:B6)),IF(A1:A6="Jones"
    ,IF(B1:B6<>"",B1:B6))))

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    JK57 <[email protected]> wrote:

    > I have a series of names in column A and corresponding dates in column
    > B. I need to find the number of unique dates (in serial form)
    > corresponding to a name.
    >
    > Col A Col B
    >
    > Jones 38822
    > Smith 38822
    > Walker 38822
    > Jones 38822
    > Jones 38823
    > Jones 38823
    >
    > In cell C1 I need to have the days associated with Jones, in this case,
    > 2.


  3. #3
    Marcelo
    Guest

    RE: Counting unique values

    Hi Jk,

    =sumproduct(--(a2:a100="Jones")*(b2:b100=38822))

    hth
    regards from Brazil
    Marcelo

    "JK57" escreveu:

    >
    > I have a series of names in column A and corresponding dates in column
    > B. I need to find the number of unique dates (in serial form)
    > corresponding to a name.
    >
    > Col A Col B
    >
    > Jones 38822
    > Smith 38822
    > Walker 38822
    > Jones 38822
    > Jones 38823
    > Jones 38823
    >
    > In cell C1 I need to have the days associated with Jones, in this case,
    > 2.
    >
    >
    > --
    > JK57
    > ------------------------------------------------------------------------
    > JK57's Profile: http://www.excelforum.com/member.php...o&userid=33430
    > View this thread: http://www.excelforum.com/showthread...hreadid=559010
    >
    >


  4. #4
    Registered User
    Join Date
    04-12-2006
    Posts
    7
    Quote Originally Posted by Domenic
    Try...

    =COUNT(1/FREQUENCY(IF(A1:A6="Jones",IF(B1:B6<>"",B1:B6)),IF(A1:A6="Jones"
    ,IF(B1:B6<>"",B1:B6))))

    ....confirmed with CONTROL+SHIFT+ENTER, not just ENTER.

    Hope this helps!

    In article <[email protected]>,
    JK57 <[email protected]> wrote:

    > I have a series of names in column A and corresponding dates in column
    > B. I need to find the number of unique dates (in serial form)
    > corresponding to a name.
    >
    > Col A Col B
    >
    > Jones 38822
    > Smith 38822
    > Walker 38822
    > Jones 38822
    > Jones 38823
    > Jones 38823
    >
    > In cell C1 I need to have the days associated with Jones, in this case,
    > 2.
    That worked, thanks.

+ 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