Count max consecutive number 0 in each column

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
Hi and welcome to the Board,

Try this:

=countif(range,0)

Mel
 
Upvote 0
I've just re-read your post, so I guess my solution isn't what you're after.
 
Upvote 0
Yes, my situation is more difficult. There is a lot of 0 and 1 in column, 0 is more than 1, and sometimes 0 repeats more than 15 times without having 1. And I want to know max number of these times when there is only 0 without 1.
 
Upvote 0
Try this entered as an array (Ctrl, Shift & Enter), adjust the ranges to suit your data.

=MAX(FREQUENCY(IF(A2:A17=0,ROW(A2:A17)),IF(A2:A17 <>0,ROW(A2:A17))))
 
Upvote 0
I had already found formula like this, but I cant understand, what I do incorrectly, because excel always shows me function error. Maybe I dont understand when I need to push this (Ctrl, Shift & Enter). I tried to do it before entering, after entering, but it doesnt work for me.
It shows that error is here - "...
0,ROW..."
 
Upvote 0
Paste the formula into the formula bar, hold the Ctrl & Shift keys and press enter.
 
Upvote 0
I have already tried it but I dont know why it doesnt work for me and it shows an error here - "...0,ROW...". Maybe someone can open my file and try to do it for at least one column and then I can will check, what I was doing wrong?
 
Upvote 0

Forum statistics

Threads
1,214,415
Messages
6,119,377
Members
448,888
Latest member
Arle8907

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