PC Review


Reply
Thread Tools Rate Thread

Counting cells using multiple criteria

 
 
Atchy
Guest
Posts: n/a
 
      7th May 2004
I am using Excel 2000. And, I need to count cells that
fall in multiple criteria. For example, I have 5 numbers
93.84, 100, 95, 92.5, and 92.5 in cells from A6 to A10. I
wrote the following formula to count the number of the
cells that have numbers between 91 and 95, inclusively:

=SUM(((A6:A10)>90)*((A6:A10)<=95))

Tha should return 4; however, I get an error messge
(#VALUE!). Is that a right formula to count the cells
that I want?
 
Reply With Quote
 
 
 
 
Atchy
Guest
Posts: n/a
 
      7th May 2004
Actually, the formula I wrote in the previous posting was
different than I have. The one I have is as follows:

=SUM(IF(((A6:A10)>90)*((A6:A10)<=95),1,0))

Thanks.

>-----Original Message-----
>I am using Excel 2000. And, I need to count cells that
>fall in multiple criteria. For example, I have 5 numbers
>93.84, 100, 95, 92.5, and 92.5 in cells from A6 to A10.

I
>wrote the following formula to count the number of the
>cells that have numbers between 91 and 95, inclusively:
>
>=SUM(((A6:A10)>90)*((A6:A10)<=95))
>
>Tha should return 4; however, I get an error messge
>(#VALUE!). Is that a right formula to count the cells
>that I want?
>.
>

 
Reply With Quote
 
Bernard Liengme
Guest
Posts: n/a
 
      7th May 2004
When you have more that one criteria, it is time to call upon SUMPRODUCT
=SUMPRODUCT(--(A6:A10>90), --(A6:A10<=95)

But for a simple count, you could also use
=COUNTIF(A6:A10,">90")-COUNTIF(A6:A10,">95")

Best wishes

--
Bernard Liengme
www.stfx.ca/people/bliengme
remove CAPS in e-mail address


"Atchy" <(E-Mail Removed)> wrote in message
news:a08f01c43475$b05190d0$(E-Mail Removed)...
> Actually, the formula I wrote in the previous posting was
> different than I have. The one I have is as follows:
>
> =SUM(IF(((A6:A10)>90)*((A6:A10)<=95),1,0))
>
> Thanks.
>
> >-----Original Message-----
> >I am using Excel 2000. And, I need to count cells that
> >fall in multiple criteria. For example, I have 5 numbers
> >93.84, 100, 95, 92.5, and 92.5 in cells from A6 to A10.

> I
> >wrote the following formula to count the number of the
> >cells that have numbers between 91 and 95, inclusively:
> >
> >=SUM(((A6:A10)>90)*((A6:A10)<=95))
> >
> >Tha should return 4; however, I get an error messge
> >(#VALUE!). Is that a right formula to count the cells
> >that I want?
> >.
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting cells with multiple criteria Charlie510 Microsoft Excel Worksheet Functions 3 26th Aug 2008 05:10 PM
Counting cells using multiple criteria andrew.curley Microsoft Excel Worksheet Functions 4 12th Jun 2006 04:41 PM
Counting multiple cells using a criteria =?Utf-8?B?Sm9obg==?= Microsoft Excel Misc 1 14th Jun 2005 04:51 PM
Counting Cells with multiple criteria.One criteria supporting wild =?Utf-8?B?QXpoYXIgQXJhaW4=?= Microsoft Excel Worksheet Functions 1 12th Jan 2005 08:33 AM
Counting Cells with multiple criteria.One criteria supporting wild =?Utf-8?B?QXpoYXIgU2FsZWVt?= Microsoft Excel Worksheet Functions 0 12th Jan 2005 07:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.