finding changes and looking back

dmheller

Board Regular
Joined
May 26, 2017
Messages
156
Office Version
  1. 365
i have a set of data, starts in column A and ges to P then i was messing with it in Q and R but in column D, the values will be low then spike up to ~15. What i want to do is find that spike it will happen i believe 15 times, and look back about 10 seconds then take an average of the last 10 data points. So the first spike is at 8:28:53, i want to go 10 rows up to 8:28:43 then average 8:28:33 to 8:28:43. Then i would need to do this all again at the 8:30:01 time stamp. Back 10 seconds, average back.
Any help would be great.
These would go into a new column labeled 1-14.
Thanks in advance.
testo 7-26-24.xlsx
ABCDEFGHIJKLMNOPQR
307/26/2024 8:28:30 AM2874.30.25246611.371033.010330.015489.31.210.70.9763.1x50.290.286875
317/26/2024 8:28:31 AM2974.30.21235111.401031.010310.015489.31.010.70.9763.1x50.290.2875
327/26/2024 8:28:32 AM3074.30.16223611.441029.010290.015589.40.810.60.9763.1x50.290.285
337/26/2024 8:28:33 AM3174.30.16212611.441027.010270.015789.40.810.60.9763.1x50.280.2825
347/26/2024 8:28:34 AM3274.30.16203311.451025.010250.015989.40.810.60.9763.1x50.280.280625
357/26/2024 8:28:35 AM3374.30.20196711.441024.010240.016189.40.910.60.9763.1x50.280.281875
367/26/2024 8:28:36 AM3474.30.23193411.421024.010240.016389.51.110.50.9763.3x50.280.283125
377/26/2024 8:28:37 AM3574.30.22193911.421024.010240.016489.51.110.50.9763.3x50.280.279375
387/26/2024 8:28:38 AM3674.10.22198411.421025.010250.016589.41.110.60.9763.3x50.270.270625
397/26/2024 8:28:39 AM3774.10.19206111.431025.010250.016789.40.910.60.9763.3x50.260.26
407/26/2024 8:28:40 AM3874.10.18215711.431024.010240.016889.40.910.60.9763.3x50.250.245625
417/26/2024 8:28:41 AM3974.10.20224911.411024.010240.016989.41.010.60.9763.3x50.230.233125
427/26/2024 8:28:42 AM4074.10.25231911.381025.010250.017089.41.210.60.9663.3x50.230.22625
437/26/2024 8:28:43 AM4174.10.35235811.321027.010270.017089.31.710.70.9763.1x50.230.22625
447/26/2024 8:28:44 AM4274.10.35237611.321030.010300.017089.31.710.70.9763.1x50.230.226875
457/26/2024 8:28:45 AM4374.10.36239411.311032.010320.017189.31.710.70.9763.0x50.230.230625
467/26/2024 8:28:46 AM4474.10.37240611.311032.010320.017189.31.810.70.9763.0x50.240.238125
477/26/2024 8:28:47 AM4574.10.38240911.301032.010320.017289.31.810.70.9763.1x50.250.24875
487/26/2024 8:28:48 AM4674.10.42238911.281031.010310.017389.32.010.70.9763.0x50.270.265
497/26/2024 8:28:49 AM4774.11.39234310.741027.010270.017289.37.110.70.9763.0x50.340.341875
507/26/2024 8:28:50 AM4873.84.8622668.801007.010070.017589.130.310.90.9763.0x50.640.635625
517/26/2024 8:28:51 AM4973.89.5121686.21960.09600.019988.883.511.20.9763.0x51.221.2175
527/26/2024 8:28:52 AM5073.813.3820574.05889.08890.023188.2178.111.80.9763.3x52.042.039375
537/26/2024 8:28:53 AM5173.816.0019412.59805.08050.023087.2326.712.80.9763.3x53.033.025625
547/26/2024 8:28:54 AM5273.917.5518281.73720.07200.021786.1524.113.90.9763.9x54.111
557/26/2024 8:28:55 AM5373.915.9417172.64643.06430.016487.5321.112.50.9763.9x55.091
567/26/2024 8:28:56 AM5473.915.9416032.65587.05870.016487.7321.112.30.9763.9x56.081
577/26/2024 8:28:57 AM5574.112.1614854.78570.15700.113088.8139.211.20.9763.7x56.831
587/26/2024 8:28:58 AM5674.18.4413616.87591.95892.910189.367.710.70.9763.7x57.341
597/26/2024 8:28:59 AM5774.35.7812348.37635.26314.27989.538.210.50.9763.5x57.681
607/26/2024 8:29:00 AM5874.34.2011049.26690.36855.36889.625.210.40.9763.5x57.921
617/26/2024 8:29:01 AM5974.33.349779.76746.37415.36389.719.010.30.9763.7x58.101
627/26/2024 8:29:02 AM6074.52.8286010.05803.17976.16489.715.610.30.9763.7x58.261
637/26/2024 8:29:03 AM6174.52.5275310.23857.98516.96589.713.710.30.9763.7x58.391
647/26/2024 8:29:04 AM6274.82.3565910.33910.39028.36989.812.610.20.9763.9x58.511
657/26/2024 8:29:05 AM6374.82.2657810.39957.09489.07789.812.110.20.9763.9x58.571
667/26/2024 8:29:06 AM6474.82.2251210.42998.59899.58489.811.910.20.9763.9x58.408.400625
677/26/2024 8:29:07 AM6575.22.1945410.441033.910249.99989.811.710.20.9764.0x57.947.943125
687/26/2024 8:29:08 AM6675.22.1940710.441062.910539.99989.811.710.20.9764.0x57.247.24375
697/26/2024 8:29:09 AM6775.22.2136710.431090.5108010.510389.911.810.10.9764.2x56.386.381875
707/26/2024 8:29:10 AM6875.22.2233410.431117.4110710.410889.911.910.10.9764.2x55.425.42375
717/26/2024 8:29:11 AM6975.62.1830910.451147.2113710.211289.911.710.10.9764.4x54.564.56375
727/26/2024 8:29:12 AM7075.62.0828510.511175.2116510.211689.911.110.10.9764.4x53.703.6975
737/26/2024 8:29:13 AM7175.61.9826410.571200.0119010.011889.910.410.10.9764.4x53.063.06125
747/26/2024 8:29:14 AM7275.71.9024710.621220.0121010.011889.910.010.10.9764.2x52.652.6525
757/26/2024 8:29:15 AM7375.71.864710.651235.812269.811890.09.810.00.9764.2x12.412.4075
767/26/2024 8:29:16 AM7476.11.874410.651247.812389.812089.99.810.10.9763.9x12.262.261875
777/26/2024 8:29:17 AM7576.11.924110.621259.0124910.013089.910.110.10.9763.9x12.172.173125
787/26/2024 8:29:18 AM7676.32.003810.581267.2125710.213289.910.610.10.9763.7x12.122.121875
797/26/2024 8:29:19 AM7776.32.003610.581275.2126510.213289.910.610.10.9763.7x12.092.089375
807/26/2024 8:29:20 AM7876.51.993410.581283.2127310.213389.910.510.10.9764.0x12.072.066875
817/26/2024 8:29:21 AM7976.51.943210.611289.112809.113489.910.210.10.9764.0x12.052.046875
827/26/2024 8:29:22 AM8076.81.893210.641293.712858.713389.910.010.10.9764.4x12.032.02625
837/26/2024 8:29:23 AM8176.81.873210.651298.212908.213589.99.810.10.9764.8x12.012.00625
847/26/2024 8:29:24 AM8276.81.843410.671304.212968.213589.99.610.10.9764.8x11.981.984375
857/26/2024 8:29:25 AM8377.01.813710.691310.113028.113589.99.510.10.9764.9x11.961.959375
867/26/2024 8:29:26 AM8477.01.824110.681317.313098.313689.99.510.10.9764.9x11.931.934375
877/26/2024 8:29:27 AM8577.01.844510.671323.213158.213789.99.610.10.9764.9x11.911.913125
887/26/2024 8:29:28 AM8677.01.834910.671329.213218.214089.99.610.10.9764.9x11.901.8975
897/26/2024 8:29:29 AM8777.21.815310.681335.413278.414089.99.510.10.9764.4x11.891.886875
907/26/2024 8:29:30 AM8877.01.835610.671340.413328.414089.99.610.10.9764.2x11.881.8825
917/26/2024 8:29:31 AM8977.01.845910.661342.213348.214189.99.710.10.9764.2x11.881.88125
927/26/2024 8:29:32 AM9077.21.826110.671340.913337.914089.99.610.10.9764.2x11.881.878125
937/26/2024 8:29:33 AM9177.21.786310.701336.313288.313889.99.310.10.9764.2x11.871.869375
947/26/2024 8:29:34 AM9277.21.746510.721329.313218.313889.99.110.10.9764.2x11.851.853125
957/26/2024 8:29:35 AM9377.21.766710.711319.813118.813789.99.210.10.9764.2x11.841.838125
967/26/2024 8:29:36 AM9477.21.806910.691311.213029.213689.99.410.10.9764.2x11.831.82625
977/26/2024 8:29:37 AM9577.41.827010.681303.512949.513689.99.510.10.9764.0x11.821.81875
987/26/2024 8:29:38 AM9677.41.787110.701297.812889.813589.99.310.10.9764.0x11.811.811875
997/26/2024 8:29:39 AM9777.41.767210.711294.0128410.013489.99.210.10.9764.2x11.811.805
1007/26/2024 8:29:40 AM9877.41.767410.711293.2128310.213389.99.210.10.9764.2x11.801.8
1017/26/2024 8:29:41 AM9977.51.747610.721297.3128710.313389.99.110.10.9764.0x11.801.795625
1027/26/2024 8:29:42 AM10077.51.747910.721297.3128710.313389.99.110.10.9764.0x11.791.790625
1037/26/2024 8:29:43 AM10177.71.748410.721298.6128810.613389.99.110.10.9764.2x11.781.784375
1047/26/2024 8:29:44 AM10277.91.778910.701296.8128610.813289.99.310.10.9764.0x11.781.780625
1057/26/2024 8:29:45 AM10377.91.809610.681294.1128311.113289.99.410.10.9764.0x11.781.78
1067/26/2024 8:29:46 AM10478.31.8310310.671290.1127911.113289.99.610.10.9763.9x11.781.78
1077/26/2024 8:29:47 AM10578.31.8510910.651287.2127611.213289.99.710.10.9763.9x11.781.780625
1087/26/2024 8:29:48 AM10678.41.8611510.651288.5127711.513289.99.810.10.9763.5x11.781.783125
1097/26/2024 8:29:49 AM10778.41.8612110.651290.7127911.713289.89.810.20.9763.5x11.791.788125
1107/26/2024 8:29:50 AM10878.41.8712610.641294.1128212.113289.89.810.20.9763.5x11.801.79625
1117/26/2024 8:29:51 AM10978.61.8713210.641296.0128412.013189.89.810.20.9663.5x11.801.803125
1127/26/2024 8:29:52 AM11078.61.8113810.671295.7128411.713089.89.510.20.9663.5x11.801.80375
1137/26/2024 8:29:53 AM11178.61.7214610.721289.5127811.512989.89.010.20.9763.7x11.801.7975
1147/26/2024 8:29:54 AM11278.61.6515510.771289.5127811.512989.88.610.20.9763.7x11.791.789375
1157/26/2024 8:29:55 AM11378.61.6016310.791284.3127311.312889.88.310.20.9763.9x11.781.779375
1167/26/2024 8:29:56 AM11478.61.6517110.761278.912699.912589.98.610.10.9664.9x11.771.7725
1177/26/2024 8:29:57 AM11578.62.5517810.261271.112647.113289.913.910.10.9664.9x11.821.823125
1187/26/2024 8:29:58 AM11678.85.751848.471255.112487.113289.837.910.20.9665.5x12.072.07375
1197/26/2024 8:29:59 AM11778.810.091896.041206.412024.412489.693.310.40.9665.5x12.602.595625
1207/26/2024 8:30:00 AM11878.613.731934.001125.611232.615189.4191.410.60.9765.3x13.343.343125
1217/26/2024 8:30:01 AM11978.616.141962.651027.110243.121589.0339.011.00.9765.3x14.241
1227/26/2024 8:30:02 AM12078.416.711982.33928.99226.917688.8398.711.20.9764.8x15.171
1237/26/2024 8:30:03 AM12178.314.451973.60854.68459.613989.3224.010.70.9764.6x15.961
1247/26/2024 8:30:04 AM12278.310.641935.73876.986610.913389.6103.810.40.9764.6x16.511
1257/26/2024 8:30:05 AM12378.47.211857.65876.986610.913389.752.610.30.9764.2x16.841
1267/26/2024 8:30:06 AM12478.44.841748.98956.494511.410889.830.210.20.9764.2x17.031
1277/26/2024 8:30:07 AM12578.63.421609.771050.2103812.27489.819.510.20.9764.4x17.121
1287/26/2024 8:30:08 AM12678.62.6014610.231144.4113212.46489.814.210.20.9764.4x17.177.171875
1297/26/2024 8:30:09 AM12778.82.1213410.511231.4121912.46489.911.310.10.9764.4x17.207.196875
1307/26/2024 8:30:10 AM12879.01.8412410.661307.6129512.66589.99.610.10.9764.2x17.217.20875
1317/26/2024 8:30:11 AM12979.01.6811910.751372.7136012.76589.98.710.10.9764.2x17.217.21375
1327/26/2024 8:30:12 AM13079.21.5911810.801428.2141513.27089.98.210.10.9764.2x17.217.21
1337/26/2024 8:30:13 AM13179.21.5612110.821473.6146013.67489.98.110.10.9764.2x17.157.148125
1347/26/2024 8:30:14 AM13279.31.5812810.811512.9149913.97989.88.210.20.9764.0x16.896.8875
testo
Cell Formulas
RangeFormula
Q30:Q134Q30=AVERAGE(D15:D30)
R30:R134R30=IF(AND(Q30>3,Q29>3,(Q30-Q29)>0.05),1,Q30)
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
What data point do you want to be taken as the spike? The maximum of the spike? The first value that is greater than 15?
In how many data points in (in front and after) would we be looking for this conditions?

