Max consecutive blank cells, count consecutive

komhs

New Member
Joined
Jun 12, 2016
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hello to all,

I am trying to count some consecutive values and I am straggling to use the proper functions. I used Frequency, column, max, match, countblank, but obviously I can't connect them properly.

Is it possible to help me on this issue?

In the image I am showing with cursors for easy explanation, how the values that I put by hand in yellow cells have been justified. I have used and XL2BB in order to make your life easier if you are kind enough to fill the functions.

In yellow cells BCD, I want to calculate what is the maximum consecutive blank cells from each column.
In yellow cells GHI, I want to calculate how many times I had at least one consecutive value from each column. So if I had 5 consecutive values, we will count it as one time.
In yellow cells LMN, I want to calculate what is the maximum consecutive values that I found from the specific value. So, It will return one number. Just count the maximum consecutive.

Thanks in advance

Capture.PNG


Book5.xlsx
ABCDEFGHIJKLMN
1How many MAX consecutive blank cells from (for example) B5 to B31:756Consecut
2Values:123How many times I had at least one consecutive value:233What is the maximum consecutive?232
3Values:123Values123
4Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3
5333
6111
7222
8
9121212
10
11222
12333
13123123123
14121212
15222
16
17333
18
19
20
21232323
22111
2331313
2422323
2511212
26
27222
2813123123
2922323
30
31131313
Sheet1
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Try these:

Book1
ABCDEFGHIJKLMNO
1How many MAX consecutive blank cells from (for example) B5 to B31:756233Consecut232
2Values:123How many times I had at least one consecutive value:233What is the maximum consecutive?232
3Values:123Values123
4Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3
5333
6111
7222
8
9121212
10
11222
12333
13123123123
14121212
15222
16
17333
18
19
20
21232323
22111
2331313
2422323
2511212
26
27222
2813123123
2922323
30
31131313
Sheet3
Cell Formulas
RangeFormula
B1:D1B1=MAX(FREQUENCY(IF(B5:B31="",ROW(B5:B31)),IF(B5:B31<>"",ROW(B5:B31))))
G1:I1G1=SUM(--(FREQUENCY(IF(G5:G31<>"",ROW(G5:G31)),IF(G5:G31="",ROW(G5:G31)))>1))
L1:N1L1=MAX(FREQUENCY(IF(G5:G31<>"",ROW(G5:G31)),IF(G5:G31="",ROW(G5:G31))))
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Solution
Try these:

Book1
ABCDEFGHIJKLMNO
1How many MAX consecutive blank cells from (for example) B5 to B31:756233Consecut232
2Values:123How many times I had at least one consecutive value:233What is the maximum consecutive?232
3Values:123Values123
4Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3Quarter 1Quarter 2Quarter 3
5333
6111
7222
8
9121212
10
11222
12333
13123123123
14121212
15222
16
17333
18
19
20
21232323
22111
2331313
2422323
2511212
26
27222
2813123123
2922323
30
31131313
Sheet3
Cell Formulas
RangeFormula
B1:D1B1=MAX(FREQUENCY(IF(B5:B31="",ROW(B5:B31)),IF(B5:B31<>"",ROW(B5:B31))))
G1:I1G1=SUM(--(FREQUENCY(IF(G5:G31<>"",ROW(G5:G31)),IF(G5:G31="",ROW(G5:G31)))>1))
L1:N1L1=MAX(FREQUENCY(IF(G5:G31<>"",ROW(G5:G31)),IF(G5:G31="",ROW(G5:G31))))
Press CTRL+SHIFT+ENTER to enter array formulas.

It works! Thank you so much!!!!!
 
Upvote 0

Forum statistics

Threads
1,214,652
Messages
6,120,746
Members
448,989
Latest member
mariah3

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