how to get the number of times, average of times, and last occurrence when a value repeats consecutively

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
The setup

A1
S
S
S
D
D
S
S
S
D
D
D
D

A1 is the column I get my values from
B1 would be a helper column that's numeric

B1
1
2
3
4
5
6
7
8
9
10
11
12

I need a formula that will tell me how many times the S REPEATED 3 times REFERENCE TO B1
the average time of the occurrence, and the last time it occurred in reference to b1 (the helper row). Note I have about 8500 values to look in

The answer to the first question should be 2

And last occurrence answer should be 8 via helper row B1: b12
 

Some videos you may like

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Watch MrExcel Video

Forum statistics

Threads
1,122,632
Messages
5,597,287
Members
414,134
Latest member
Tiyas44

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
Top