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

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
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,223,893
Messages
6,175,239
Members
452,621
Latest member
Laura_PinksBTHFT

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