What if you have something like this?:
1722016428526.png


What would be the spike point?
Or would something like this never happen?
 
Upvote 0
I am looking to find the spike go back 20 seconds or 20 data points then average the 20th back to the 10th back.
that spike you show might happen. Its hard to say. All our data we are looking for would be less than 8 though. The spike would not come below 8 unless we caused it to.
 
Upvote 0
would this work?:

We search for the first value over 15, and take that as the spike point. Than go back 20 data points and take 10. I colored the datapoints that are averaged by the formula.
Is this correct? Let me know.

Column T is just for control.

Book4.xlsx
ABCDEFGHIJKLMNOPQRST
1Date TimeHeader Col DAverage from 20 to 10 data points before the first value over 15Control (delete)
22024-07-26 08:28:302874.30.25246611.3710331033015489.31.210.70.9763.1x57.55561.8975 
32024-07-26 08:28:312974.30.21235111.410311031015489.3110.70.9763.1x57.79631.8869 
42024-07-26 08:28:323074.30.16223611.4410291029015589.40.810.60.9763.1x57.98251.8825 
52024-07-26 08:28:333174.30.13212611.4410271027015789.40.810.60.9763.1x58.13561.8813 
62024-07-26 08:28:343274.30.16203311.4510251025015989.40.810.60.9763.1x58.26941.8781 
72024-07-26 08:28:353374.30.2196711.4410241024016189.40.910.60.9763.1x58.391.8694 
82024-07-26 08:28:363474.30.23193411.4210241024016389.51.110.50.9763.3x58.44441.8531 
92024-07-26 08:28:373574.30.22193911.4210241024016489.51.110.50.9763.3x58.27941.8381 
102024-07-26 08:28:383674.10.22198411.4210251025016589.41.110.60.9763.3x57.82191.8263 
112024-07-26 08:28:393774.10.19206111.4310251025016789.40.910.60.9763.3x57.12251.8188 
122024-07-26 08:28:403874.10.18215711.4310241024016889.40.910.60.9763.3x56.26061.8119 
132024-07-26 08:28:413974.10.2224911.4110241024016989.4110.60.9763.3x55.30251.805 
142024-07-26 08:28:424074.10.25231911.3810251025017089.41.210.60.9663.3x54.56381.8 
152024-07-26 08:28:434174.10.35235811.3210271027017089.31.710.70.9763.1x53.69751.7956 
162024-07-26 08:28:444274.10.35237611.3210301030017089.31.710.70.9763.1x53.06131.7906 
172024-07-26 08:28:454374.10.36239411.3110321032017189.31.710.70.9763x52.65251.7844 
182024-07-26 08:28:464474.10.37240611.3110321032017189.31.810.70.9763x52.40751.7806 
192024-07-26 08:28:474574.10.38240911.310321032017289.31.810.70.9763.1x52.26191.78 
202024-07-26 08:28:484674.10.42238911.2810311031017389.3210.70.9763x52.17311.78 
212024-07-26 08:28:494774.11.39234310.7410271027017289.37.110.70.9763x52.12191.7806 
222024-07-26 08:28:504873.84.8622668.810071007017589.130.310.90.9763x52.08941.7831 
232024-07-26 08:28:514973.89.5121686.21960960019988.883.511.20.9763x52.06691.7881 
242024-07-26 08:28:525073.813.3820574.05889889023188.2178.111.80.9763.3x52.04691.7963 
252024-07-26 08:28:535173.81619412.59805805023087.2326.712.80.9763.3x52.02631.80310.1980.198
262024-07-26 08:28:545273.917.5518281.73720720021786.1524.113.90.9763.9x52.00631.8038 
272024-07-26 08:28:555373.91417172.64643643016487.5321.112.50.9763.9x51.98441.7975 
282024-07-26 08:28:565473.915.9416032.65587587016487.7321.112.30.9763.9x51.95941.7894 
292024-07-26 08:28:575574.112.1614854.78570.15700.113088.8139.211.20.9763.7x51.93441.7794 
302024-07-26 08:28:585674.18.4413616.87591.95892.910189.367.710.70.9763.7x51.91311.7725 
312024-07-26 08:28:595774.35.7812348.37635.26314.27989.538.210.50.9763.5x51.89751.8231 
322024-07-26 08:29:005874.34.211049.26690.36855.36889.625.210.40.9763.5x51.88692.0738 
332024-07-26 08:29:015974.33.349779.76746.37415.36389.71910.30.9763.7x51.88252.5956 
342024-07-26 08:29:026074.52.8286010.05803.17976.16489.715.610.30.9763.7x51.88133.3431 
352024-07-26 08:29:036174.52.5275310.23857.98516.96589.713.710.30.9763.7x51.87811 
362024-07-26 08:29:046274.82.3565910.33910.39028.36989.812.610.20.9763.9x51.86941 
372024-07-26 08:29:056374.82.2657810.3995794897789.812.110.20.9763.9x51.85311 
382024-07-26 08:29:066474.82.2251210.42998.59899.58489.811.910.20.9763.9x51.83811 
392024-07-26 08:29:076575.22.1945410.441033.910249.99989.811.710.20.9764x51.82631 
402024-07-26 08:29:086675.22.1940710.441062.910539.99989.811.710.20.9764x51.81881 
412024-07-26 08:29:096775.22.2136710.431090.5108010.510389.911.810.10.9764.2x51.81191 
422024-07-26 08:29:106875.22.2233410.431117.4110710.410889.911.910.10.9764.2x51.8057.1719 
432024-07-26 08:29:116975.62.1830910.451147.2113710.211289.911.710.10.9764.4x51.87.1969 
442024-07-26 08:29:127075.62.0828510.511175.2116510.211689.911.110.10.9764.4x51.79567.2088 
452024-07-26 08:29:137175.61.9826410.57120011901011889.910.410.10.9764.4x51.79067.2138 
462024-07-26 08:29:147275.71.924710.62122012101011889.91010.10.9764.2x51.78447.21 
472024-07-26 08:29:157375.71.864710.651235.812269.8118909.8100.9764.2x11.78067.1481 
482024-07-26 08:29:167476.11.874410.651247.812389.812089.99.810.10.9763.9x11.786.8875 
492024-07-26 08:29:177576.11.924110.62125912491013089.910.110.10.9763.9x11.786.674 
502024-07-26 08:29:187676.323810.581267.2125710.213289.910.610.10.9763.7x11.78066.17 
512024-07-26 08:29:197776.323610.581275.2126510.213289.910.610.10.9763.7x11.78315.4031 
522024-07-26 08:29:207876.51.993410.581283.2127310.213389.910.510.10.9764x11.78814.4608 
532024-07-26 08:29:217976.51.943210.611289.112809.113489.910.210.10.9764x11.79633.5527 
542024-07-26 08:29:228076.81.893210.641293.712858.713389.91010.10.9764.4x11.80312.844 
552024-07-26 08:29:238176.81.873210.651298.212908.213589.99.810.10.9764.8x11.80382.3589 
562024-07-26 08:29:248276.81.843410.671304.212968.213589.99.610.10.9764.8x11.79752.0488 
572024-07-26 08:29:2583771.813710.691310.113028.113589.99.510.10.9764.9x11.78941.8529 
582024-07-26 08:29:2684771.824110.681317.313098.313689.99.510.10.9764.9x11.77941.7283 
592024-07-26 08:29:2785771.844510.671323.213158.213789.99.610.10.9764.9x11.77251.65 
602024-07-26 08:29:2886771.834910.671329.213218.214089.99.610.10.9764.9x11.82311.6025 
612024-07-26 08:29:298777.21.815310.681335.413278.414089.99.510.10.9764.4x12.07381.5767 
622024-07-26 08:29:3088771.835610.671340.413328.414089.99.610.10.9764.2x12.59561.57 
632024-07-26 08:29:3189771.845910.661342.213348.214189.99.710.10.9764.2x13.34311.58 
642024-07-26 08:29:329077.21.826110.671340.913337.914089.99.610.10.9764.2x14.2394###### 
652024-07-26 08:29:339177.21.786310.71336.313288.313889.99.310.10.9764.2x15.1694###### 
662024-07-26 08:29:349277.21.746510.721329.313218.313889.99.110.10.9764.2x15.9569###### 
672024-07-26 08:29:359377.21.766710.711319.813118.813789.99.210.10.9764.2x16.5056###### 
682024-07-26 08:29:369477.21.86910.691311.213029.213689.99.410.10.9764.2x16.84###### 
692024-07-26 08:29:379577.41.827010.681303.512949.513689.99.510.10.9764x17.0256###### 
702024-07-26 08:29:389677.41.787110.71297.812889.813589.99.310.10.9764x17.1225###### 
712024-07-26 08:29:399777.41.767210.71129412841013489.99.210.10.9764.2x17.1719###### 
722024-07-26 08:29:409877.41.767410.711293.2128310.213389.99.210.10.9764.2x17.1969###### 
732024-07-26 08:29:419977.51.747610.721297.3128710.313389.99.110.10.9764x17.2088###### 
742024-07-26 08:29:4210077.51.747910.721297.3128710.313389.99.110.10.9764x17.2138###### 
752024-07-26 08:29:4310177.71.748410.721298.6128810.613389.99.110.10.9764.2x17.21###### 
762024-07-26 08:29:4410277.91.778910.71296.8128610.813289.99.310.10.9764x17.1481###### 
772024-07-26 08:29:4510377.91.89610.681294.1128311.113289.99.410.10.9764x16.8875###### 
782024-07-26 08:29:4610478.31.8310310.671290.1127911.113289.99.610.10.9763.9x16.674###### 
792024-07-26 08:29:4710578.31.8510910.651287.2127611.213289.99.710.10.9763.9x16.170 
802024-07-26 08:29:4810678.41.8611510.651288.5127711.513289.99.810.10.9763.5x15.40310 
812024-07-26 08:29:4910778.41.8612110.651290.7127911.713289.89.810.20.9763.5x14.46080 
822024-07-26 08:29:5010878.41.8712610.641294.1128212.113289.89.810.20.9763.5x13.55270 
832024-07-26 08:29:5110978.61.8713210.64129612841213189.89.810.20.9663.5x12.8440 
842024-07-26 08:29:5211078.61.8113810.671295.7128411.713089.89.510.20.9663.5x12.35890 
852024-07-26 08:29:5311178.61.7214610.721289.5127811.512989.8910.20.9763.7x12.04880 
862024-07-26 08:29:5411278.61.6515510.771289.5127811.512989.88.610.20.9763.7x11.85290 
872024-07-26 08:29:5511378.61.616310.791284.3127311.312889.88.310.20.9763.9x11.72830 
882024-07-26 08:29:5611478.61.6517110.761278.912699.912589.98.610.10.9664.9x11.650 
892024-07-26 08:29:5711578.62.5517810.261271.112647.113289.913.910.10.9664.9x11.60250 
902024-07-26 08:29:5811678.85.751848.471255.112487.113289.837.910.20.9665.5x11.57670 
912024-07-26 08:29:5911778.810.091896.041206.412024.412489.693.310.40.9665.5x11.570 
922024-07-26 08:30:0011878.613.7319341125.611232.615189.4191.410.60.9765.3x11.580 
932024-07-26 08:30:0111978.616.141962.651027.110243.121589339110.9765.3x1######01.8061.806
942024-07-26 08:30:0212078.416.711982.33928.99226.917688.8398.711.20.9764.8x1######0 
952024-07-26 08:30:0312178.314.451973.6854.68459.613989.322410.70.9764.6x1######0 
962024-07-26 08:30:0412278.310.641935.73876.986610.913389.6103.810.40.9764.6x1######0 
972024-07-26 08:30:0512378.47.211857.65876.986610.913389.752.610.30.9764.2x1######0 
982024-07-26 08:30:0612478.44.841748.98956.494511.410889.830.210.20.9764.2x1######0 
992024-07-26 08:30:0712578.63.421609.771050.2103812.27489.819.510.20.9764.4x1######0 
1002024-07-26 08:30:0812678.62.614610.231144.4113212.46489.814.210.20.9764.4x1######0 
1012024-07-26 08:30:0912778.82.1213410.511231.4121912.46489.911.310.10.9764.4x1######0 
1022024-07-26 08:30:10128791.8412410.661307.6129512.66589.99.610.10.9764.2x1######0 
1032024-07-26 08:30:11129791.6811910.751372.7136012.76589.98.710.10.9764.2x1######0 
1042024-07-26 08:30:1213079.21.5911810.81428.2141513.27089.98.210.10.9764.2x1######0 
1052024-07-26 08:30:1313179.21.5612110.821473.6146013.67489.98.110.10.9764.2x1######0 
1062024-07-26 08:30:1413279.31.5812810.811512.9149913.97989.88.210.20.9764x1######0 
Sheet2
Cell Formulas
RangeFormula
Q2:Q106Q2=AVERAGE(D16:D31)
R2:R106R2=IF(AND(Q31>3,Q30>3,(Q31-Q30)>0.05),1,Q31)
S2:S106S2=LET( r, D2, s, SEQUENCE(21,,-20), d, N(OFFSET(r, s, 0, 1, 1)), max, MAX(DROP(d, -1)), IFERROR(IF((r >= 15)*(max < 15), AVERAGE(TAKE(d, 10)), NA()), "") )
T25,T93T25=AVERAGE(D5:D14)
 
