+ Reply to Thread
Results 1 to 9 of 9

count

Hybrid View

  1. #1
    LatinViolin
    Guest

    count

    there are 3 values in a column. they are 2, 2, 3. what formula or function
    do i use to determine how many different values exist in this set. the
    answer is 2. there are two different values, 2 & 3. please help
    --
    cell man

  2. #2
    Ken Wright
    Guest

    Re: count

    =SUMPRODUCT(1/COUNTIF(Range,Range))

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ----------------------------------------------------------------------------
    It's easier to beg forgiveness than ask permission :-)
    ----------------------------------------------------------------------------

    "LatinViolin" <[email protected]> wrote in message
    news:[email protected]...
    > there are 3 values in a column. they are 2, 2, 3. what formula or

    function
    > do i use to determine how many different values exist in this set. the
    > answer is 2. there are two different values, 2 & 3. please help
    > --
    > cell man




  3. #3
    LatinViolin
    Guest

    Re: count

    thanks for your answer. great!

    "Ken Wright" wrote:

    > =SUMPRODUCT(1/COUNTIF(Range,Range))
    >
    > --
    > Regards
    > Ken....................... Microsoft MVP - Excel
    > Sys Spec - Win XP Pro / XL 97/00/02/03
    >
    > ----------------------------------------------------------------------------
    > It's easier to beg forgiveness than ask permission :-)
    > ----------------------------------------------------------------------------
    >
    > "LatinViolin" <[email protected]> wrote in message
    > news:[email protected]...
    > > there are 3 values in a column. they are 2, 2, 3. what formula or

    > function
    > > do i use to determine how many different values exist in this set. the
    > > answer is 2. there are two different values, 2 & 3. please help
    > > --
    > > cell man

    >
    >
    >


  4. #4
    JulieD
    Guest

    Re: count

    Hi

    if your data is only numeric and doesn't contain blanks you can use the
    following formula from Chip Pearson's web site
    =SUM(N(FREQUENCY(A5:A7,A5:A7)>0))

    where A5:A7 is the range of your values.

    If you will be dealing with text or your data could have blanks in it -
    check out Chip's page on duplicates at:
    http://www.cpearson.com/excel/duplicat.htm
    - about half way down you'll find an article on counting unique entries in a
    range.

    Cheers
    JulieD


    "LatinViolin" <[email protected]> wrote in message
    news:[email protected]...
    > there are 3 values in a column. they are 2, 2, 3. what formula or
    > function
    > do i use to determine how many different values exist in this set. the
    > answer is 2. there are two different values, 2 & 3. please help
    > --
    > cell man




  5. #5
    LatinViolin
    Guest

    Re: count

    thanks for your answer

    "JulieD" wrote:

    > Hi
    >
    > if your data is only numeric and doesn't contain blanks you can use the
    > following formula from Chip Pearson's web site
    > =SUM(N(FREQUENCY(A5:A7,A5:A7)>0))
    >
    > where A5:A7 is the range of your values.
    >
    > If you will be dealing with text or your data could have blanks in it -
    > check out Chip's page on duplicates at:
    > http://www.cpearson.com/excel/duplicat.htm
    > - about half way down you'll find an article on counting unique entries in a
    > range.
    >
    > Cheers
    > JulieD
    >
    >
    > "LatinViolin" <[email protected]> wrote in message
    > news:[email protected]...
    > > there are 3 values in a column. they are 2, 2, 3. what formula or
    > > function
    > > do i use to determine how many different values exist in this set. the
    > > answer is 2. there are two different values, 2 & 3. please help
    > > --
    > > cell man

    >
    >
    >


  6. #6
    John Mansfield
    Guest

    RE: count

    The formula below assumes your data is in the range A1:A3. Enter this
    formula as an array (select the range A1:A3, put the formula in the formula
    bar, and press CTRL - SHIFT - ENTER at the same time):

    =SUM(IF(FREQUENCY(A1:A3,A1:A3)>0,1))

    This Microsoft Knowledgebse article explains things a little more:

    http://support.microsoft.com/kb/q268001/

    ----
    Regards,
    John Mansfield
    http://www.pdbook.com
    "LatinViolin" wrote:

    > there are 3 values in a column. they are 2, 2, 3. what formula or function
    > do i use to determine how many different values exist in this set. the
    > answer is 2. there are two different values, 2 & 3. please help
    > --
    > cell man


  7. #7
    RagDyeR
    Guest

    Re: count

    If the column might contain blank cells, try this:

    =SUMPRODUCT((A1:A30<>"")/COUNTIF(A1:A30,A1:A30&""))
    --

    HTH,

    RD
    ==============================================
    Please keep all correspondence within the Group, so all may benefit!
    ==============================================


    "LatinViolin" <[email protected]> wrote in message
    news:[email protected]...
    there are 3 values in a column. they are 2, 2, 3. what formula or function
    do i use to determine how many different values exist in this set. the
    answer is 2. there are two different values, 2 & 3. please help
    --
    cell man



  8. #8
    LatinViolin
    Guest

    Re: count

    it works perfect. that's all i needed.

    "RagDyeR" wrote:

    > If the column might contain blank cells, try this:
    >
    > =SUMPRODUCT((A1:A30<>"")/COUNTIF(A1:A30,A1:A30&""))
    > --
    >
    > HTH,
    >
    > RD
    > ==============================================
    > Please keep all correspondence within the Group, so all may benefit!
    > ==============================================
    >
    >
    > "LatinViolin" <[email protected]> wrote in message
    > news:[email protected]...
    > there are 3 values in a column. they are 2, 2, 3. what formula or function
    > do i use to determine how many different values exist in this set. the
    > answer is 2. there are two different values, 2 & 3. please help
    > --
    > cell man
    >
    >
    >


  9. #9
    LatinViolin
    Guest

    Re: count



    "RagDyeR" wrote:

    > If the column might contain blank cells, try this:
    >
    > =SUMPRODUCT((A1:A30<>"")/COUNTIF(A1:A30,A1:A30&""))
    > --
    >
    > HTH,
    >
    > RD
    > ==============================================
    > Please keep all correspondence within the Group, so all may benefit!
    > ==============================================
    >
    >
    > "LatinViolin" <[email protected]> wrote in message
    > news:[email protected]...
    > there are 3 values in a column. they are 2, 2, 3. what formula or function
    > do i use to determine how many different values exist in this set. the
    > answer is 2. there are two different values, 2 & 3. please help
    > --
    > cell man
    >
    >
    >


+ 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