Counting number of cells with a divisor of 6 in a row...

450nick

Well-known Member
Joined
May 11, 2009
Messages
507
I'm trying to use a formula to count the number of cells with a divisor of 6 in but I'm having trouble.. I've tried =SUMPRODUCT(--(MOD(F11:J11,6))=0) but it doesn't seem to work - any ideas??
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
It works fine, though some of the cells have "." in them (they need to unfortunately) - and if the range covers the cells with a "." in then it produces and error. Is there a way to count the cells where the mod formula doesn't produce an error?
 
Upvote 0
Here's what I ended up with: (--SUMPRODUCT(IF(ISNUMBER(F4:O4),--(MOD(F4:O4,$D$32)=0*1),FALSE)) :) works good now!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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