A formula that counts last consecutive filled cells

Oi_Oi_Olivia

New Member
Joined
Aug 2, 2017
Messages
2
Hi all,
This is a brain twister for me but I've looked around and you've helped on similar things so I hope you can help me.
My data looks like this
7/17/27/37/47/57/67/7TotalLast consecutive total
11122
21121
311111163
411111161
5111111177

<tbody>
</tbody>

Can you help with a formula for the last column?
For context this is the length of the current period of time in which an event has occurred daily.
TIA,
Olviia
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi Olivia
Welcome to the board

Try in I2:

=1/LOOKUP(2,1/FREQUENCY(IF(A2:G2<>"",COLUMN(A2:G2)),IF(A2:G2="",COLUMN(A2:G2))))

This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER and not just ENTER.

Copy down
 
Upvote 0

Forum statistics

Threads
1,215,356
Messages
6,124,475
Members
449,164
Latest member
Monchichi

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