+ Reply to Thread
Results 1 to 7 of 7

How can I count values greater than and less than certain values?

  1. #1
    old grey whiskers
    Guest

    How can I count values greater than and less than certain values?

    How can I count occurances in a range of values. Eg If I have a class of
    students ranging from 150cm to 190cm height, what is the formula in Excel to
    count how many people are between 170 and 175 cm. How can I count values
    greater than and less than in one operation?
    --
    old grey whiskers

  2. #2
    Ashish Mathur
    Guest

    RE: How can I count values greater than and less than certain values?

    Hi,

    Assuming the height range is in C1:C9.

    Now array enter (Ctrl+Shift+Enter) the following formula in cell C11

    =COUNT(IF((C5:C9>2)*(C5:C9<5),C5:C9))

    Regards,


    "old grey whiskers" wrote:

    > How can I count occurances in a range of values. Eg If I have a class of
    > students ranging from 150cm to 190cm height, what is the formula in Excel to
    > count how many people are between 170 and 175 cm. How can I count values
    > greater than and less than in one operation?
    > --
    > old grey whiskers


  3. #3
    Trevor Shuttleworth
    Guest

    Re: How can I count values greater than and less than certain values?

    One way:

    =COUNTIF(A:A,">=170")-COUNTIF(A:A,">175")

    Regards

    Trevor


    "old grey whiskers" <oldgreywhiskers@discussions.microsoft.com> wrote in
    message news:F452DE76-FD3F-444C-9908-88A78C9B039E@microsoft.com...
    > How can I count occurances in a range of values. Eg If I have a class of
    > students ranging from 150cm to 190cm height, what is the formula in Excel
    > to
    > count how many people are between 170 and 175 cm. How can I count values
    > greater than and less than in one operation?
    > --
    > old grey whiskers




  4. #4
    Aladin Akyurek
    Guest

    Re: How can I count values greater than and less than certain values?

    =COUNTIF(AgeRange,">="&170)-COUNTIF(Range,">"&175)

    for an inclusive count.

    =COUNTIF(AgeRange,">"&170)-COUNTIF(Range,">="&175)

    for an exclusive count.

    old grey whiskers wrote:
    > How can I count occurances in a range of values. Eg If I have a class of
    > students ranging from 150cm to 190cm height, what is the formula in Excel to
    > count how many people are between 170 and 175 cm. How can I count values
    > greater than and less than in one operation?


  5. #5
    old grey whiskers
    Guest

    Re: How can I count values greater than and less than certain valu

    thanks Trevor that's a great help.
    --
    old grey whiskers


    "Trevor Shuttleworth" wrote:

    > One way:
    >
    > =COUNTIF(A:A,">=170")-COUNTIF(A:A,">175")
    >
    > Regards
    >
    > Trevor
    >
    >
    > "old grey whiskers" <oldgreywhiskers@discussions.microsoft.com> wrote in
    > message news:F452DE76-FD3F-444C-9908-88A78C9B039E@microsoft.com...
    > > How can I count occurances in a range of values. Eg If I have a class of
    > > students ranging from 150cm to 190cm height, what is the formula in Excel
    > > to
    > > count how many people are between 170 and 175 cm. How can I count values
    > > greater than and less than in one operation?
    > > --
    > > old grey whiskers

    >
    >
    >


  6. #6
    old grey whiskers
    Guest

    RE: How can I count values greater than and less than certain valu

    thanks Ashish that's a great help
    --
    old grey whiskers


    "Ashish Mathur" wrote:

    > Hi,
    >
    > Assuming the height range is in C1:C9.
    >
    > Now array enter (Ctrl+Shift+Enter) the following formula in cell C11
    >
    > =COUNT(IF((C5:C9>2)*(C5:C9<5),C5:C9))
    >
    > Regards,
    >
    >
    > "old grey whiskers" wrote:
    >
    > > How can I count occurances in a range of values. Eg If I have a class of
    > > students ranging from 150cm to 190cm height, what is the formula in Excel to
    > > count how many people are between 170 and 175 cm. How can I count values
    > > greater than and less than in one operation?
    > > --
    > > old grey whiskers


  7. #7
    Trevor Shuttleworth
    Guest

    Re: How can I count values greater than and less than certain values?

    And another option for the collection ...

    =SUMPRODUCT((A1:A500>=170)*(A1:A500<=175))

    Regards

    Trevor


    "old grey whiskers" <oldgreywhiskers@discussions.microsoft.com> wrote in
    message news:F452DE76-FD3F-444C-9908-88A78C9B039E@microsoft.com...
    > How can I count occurances in a range of values. Eg If I have a class of
    > students ranging from 150cm to 190cm height, what is the formula in Excel
    > to
    > count how many people are between 170 and 175 cm. How can I count values
    > greater than and less than in one operation?
    > --
    > old grey whiskers




+ 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