PC Review


Reply
Thread Tools Rate Thread

Count non-contiguous cells where value is greater than 0

 
 
anre5180
Guest
Posts: n/a
 
      21st Feb 2006

A1,A2,A3,A4,A5,A6,A7,A8
5,5,6,0,4,1,7,0

Count the cells A1,A3,A4,A6,A8 where value is greater than 0

return should be 3

how do i do this?

Please note it is NOT a range(otherwise it would be easy), they are
non-contiguos.


--
anre5180
------------------------------------------------------------------------
anre5180's Profile: http://www.excelforum.com/member.php...o&userid=31778
View this thread: http://www.excelforum.com/showthread...hreadid=515011

 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      21st Feb 2006
=SUM(COUNTIF(INDIRECT({"A1","A3","A4","A6","A8"}),">0"))

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"anre5180" <(E-Mail Removed)> wrote in
message news:(E-Mail Removed)...
>
> A1,A2,A3,A4,A5,A6,A7,A8
> 5,5,6,0,4,1,7,0
>
> Count the cells A1,A3,A4,A6,A8 where value is greater than 0
>
> return should be 3
>
> how do i do this?
>
> Please note it is NOT a range(otherwise it would be easy), they are
> non-contiguos.
>
>
> --
> anre5180
> ------------------------------------------------------------------------
> anre5180's Profile:

http://www.excelforum.com/member.php...o&userid=31778
> View this thread: http://www.excelforum.com/showthread...hreadid=515011
>



 
Reply With Quote
 
anre5180
Guest
Posts: n/a
 
      22nd Feb 2006

Bob Phillips Wrote:
> =SUM(COUNTIF(INDIRECT({"A1","A3","A4","A6","A8"}),">0"))
>
> --
>
> HTH
>
> Bob Phillips


Hey THANKS A LOT !!! It works perfectly. I have to explorer more that
SUM and INDIRECT combination since i knew about the countif.


--
anre5180
------------------------------------------------------------------------
anre5180's Profile: http://www.excelforum.com/member.php...o&userid=31778
View this thread: http://www.excelforum.com/showthread...hreadid=515011

 
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
Count contiguous cells, or count cell clusters BizoNo Microsoft Excel Worksheet Functions 0 16th Feb 2010 07:06 PM
How do I count non-contiguous cells? =?Utf-8?B?YnJvdXNo?= Microsoft Excel Worksheet Functions 5 30th May 2006 11:16 PM
hHow do a count the amount of numbers in a cells greater that a c. =?Utf-8?B?cGF0cmljaw==?= Microsoft Access Getting Started 2 6th Dec 2004 09:44 PM
I need to COUNT data greater than zero, but count if is not working! =?Utf-8?B?UmF6YW1hbg==?= Microsoft Excel Worksheet Functions 1 17th Feb 2004 03:50 PM
count contiguous non-zero blocks? Marji Microsoft Excel Worksheet Functions 0 3rd Sep 2003 05:57 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:19 AM.