Count max consecutive number 0 in each column

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
If you don't to read empty cells as 0's, you need to make a more expensive formula:

Control+shift+enter...

=MAX(FREQUENCY(IF(ISNUMBER(A2:A17),IF(A2:A17=0,ROW(A2:A17))),IF(ISNUMBER(1/A2:A17),ROW(A2:A17))))



 
Upvote 0
If you don't to read empty cells as 0's, you need to make a more expensive formula:

Control+shift+enter...

=MAX(FREQUENCY(IF(ISNUMBER(A2:A17),IF(A2:A17=0,ROW(A2:A17))),IF(ISNUMBER(1/A2:A17),ROW(A2:A17))))




Hi Aladin, is that a better option than
=MAX(FREQUENCY(IF(A2:A25=0,IF(A2:A25<>"",ROW(A2:A25))),IF(A2:A25<>0,ROW(A2:A25))))

Gaz
 
Upvote 0
Hi Aladin, is that a better option than
=MAX(FREQUENCY(IF(A2:A25=0,IF(A2:A25<>"",ROW(A2:A25))),IF(A2:A25<>0,ROW(A2:A25))))

Gaz

A true 0 is a number; the ISNUMBER test captures that. Other than that, I have no data on the temporal score of the formula to offer.
 
Upvote 0

A true 0 is a number; the ISNUMBER test captures that. Other than that, I have no data on the temporal score of the formula to offer.

Hi!

Thank you again for help that time ago. How I can get from this formula all these numbers of series of consecutive "0" from which this "MAX" had taken in formula for which I asked before?
For example if there is column 0 1 0 0 1 0 0 0 1 0 0 0 0 0 1
I would like to get result 1;2;3;5
Thank you in advance!
 
Upvote 0

Forum statistics

Threads
1,214,920
Messages
6,122,276
Members
449,075
Latest member
staticfluids

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