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
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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