PC Review


Reply
Thread Tools Rate Thread

Counting Consecutive cells in a row with a value greater than zero - how?

 
 
SeanMc
Guest
Posts: n/a
 
      31st May 2007
I have 7 cells in a row (D39:J39). Default value of these cells will be
0.00.
I want a cell to display the count of cells whose value is greater than
zero. How do I do this?
I was looking at DCount - but from the documentation in help that I looked
at, the values tested need to be in a column. - is this correct.

Any example will be appreciated -
Thanks - Sean


 
Reply With Quote
 
 
 
 
Keith74
Guest
Posts: n/a
 
      31st May 2007
Hi Sean

try

=COUNTIF(d39:j39,">0")

hth

Keith


 
Reply With Quote
 
SeanMc
Guest
Posts: n/a
 
      31st May 2007

"Keith74" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi Sean
>
> try
>
> =COUNTIF(d39:j39,">0")
>
> hth
>
> Keith
>


Great - thank you


 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      31st May 2007
Note: this counts all cells in the row that are >0

Does not give a count of Consecutive cells as your subject line asked for.

But "great" sorta says it all.


Gord Dibben MS Excel MVP

On Thu, 31 May 2007 08:33:57 -0400, "SeanMc" <(E-Mail Removed)> wrote:

>
>"Keith74" <(E-Mail Removed)> wrote in message
>news:(E-Mail Removed)...
>> Hi Sean
>>
>> try
>>
>> =COUNTIF(d39:j39,">0")
>>
>> hth
>>
>> Keith
>>

>
>Great - thank you
>


 
Reply With Quote
 
SeanMc
Guest
Posts: n/a
 
      31st May 2007

"Gord Dibben" <gorddibbATshawDOTca> wrote in message
news:(E-Mail Removed)...
> Note: this counts all cells in the row that are >0
>
> Does not give a count of Consecutive cells as your subject line asked for.
>
> But "great" sorta says it all.
>


Sorry - Guess my typing fingers were working faster than my brain. COUNTIF
does exactly what I wanted.


 
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 consecutive cells OM Microsoft Excel Discussion 3 31st Jul 2011 10:36 AM
Counting Consecutive Cells =?Utf-8?B?U3RldmVD?= Microsoft Excel Misc 16 21st Jun 2006 06:39 PM
Counting Consecutive Cells that meet Criteria Omega Point Microsoft Excel Misc 2 26th Feb 2006 08:28 PM
Counting consecutive cells =?Utf-8?B?bmVpbA==?= Microsoft Excel Misc 5 17th Nov 2004 07:55 AM
Counting the number of consecutive cells/rows that have the same entry Chantelle Microsoft Excel Programming 3 6th Nov 2004 08:11 PM


Features
 

Advertising
 

Newsgroups
 


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