View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom Peo Sjoblom is offline
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