COUNTIF Non Contiguous Cells Q

S

Seanie

I want to create a formula that will Count the number of times cells
is a range are greater than 1.

Ordinarly I would use the formula =COUNTIF(F$10:F$168,">0"), however
my range is non-contiguous, it is however relative, in that the cells
I wish to Count are always 3 apart.

So if I was to avoid having to long type a formula with all the ranges
I want to count, how would I do it?

Thanks
 
P

Per Jessen

Hi

=SUMPRODUCT(--(MOD(ROW(A1:A15),3)=1),--(A1:A15>0))

Will count if row 1,4,7,10, 13 if >0

Hopes this helps.
....
Per
 
S

Seanie

Thanks Per

I didn't quite get the result I was looking for but I modified "=1" to
">1" and I did

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top