Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RW RW is offline
external usenet poster
 
Posts: 49
Default Multiple non-consecutive rows

How do I include multiple non-consecutive rows in a COUNTIF function. I need
to check rows (4,7,10,13 thru 97 (every third row)) for a value. I used =
COUNTIF (4:4, "Yes") and it returns the correct number. I have tried several
methods to include the 32 row I need to check for the value "Yes" and it will
not allow the multiple rows

Thanks in advance.
--
RW
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Multiple non-consecutive rows

Try

=SUMPRODUCT(--($B$4:$B$97="Yes"),--(MOD(ROW($B$4:$B$97),3)=1))

adapt to fit your range


--
Regards,

Peo Sjoblom



"RW" wrote in message
...
How do I include multiple non-consecutive rows in a COUNTIF function. I
need
to check rows (4,7,10,13 thru 97 (every third row)) for a value. I used
=
COUNTIF (4:4, "Yes") and it returns the correct number. I have tried
several
methods to include the 32 row I need to check for the value "Yes" and it
will
not allow the multiple rows

Thanks in advance.
--
RW



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Multiple non-consecutive rows

Try this:

Do you really need to use the entire row as a range reference?

=SUMPRODUCT((MOD(ROW(A$4:IV$97)-ROW(A$4),3)=0)*(A$4:IV$97="Yes"))

Biff

"RW" wrote in message
...
How do I include multiple non-consecutive rows in a COUNTIF function. I
need
to check rows (4,7,10,13 thru 97 (every third row)) for a value. I used
=
COUNTIF (4:4, "Yes") and it returns the correct number. I have tried
several
methods to include the 32 row I need to check for the value "Yes" and it
will
not allow the multiple rows

Thanks in advance.
--
RW



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RW RW is offline
external usenet poster
 
Posts: 49
Default Multiple non-consecutive rows

Yes at least to a resonable extent. We are tracking cleared reports from the
State. A single school may have numerous reports that are not "clean" (A
"Yes" response) and then they will have one report that is clean. We are
trying to track how many schools have clean reports for a 40th day report and
also a 100th day report.
--
RW


"T. Valko" wrote:

Try this:

Do you really need to use the entire row as a range reference?

=SUMPRODUCT((MOD(ROW(A$4:IV$97)-ROW(A$4),3)=0)*(A$4:IV$97="Yes"))

Biff

"RW" wrote in message
...
How do I include multiple non-consecutive rows in a COUNTIF function. I
need
to check rows (4,7,10,13 thru 97 (every third row)) for a value. I used
=
COUNTIF (4:4, "Yes") and it returns the correct number. I have tried
several
methods to include the 32 row I need to check for the value "Yes" and it
will
not allow the multiple rows

Thanks in advance.
--
RW




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
min function on non consecutive rows bikemrh Excel Worksheet Functions 4 February 14th 07 08:44 PM
copy non-consecutive rows confused Excel Discussion (Misc queries) 7 September 16th 06 07:39 AM
PULLING OUT CONSECUTIVE ROWS GARY Excel Discussion (Misc queries) 2 August 26th 06 04:25 AM
Inserting multiple non-consecutive rows piper1963 Excel Discussion (Misc queries) 3 June 22nd 06 12:02 AM
Select non-consecutive rows dee Excel Discussion (Misc queries) 14 December 4th 04 08:45 PM


All times are GMT +1. The time now is 07:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"