Closed Thread
Results 1 to 5 of 5

Counting and colour coding ranges of occurances

  1. #1
    ConfusedinCalgary
    Guest

    Counting and colour coding ranges of occurances

    a have a list of employee ID numbers and need to count how many times they
    occur withing certain ranges. For example: if one occurs between 5-10 times
    I want all occurances highlighted in yellow, if it occurs between 10-15 times
    I want all occurances highlighted in blue, and if it occurs more than 15
    times I want all occurances highlighted in red. Any suggestions?

  2. #2
    Alan
    Guest

    Re: Counting and colour coding ranges of occurances

    You can use conditional formatting using these formulas for the three
    conditions.

    =AND(COUNTIF($A$1:$A$30,A1)>5,COUNTIF($A$1:$A$30,A1)<11)
    =AND(COUNTIF($A$1:$A$30,A1)>10,COUNTIF($A$1:$A$30,A1)<16)
    =COUNTIF($A$1:$A$30,A1)>15

    Regards,
    Alan.

    "ConfusedinCalgary" <[email protected]> wrote in
    message news:[email protected]...
    >a have a list of employee ID numbers and need to count how many times they
    > occur withing certain ranges. For example: if one occurs between 5-10
    > times
    > I want all occurances highlighted in yellow, if it occurs between 10-15
    > times
    > I want all occurances highlighted in blue, and if it occurs more than 15
    > times I want all occurances highlighted in red. Any suggestions?




  3. #3
    ConfusedinCalgary
    Guest

    Re: Counting and colour coding ranges of occurances

    I still can't get it to work. I know it is obviously operator error but
    still need some help. My data is in column C which grows longer every day.
    Every conditional format I try recognizes the first condition but not the
    second and third. For example a number may appear 12 times but it still
    codes with the color from 5-10. What am I doing wrong?

    "Alan" wrote:

    > You can use conditional formatting using these formulas for the three
    > conditions.
    >
    > =AND(COUNTIF($A$1:$A$30,A1)>5,COUNTIF($A$1:$A$30,A1)<11)
    > =AND(COUNTIF($A$1:$A$30,A1)>10,COUNTIF($A$1:$A$30,A1)<16)
    > =COUNTIF($A$1:$A$30,A1)>15
    >
    > Regards,
    > Alan.
    >
    > "ConfusedinCalgary" <[email protected]> wrote in
    > message news:[email protected]...
    > >a have a list of employee ID numbers and need to count how many times they
    > > occur withing certain ranges. For example: if one occurs between 5-10
    > > times
    > > I want all occurances highlighted in yellow, if it occurs between 10-15
    > > times
    > > I want all occurances highlighted in blue, and if it occurs more than 15
    > > times I want all occurances highlighted in red. Any suggestions?

    >
    >
    >


  4. #4
    Alan
    Guest

    Re: Counting and colour coding ranges of occurances

    Try using Conditional Formatting in C1 using 'Formula Is' with these three
    formulas in the three conditions, then highlight the whole of column C and
    go to Conditional Formatting again, OK
    =AND(COUNTIF(C:C,C1)>5,COUNTIF(C:C,C1)<11)
    =AND(COUNTIF(C:C,C1)>10,COUNTIF(C:C,C1)<16)
    =COUNTIF(C:C,C1)>15
    Regards,
    Alan.

    "ConfusedinCalgary" <[email protected]> wrote in
    message news:[email protected]...
    >I still can't get it to work. I know it is obviously operator error but
    > still need some help. My data is in column C which grows longer every
    > day.
    > Every conditional format I try recognizes the first condition but not the
    > second and third. For example a number may appear 12 times but it still
    > codes with the color from 5-10. What am I doing wrong?
    >
    > "Alan" wrote:
    >
    >> You can use conditional formatting using these formulas for the three
    >> conditions.
    >>
    >> =AND(COUNTIF($A$1:$A$30,A1)>5,COUNTIF($A$1:$A$30,A1)<11)
    >> =AND(COUNTIF($A$1:$A$30,A1)>10,COUNTIF($A$1:$A$30,A1)<16)
    >> =COUNTIF($A$1:$A$30,A1)>15
    >>
    >> Regards,
    >> Alan.
    >>
    >> "ConfusedinCalgary" <[email protected]> wrote
    >> in
    >> message news:[email protected]...
    >> >a have a list of employee ID numbers and need to count how many times
    >> >they
    >> > occur withing certain ranges. For example: if one occurs between 5-10
    >> > times
    >> > I want all occurances highlighted in yellow, if it occurs between 10-15
    >> > times
    >> > I want all occurances highlighted in blue, and if it occurs more than
    >> > 15
    >> > times I want all occurances highlighted in red. Any suggestions?

    >>
    >>
    >>




  5. #5
    Alan
    Guest

    Re: Counting and colour coding ranges of occurances

    The first formula should be:
    =AND(COUNTIF(C:C,C1)>4,COUNTIF(C:C,C1)<11)
    >4, not >5

    REgards,
    Alan.
    "Alan" <[email protected]> wrote in message
    news:[email protected]...
    > Try using Conditional Formatting in C1 using 'Formula Is' with these three
    > formulas in the three conditions, then highlight the whole of column C and
    > go to Conditional Formatting again, OK
    > =AND(COUNTIF(C:C,C1)>5,COUNTIF(C:C,C1)<11)
    > =AND(COUNTIF(C:C,C1)>10,COUNTIF(C:C,C1)<16)
    > =COUNTIF(C:C,C1)>15
    > Regards,
    > Alan.
    >
    > "ConfusedinCalgary" <[email protected]> wrote in
    > message news:[email protected]...
    >>I still can't get it to work. I know it is obviously operator error but
    >> still need some help. My data is in column C which grows longer every
    >> day.
    >> Every conditional format I try recognizes the first condition but not the
    >> second and third. For example a number may appear 12 times but it still
    >> codes with the color from 5-10. What am I doing wrong?
    >>
    >> "Alan" wrote:
    >>
    >>> You can use conditional formatting using these formulas for the three
    >>> conditions.
    >>>
    >>> =AND(COUNTIF($A$1:$A$30,A1)>5,COUNTIF($A$1:$A$30,A1)<11)
    >>> =AND(COUNTIF($A$1:$A$30,A1)>10,COUNTIF($A$1:$A$30,A1)<16)
    >>> =COUNTIF($A$1:$A$30,A1)>15
    >>>
    >>> Regards,
    >>> Alan.
    >>>
    >>> "ConfusedinCalgary" <[email protected]> wrote
    >>> in
    >>> message news:[email protected]...
    >>> >a have a list of employee ID numbers and need to count how many times
    >>> >they
    >>> > occur withing certain ranges. For example: if one occurs between 5-10
    >>> > times
    >>> > I want all occurances highlighted in yellow, if it occurs between
    >>> > 10-15
    >>> > times
    >>> > I want all occurances highlighted in blue, and if it occurs more than
    >>> > 15
    >>> > times I want all occurances highlighted in red. Any suggestions?
    >>>
    >>>
    >>>

    >
    >




Closed 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