Formula to determine average wait time for a number to re-appear

D_Spark

Board Regular
Joined
Feb 4, 2007
Messages
232
I need assistance in creating a formula to determine the average wait time for numbers greater than or equal to 200000 to appear in a series.

I have 100 lines of data (BJ100:BJ200)

The wait time will be determine by the row number,eg

BJ100=12
BJ101=200000
BJ102=15000
BJ103=200050
BJ104=9
BJ105=8
BJ106=5555
BJ107=300000
BJ108=0
BJ109=5000000
BJ110=250
BJ111=18
BJ112=0
BJ113=5555
BJ114=300000
BJ115=0
BJ116=250
BJ117=250
BJ118=18
BJ119=5000000




So for the above the expected return will be: the average of (2,4,2,5,5)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
try


Book1
ABCD
1
2BJ100120 
3BJ1012000002
4BJ102150000
5BJ10320005042
6BJ10490
7BJ10580
8BJ10655550
9BJ10730000084
10BJ10800
11BJ1095000000102
12BJ1102500
13BJ111180
14BJ11200
15BJ11355550
16BJ114300000155
17BJ11500
18BJ1162500
19BJ1172500
20BJ118180
21BJ1195000000205
22
233.6
Sheet3
Cell Formulas
RangeFormula
C2=IF(B2>=200000,ROW(A2)-ROW($A$2)+1,0)
D2=IFERROR(IF(C2>0,C2-LOOKUP(2,1/($C1:C$2>0),$C1:C$2),""),"")
D23=AVERAGE(D2:D21)
 
Upvote 0

Forum statistics

Threads
1,223,897
Messages
6,175,270
Members
452,628
Latest member
dd2

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