Count Max Number of successive Data in Multiple Rows/Columns

scowie

New Member
Joined
Jun 6, 2016
Messages
3
Hello,

I am having issues calculating the maximum number of successive data in an array. I do have the formula for calculating the max number of successive data in a single row.

However, my issue is I want to use that formula and apply it to rows below row 2 and beyond and have it return the maximum number of successive data including all of the rows.

Here is an example if my explanation was unclear:
MAX DATA IN SUCCESSION
111113
1112
111115

<tbody>
</tbody>

So the formula for calculating the max data in succession for row 2, for example, would be:

=(MAX(FREQUENCY(IF(A2:F2<>"",COLUMN(A2:F2)),IF(A2:F2="",COLUMN(A2:F2))))

From this, I would like to combine the formulas into one and have the formula consider all data (A2:F4) and return the max number of successive data (which would be 5).

Thanks for your help!!
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,214,808
Messages
6,121,681
Members
449,048
Latest member
81jamesacct

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