Help with a formula to determine average wait time for recurrence of a number in a range

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
I require help with a formula to determine average wait time for recurrence of a number in a range

I have a range

A1=1
A2=2
A3=2
A4=1
A5=1
A6=3
A7=3
A8=4
A9=4
A10=1
A11=1
A12=2
A13=1
A14=3
A15=1
A16=2
A17=1
A18=4
A19=3
A20=1


If I was to enter "1" in cell D1
I wish a formula in E1 to reflect 2.375

this being

3 (A4 to A1)
1 (A5 to A4)
5 (A10 to A5)
1 (A11 to A10)
2 (A13 to A11)
2 (A15 to A13)
2 (A17 to A15)
3 (A20 to A17)

2.375
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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