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

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
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,216,238
Messages
6,129,654
Members
449,526
Latest member
hmoh

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