countifs every 3rd row in a specified column.

lambi153

New Member
Joined
Mar 6, 2018
Messages
12
Hi,

I have data in the following range (B359:B406), I need to count the number of times a 0 might occur but only in the cells B361,B364,B367,B370 (every 3rd row) finishing with B406.

I have tried
Code:
=SUMPRODUCT(--(MOD(ROW(B359:B406)-ROW(B361),3)=0),--(B359:B406="0"))

but it only returns 0 no matter how many of the cells I'm looking at have a 0 in them.

Any help would be most appreciated.

J
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
the problem is the --(B359:B406="0") in your formula, it's looking for a 0 in text.

what are the typically data in the other cells?
 
Upvote 0
you can try this instead
Code:
=SUMPRODUCT(--(MOD(ROW(B359:B406)-ROW(B361),3)=0),--(B359:B406=0),--(LEN(B359:B406)>0))
 
Upvote 0
you can try this instead
Code:
=SUMPRODUCT(--(MOD(ROW(B359:B406)-ROW(B361),3)=0),--(B359:B406=0),--(LEN(B359:B406)>0))


Hi Alan,

Thank you for coming back to me. in the other 2 cells there are numbers but no zero's. I;m coming to try your formula now.

J
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,327
Members
452,635
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top