+ Reply to Thread
Results 1 to 8 of 8

How can I count the number of repeats in a list of data?

Hybrid View

  1. #1
    SouthCarolina
    Guest

    How can I count the number of repeats in a list of data?

    I am trying to determine when I have repeats in a list of data. This is the
    situation:

    I have a list of data that contains numbers 1-99. I am trying to determine
    when the numbers 1 and 2 appear in the same list and then count those
    occurences. I have found a round about way of doing it, but do you know of a
    faster way? Any help would be greatly appreciated. Thank you.

  2. #2
    Toppers
    Guest

    RE: How can I count the number of repeats in a list of data?

    =Countif(A:A,1) will count number of 1s in column A

    HTH

    "SouthCarolina" wrote:

    > I am trying to determine when I have repeats in a list of data. This is the
    > situation:
    >
    > I have a list of data that contains numbers 1-99. I am trying to determine
    > when the numbers 1 and 2 appear in the same list and then count those
    > occurences. I have found a round about way of doing it, but do you know of a
    > faster way? Any help would be greatly appreciated. Thank you.


  3. #3
    SouthCarolina
    Guest

    RE: How can I count the number of repeats in a list of data?

    Thank you for your help. I can count the number of times the number 1
    appears in the column with no problem. My problems start when I try to count
    the number of 1's and 2's that occur simultaneously. I will continue to work
    at it.

    "Toppers" wrote:

    > =Countif(A:A,1) will count number of 1s in column A
    >
    > HTH
    >
    > "SouthCarolina" wrote:
    >
    > > I am trying to determine when I have repeats in a list of data. This is the
    > > situation:
    > >
    > > I have a list of data that contains numbers 1-99. I am trying to determine
    > > when the numbers 1 and 2 appear in the same list and then count those
    > > occurences. I have found a round about way of doing it, but do you know of a
    > > faster way? Any help would be greatly appreciated. Thank you.


  4. #4
    Toppers
    Guest

    RE: How can I count the number of repeats in a list of data?

    If the 1s and 2s are independent , then is not simply:

    =Countif(A:A,1)+countif(A:A,2)

    OR

    =if(and(countif(A:A,1)>0,countif(A:A,2)>0),"both occur","only one or none
    occur")

    Or have I completely missed the point (again!)

    "SouthCarolina" wrote:

    > Thank you for your help. I can count the number of times the number 1
    > appears in the column with no problem. My problems start when I try to count
    > the number of 1's and 2's that occur simultaneously. I will continue to work
    > at it.
    >
    > "Toppers" wrote:
    >
    > > =Countif(A:A,1) will count number of 1s in column A
    > >
    > > HTH
    > >
    > > "SouthCarolina" wrote:
    > >
    > > > I am trying to determine when I have repeats in a list of data. This is the
    > > > situation:
    > > >
    > > > I have a list of data that contains numbers 1-99. I am trying to determine
    > > > when the numbers 1 and 2 appear in the same list and then count those
    > > > occurences. I have found a round about way of doing it, but do you know of a
    > > > faster way? Any help would be greatly appreciated. Thank you.


  5. #5
    SouthCarolina
    Guest

    RE: How can I count the number of repeats in a list of data?

    Sorry for not making this clear the first time, but the 1's and 2's are
    dependent upon one another. I am trying to track the frequency of a set of
    machines being off-line. For example, I am trying to determine when machines
    1 and 2 were offline at the same time. I hope this clears up any confusion.
    I am sorry that I was not clearer the first time.

    "Toppers" wrote:

    > If the 1s and 2s are independent , then is not simply:
    >
    > =Countif(A:A,1)+countif(A:A,2)
    >
    > OR
    >
    > =if(and(countif(A:A,1)>0,countif(A:A,2)>0),"both occur","only one or none
    > occur")
    >
    > Or have I completely missed the point (again!)
    >
    > "SouthCarolina" wrote:
    >
    > > Thank you for your help. I can count the number of times the number 1
    > > appears in the column with no problem. My problems start when I try to count
    > > the number of 1's and 2's that occur simultaneously. I will continue to work
    > > at it.
    > >
    > > "Toppers" wrote:
    > >
    > > > =Countif(A:A,1) will count number of 1s in column A
    > > >
    > > > HTH
    > > >
    > > > "SouthCarolina" wrote:
    > > >
    > > > > I am trying to determine when I have repeats in a list of data. This is the
    > > > > situation:
    > > > >
    > > > > I have a list of data that contains numbers 1-99. I am trying to determine
    > > > > when the numbers 1 and 2 appear in the same list and then count those
    > > > > occurences. I have found a round about way of doing it, but do you know of a
    > > > > faster way? Any help would be greatly appreciated. Thank you.


  6. #6
    vezerid
    Guest

    Re: How can I count the number of repeats in a list of data?

    Then you probably need something like:

    =SUMPRODUCT((A1:A100=1)*(B1:B100=2))

    HTH
    Kostis Vezerides


+ 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