• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 404
  • Last Modified:

Countif questions

I want to know  If  I can use COUNTIF on a range of numbers? for example I need a count for

1 and 2 together as well as the following....

3, 4 and 5

6 thru 10

and anything over 11.

Currently I can only look up 1 number in a range... this is what I got so far.  =COUNTIF(N15:N31,Q15)

For Example I would like to count 3,4,5, together which = 15 (see below)  6 thru 10 = 1 since there isn't 1 or 2 that would = 0

6
5
5
5
5
4
4
4
4
4
4
4
4
4
4
3

Thanks in advance for your assistance!
0
Edward Pamias
Asked:
Edward Pamias
  • 4
  • 3
1 Solution
 
nutschCommented:
You can do

 =COUNTIF(N15:N31,1)+COUNTIFS(N15:N31,2)
=COUNTIFS(N15:N31,">=3",N15:N31",<=5")
=COUNTIFS(N15:N31,">=6",N15:N31",<=10")

Does that answer your question?

Thomas
0
 
Edward PamiasAuthor Commented:
=COUNTIF(N15:N31,1)+COUNTIFS(N15:N31,2)   <----this one works
The others did not work. Possible typos?
0
 
nutschCommented:
I assume you're using excel 2003 or earlier? Then use these formulas instead

 =COUNTIF(N15:N31,">=3")-COUNTIFS(N15:N31,">5")
 =COUNTIF(N15:N31,">=6")-COUNTIFS(N15:N31,">10")

Thomas
0
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
Edward PamiasAuthor Commented:
No sorry, I am using excel 2010.
0
 
nutschCommented:
so then, definitely typos (placement of double quotes for the last criteria)

=COUNTIFS(N15:N31,">=3",N15:N31,"<=5")
=COUNTIFS(N15:N31,">=6",N15:N31,"<=10")

Thomas
0
 
Edward PamiasAuthor Commented:
Thank you!
0
 
nutschCommented:
Glad to help. Thanks for your patience.

Thomas
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now