Upvote 0
Solution
thank you very much for this. This will help. I had been doing it with around 6 helper columns and it was a mess.
 
Upvote 0
Thanks for the feedback. Happy to help
In my efforts to learn, i been looking at the equation and it is great. I tried to use the same criteria and get an average of column E if the same is triggered. I see it is based on equation names and other things but i cant get it to work. I am sure you have a quick fix for this maybe. How would i get the same 10 data point average for column e as well?
 
Upvote 0
in T2 for example try this and copy down:

Excel Formula:
=LET(
r, D2,
s, SEQUENCE(21,,-20),
d, N(OFFSET(r, s, 0, 1, 1)),
v, N(OFFSET(r, s, 1, 1, 1)),
max, MAX(DROP(d, -1)),
IFERROR(IF((r >= 15)*(max < 15), AVERAGE(TAKE(v, 10)), NA()), "")
)
 
Upvote 0
in T2 for example try this and copy down:

Excel Formula:
=LET(
r, D2,
s, SEQUENCE(21,,-20),
d, N(OFFSET(r, s, 0, 1, 1)),
v, N(OFFSET(r, s, 1, 1, 1)),
max, MAX(DROP(d, -1)),
IFERROR(IF((r >= 15)*(max < 15), AVERAGE(TAKE(v, 10)), NA()), "")
)
that's it, thank you.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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