+ Reply to Thread
Results 1 to 90 of 90

Newbe Help with count/countif function

  1. #1
    Registered User
    Join Date
    08-22-2005
    Posts
    6

    Newbe Help with count/countif function

    I'm trying to count the number of rows that fall within a numerical range. For example I want to count the number of rows that contain a value >5 and <=10

    I tried both count and countif and keep getting errors. Half if it is no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but when I put them together I have problems.

    I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work either.

    Can someone point me in the correct location?

    Thanks!

  2. #2
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  3. #3
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  4. #4
    Registered User
    Join Date
    08-22-2005
    Posts
    6
    Thanks Bernie & Rowan!

    I had found the answer a few minutes ago after searching the forums for the last hour and am using:

    =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND before and learned you can't with COUNTIF.

    I also expanded on Rowan's second suggestion and am using:

    =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))

    in another area. I couldn't get it to work with the "--" part (and I'm not sure what it does) but when I removed it everything is working correctly.

    Thanks Again

  5. #5
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  6. #6
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  7. #7
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  8. #8
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  9. #9
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  10. #10
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  11. #11
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  12. #12
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  13. #13
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  14. #14
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  15. #15
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  16. #16
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  17. #17
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  18. #18
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  19. #19
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  20. #20
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  21. #21
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  22. #22
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  23. #23
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  24. #24
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  25. #25
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  26. #26
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  27. #27
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  28. #28
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  29. #29
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  30. #30
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  31. #31
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  32. #32
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  33. #33
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  34. #34
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  35. #35
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  36. #36
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  37. #37
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  38. #38
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  39. #39
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  40. #40
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  41. #41
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  42. #42
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  43. #43
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  44. #44
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  45. #45
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  46. #46
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  47. #47
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  48. #48
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  49. #49
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  50. #50
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  51. #51
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  52. #52
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  53. #53
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  54. #54
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  55. #55
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  56. #56
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  57. #57
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  58. #58
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  59. #59
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  60. #60
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  61. #61
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  62. #62
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  63. #63
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  64. #64
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  65. #65
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  66. #66
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  67. #67
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  68. #68
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  69. #69
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  70. #70
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  71. #71
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  72. #72
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  73. #73
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  74. #74
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  75. #75
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  76. #76
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  77. #77
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  78. #78
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  79. #79
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  80. #80
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  81. #81
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  82. #82
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  83. #83
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  84. #84
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  85. #85
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  86. #86
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  87. #87
    Bernie Deitrick
    Guest

    Re: Newbe Help with count/countif function

    Cybertech,

    =COUNTIF(E:E,">5") - COUNTIF(E:E,">10")

    HTH,
    Bernie
    MS Excel MVP


    "Cybertech" <[email protected]> wrote
    in message news:[email protected]...
    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile:
    > http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >




  88. #88
    Rowan
    Guest

    RE: Newbe Help with count/countif function

    Two options:

    =COUNTIF(E:E,"<=10")-COUNTIF(E:E,"<6")

    or

    =SUMPRODUCT(--(E1:E1000<=10),--(E1:E1000>5))

    Note you can't use an entirecolumn reference in Sumproduct hence the E1000.

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  89. #89
    Ashish Mathur
    Guest

    RE: Newbe Help with count/countif function

    Hi,

    You may try another solution. This is an array formula (Ctrl+Shift+Enter)

    SUM(IF((range>5)*(range<10),1,0))

    Regards,

    "Cybertech" wrote:

    >
    > I'm trying to count the number of rows that fall within a
    > numerical range. For example I want to count the number of rows that
    > contain a value >5 and <=10
    >
    > I tried both count and countif and keep getting errors. Half if it is
    > no problem, =COUNTIF(E:E,">5") works as does =COUNTIF(E:E,"<=10") but
    > when I put them together I have problems.
    >
    > I book uses the example {=SUM((E:E>5)*(E:E<=10))} but that doesn't work
    > either.
    >
    > Can someone point me in the correct location?
    >
    > Thanks!
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


  90. #90
    Rowan
    Guest

    Re: Newbe Help with count/countif function

    You're welcome.

    The -- (double unary minuses) work in much the same way as the * in your
    formula. They each cause the sumproduct to resolve True and False answers
    into 1's and 0's. It comes down do a matter of preference which you use so
    your formula could be:

    =SUMPRODUCT(--(B2:B1322=9),--(E2:E1322>5),--(E2:E1322<=10))

    More info on sumproduct at http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    Regards
    Rowan

    "Cybertech" wrote:

    >
    > Thanks Bernie & Rowan!
    >
    > I had found the answer a few minutes ago after searching the forums for
    > the last hour and am using:
    >
    > =COUNTIF(E:E,">5")-COUNTIF(E:E,">10") which works! I had been using AND
    > before and learned you can't with COUNTIF.
    >
    > I also expanded on Rowan's second suggestion and am using:
    >
    > =SUMPRODUCT((B2:B1322=9)*(E2:E1322>5)*(E2:E1322<=10))
    >
    > in another area. I couldn't get it to work with the "--" part (and I'm
    > not sure what it does) but when I removed it everything is working
    > correctly.
    >
    > Thanks Again
    >
    >
    > --
    > Cybertech
    > ------------------------------------------------------------------------
    > Cybertech's Profile: http://www.excelforum.com/member.php...o&userid=26533
    > View this thread: http://www.excelforum.com/showthread...hreadid=398428
    >
    >


+ 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