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

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Forum statistics

Threads
1,223,881
Messages
6,175,159
Members
452,615
Latest member
bogeys2birdies

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