PC Review


Reply
Thread Tools Rate Thread

COUNTIF Range

 
 
mluetkem
Guest
Posts: n/a
 
      17th Aug 2005

Does the COUNTIF range have to be a continuous range (i.e. A1:E1) or
could it be a non-continuous range of cells (i.e. A1,D1,G1,J1,M1)? I
want to count the number of occurances of a cell value being > 75 in
the non-continuous range of A1,D1,G1,J1,M1. The COUNTIF function does
not like the non-continuous range. Is there a better way of doing
this. It is not an option to move the columns of data so they are a
continuous range.

Mike


--
mluetkem
------------------------------------------------------------------------
mluetkem's Profile: http://www.excelforum.com/member.php...fo&userid=2316
View this thread: http://www.excelforum.com/showthread...hreadid=396616

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      17th Aug 2005
Mike,

I think COUNTIF must be contiguous. But you can get around it

=SUMPRODUCT(--(MOD(COLUMN(A1:M1),3)=1),A1:M1)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"mluetkem" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> Does the COUNTIF range have to be a continuous range (i.e. A1:E1) or
> could it be a non-continuous range of cells (i.e. A1,D1,G1,J1,M1)? I
> want to count the number of occurances of a cell value being > 75 in
> the non-continuous range of A1,D1,G1,J1,M1. The COUNTIF function does
> not like the non-continuous range. Is there a better way of doing
> this. It is not an option to move the columns of data so they are a
> continuous range.
>
> Mike
>
>
> --
> mluetkem
> ------------------------------------------------------------------------
> mluetkem's Profile:

http://www.excelforum.com/member.php...fo&userid=2316
> View this thread: http://www.excelforum.com/showthread...hreadid=396616
>



 
Reply With Quote
 
JE McGimpsey
Guest
Posts: n/a
 
      17th Aug 2005
One way:

=SUMPRODUCT(--(MOD(COLUMN(A1:M1),3)=1),--(A1:M1>75))

In article <(E-Mail Removed)>,
mluetkem <(E-Mail Removed)>
wrote:

> Does the COUNTIF range have to be a continuous range (i.e. A1:E1) or
> could it be a non-continuous range of cells (i.e. A1,D1,G1,J1,M1)? I
> want to count the number of occurances of a cell value being > 75 in
> the non-continuous range of A1,D1,G1,J1,M1. The COUNTIF function does
> not like the non-continuous range. Is there a better way of doing
> this. It is not an option to move the columns of data so they are a
> continuous range.
>
> Mike

 
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
Countif using tab range DEI Microsoft Excel Worksheet Functions 3 12th Jan 2009 08:30 PM
COUNTIF to compare one range versus another range Phil Microsoft Excel Programming 3 30th May 2007 10:39 PM
Using countif with a name of a range =?Utf-8?B?d2Vic3Rlcg==?= Microsoft Excel Worksheet Functions 3 14th Jun 2006 02:37 PM
CountIF Range Michael Microsoft Excel Worksheet Functions 4 31st Jan 2006 01:27 PM
COUNTIF or not to COUNTIF on a range in another sheet =?Utf-8?B?RWxsaWU=?= Microsoft Excel Worksheet Functions 4 15th Sep 2005 10:06 PM


Features
 

Advertising
 

Newsgroups
 


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