PC Review


Reply
Thread Tools Rate Thread

COUNTIF "EVEN" numbers in a range

 
 
=?Utf-8?B?VWRpMTQ=?=
Guest
Posts: n/a
 
      10th Sep 2007
How do I count how many EVEN numbers in a range?
I tried =COUNTIF(B3:10,"EVEN") but no success.
 
Reply With Quote
 
 
 
 
Ken Johnson
Guest
Posts: n/a
 
      10th Sep 2007
On Sep 11, 6:44 am, Udi14 <Ud...@discussions.microsoft.com> wrote:
> How do I count how many EVEN numbers in a range?
> I tried =COUNTIF(B3:10,"EVEN") but no success.


=SUMPRODUCT(--(MOD(B3:B10,2)=0))

Ken Johnson

 
Reply With Quote
 
=?Utf-8?B?RWxrYXI=?=
Guest
Posts: n/a
 
      10th Sep 2007
Try this:

=SUMPRODUCT(--(MOD(B3:B10,2)=0))

Note that this will treat blank cells as even numbers. If you want blanks
to be excluded then try:

=SUMPRODUCT(--(MOD(B3:B10,2)=0),--(ISBLANK(B3:B10)=FALSE))

HTH,
Elkar


"Udi14" wrote:

> How do I count how many EVEN numbers in a range?
> I tried =COUNTIF(B3:10,"EVEN") but no success.

 
Reply With Quote
 
=?Utf-8?B?VWRpMTQ=?=
Guest
Posts: n/a
 
      10th Sep 2007
Thanks but it seems complicated....if u take a simple range of numbers like
1, 4, 6, 11, 15, 18.....i should be able to countif 3 EVEN numbers
(4,6,18)...its so simple yet Excel does not allow to define "EVEN" in a
formula?

"Elkar" wrote:

> Try this:
>
> =SUMPRODUCT(--(MOD(B3:B10,2)=0))
>
> Note that this will treat blank cells as even numbers. If you want blanks
> to be excluded then try:
>
> =SUMPRODUCT(--(MOD(B3:B10,2)=0),--(ISBLANK(B3:B10)=FALSE))
>
> HTH,
> Elkar
>
>
> "Udi14" wrote:
>
> > How do I count how many EVEN numbers in a range?
> > I tried =COUNTIF(B3:10,"EVEN") but no success.

 
Reply With Quote
 
=?Utf-8?B?VWRpMTQ=?=
Guest
Posts: n/a
 
      10th Sep 2007
It's working....thanks a lot

"Ken Johnson" wrote:

> On Sep 11, 6:44 am, Udi14 <Ud...@discussions.microsoft.com> wrote:
> > How do I count how many EVEN numbers in a range?
> > I tried =COUNTIF(B3:10,"EVEN") but no success.

>
> =SUMPRODUCT(--(MOD(B3:B10,2)=0))
>
> Ken Johnson
>
>

 
Reply With Quote
 
iliace
Guest
Posts: n/a
 
      11th Sep 2007
There is ISEVEN() function, but for some reason it doesn't work on
arrays.


On Sep 10, 5:08 pm, Udi14 <Ud...@discussions.microsoft.com> wrote:
> It's working....thanks a lot
>
>
>
> "Ken Johnson" wrote:
> > On Sep 11, 6:44 am, Udi14 <Ud...@discussions.microsoft.com> wrote:
> > > How do I count how many EVEN numbers in a range?
> > > I tried =COUNTIF(B3:10,"EVEN") but no success.

>
> > =SUMPRODUCT(--(MOD(B3:B10,2)=0))

>
> > Ken Johnson- Hide quoted text -

>
> - Show quoted text -



 
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
VBA Syntax for Countif condition where only 1st char in Range of each cell = "M" EagleOne@discussions.microsoft.com Microsoft Excel Programming 5 7th Oct 2009 07:19 PM
how to write formula for countif (range,"<2" &">3") Vinod Tripathi Microsoft Excel Misc 1 1st May 2009 07:27 AM
COUNTIF(RANGE,"?") and search for contains BlueWolverine Microsoft Excel Worksheet Functions 6 28th Apr 2008 06:54 PM
Re: EXCEL Can I use "countif" or "sumif" on a range for numbers BOTH . Andy Brown Microsoft Excel Misc 1 30th Sep 2004 08:39 PM
Excel functions - making flexible "range" in COUNTIF nooaon Microsoft Excel Worksheet Functions 4 7th Apr 2004 01:38 PM


Features
 

Advertising
 

Newsgroups
 


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