Formula Reeating Values

ststern45

Well-known Member
Joined
Sep 17, 2005
Messages
985
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Hi everyone,

Need a formula that will count how many zeroes appear in a cell range.

Fro example,

Cell Range A1 through D1 all equal 0 Cell E1 = 1
Total will be 4

Cell Range A1 J1 all equal 0 Cell K1 = 3
Total will be 10

Range is A1 through N1

I have the following formula below but will not count consecutive zeroes at 10

=IFERROR(IF(COUNTIF($A1:$N1,"<=0")=COLUMNS($A1:$N1),COLUMNS($A1:$N1),MATCH(TRUE,INDEX(>=0,0),0)-1),0)

Thanks in advance!!
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,226,695
Messages
6,192,475
Members
453,726
Latest member
JoeH57

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