Max of close values

rdubs

New Member
Joined
Sep 30, 2022
Messages
9
Office Version
  1. 365
Platform
  1. MacOS
Hi there, I hope someone can help.

I have data points for time/speed of moving objects.
The datapoints are clustered within short periods (approx 1.5 seconds), with differing time intervals between each cluster.
I need to find the max value within in a cluster, and also count the clusters.
I tried grouping, but this groups at regular intervals, sometimes splitting the clusters.
TIA


Speed clusters.xlsx
ABCDEF
1
2timespeedtime as number
308:01:11.5017.8444833.3341608912
408:01:11.5508.0844833.3341614583
508:01:11.60614.2844833.3341621065
608:01:11.64917.6744833.3341626042
708:01:11.6997.4844833.3341631829
808:01:11.7929.5544833.3341642593
908:01:11.8628.7244833.3341650694
1008:01:11.91714.6844833.3341657060
1108:01:11.96111.8444833.3341662153
1208:01:12.01517.9644833.3341668403
1308:01:12.07117.8844833.3341674884
1408:01:12.11417.4944833.3341679861
1508:01:12.15618.8144833.3341684722
1608:01:12.19621.3644833.3341689352
1708:01:12.23814.2144833.3341694213
1808:01:12.28019.5444833.3341699074Ungrouped
1908:01:12.33319.9344833.3341705208TimeMax. of speed
2008:01:12.38519.6144833.334171122744833.33416089127.84
2108:01:12.43919.7144833.334171747744833.33416145838.08
2208:01:12.57819.9744833.334173356544833.334162106514.28
2308:01:12.67616.0844833.334174490744833.334162604217.67
2408:01:12.72321.1344833.334175034744833.33416318297.48
2508:01:12.78615.7444833.334175763944833.33416425939.55
2608:01:12.83020.7044833.334176273144833.33416506948.72
2708:01:35.98610.0244833.334444282444833.334165706014.68
2808:01:36.03121.3844833.334444803244833.334166215311.84
2908:01:36.07116.6944833.334445266244833.334166840317.96
3008:01:36.13914.5644833.334446053244833.334167488417.88
3108:01:36.17826.2044833.334446504644833.334167986117.49
3208:01:36.24527.2244833.334447280144833.334168472218.81
3308:01:36.29229.4144833.334447824144833.334168935221.36
3408:01:36.33121.1044833.334448275544833.334169421314.21
3508:01:36.37727.3144833.334448807944833.334169907419.54
3608:01:36.41532.6444833.334449247744833.334170520819.93
3708:01:36.47328.1344833.334449919044833.334171122719.61
3808:01:36.52337.9744833.334450497744833.334171747719.71
3908:01:36.56629.5244833.334450995444833.334173356519.97
4008:01:36.70737.9744833.334452627344833.334174490716.08
4108:02:07.4145.8544833.334808032444833.334175034721.13
4208:02:07.46113.7344833.334808576444833.334175763915.74
4308:02:07.50910.6644833.334809131944833.334176273120.70
4408:02:07.59412.2244833.334810115744833.334444282410.02
4508:02:07.64215.2144833.334810671344833.334444803221.38
4608:02:07.69113.5644833.334811238444833.334445266216.69
4708:02:07.7698.2144833.334812141244833.334446053214.56
4808:02:07.9187.0544833.334813865744833.334446504626.20
4908:02:07.9658.7144833.334814409744833.334447280127.22
5008:02:08.02510.6944833.334815104244833.334447824129.41
5108:02:08.10316.1744833.334816006944833.334448275521.10
5208:02:08.14513.2344833.334816493144833.334448807927.31
5308:02:08.19716.6144833.334817094944833.334449247732.64
5408:02:08.23916.4744833.334817581044833.334449919028.13
5508:02:08.30115.9644833.334818298644833.334450497737.97
5608:02:08.34516.0144833.334818807944833.334450995429.52
5708:02:08.40218.2344833.334819467644833.334452627337.97
5808:02:08.45518.6144833.334820081044833.33480803245.85
5908:02:08.51718.2744833.334820798644833.334808576413.73
6008:02:08.55818.7444833.334821273244833.334809131910.66
6108:02:08.60018.8544833.334821759344833.334810115712.22
6208:02:08.64819.3044833.334822314844833.334810671315.21
6308:02:08.69018.8944833.334822800944833.334811238413.56
6408:02:08.73119.5144833.334823275544833.33481214128.21
6508:02:08.77419.4744833.334823773144833.33481386577.05
6608:02:08.81619.3744833.334824259344833.33481440978.71
6708:02:08.87419.8544833.334824930644833.334815104210.69
6808:02:08.91819.9344833.334825439844833.334816006916.17
6908:02:09.03020.5144833.334826736144833.334816493113.23
7008:02:09.07120.1344833.334827210744833.334817094916.61
7108:02:09.12620.2544833.334827847244833.334817581016.47
7208:02:09.19912.3544833.334828692144833.334818298615.96
7308:02:52.96419.8044833.335335231544833.334818807916.01
7408:02:53.02412.3544833.335335925944833.334819467618.23
7508:02:53.28421.1644833.335338935244833.334820081018.61
7608:02:53.33120.0544833.335339479244833.334820798618.27
7708:02:53.39014.7744833.335340162044833.334821273218.74
7808:02:53.45920.2544833.335340960644833.334821759318.85
7908:02:53.51619.9044833.335341620444833.334822314819.30
8008:02:53.58315.3844833.335342395844833.334822800918.89
8108:02:53.66718.5744833.335343368144833.334823275519.51
8208:02:53.71115.2844833.335343877344833.334823773119.47
8308:02:53.75218.2944833.335344351944833.334824259319.37
8408:02:53.79416.9944833.335344838044833.334824930619.85
8508:02:53.83715.3244833.335345335644833.334825439819.93
8608:02:53.88312.2844833.335345868144833.334826736120.51
8708:02:53.9318.6344833.335346423644833.334827210720.13
8808:02:54.01710.4144833.335347419044833.334827847220.25
8908:02:54.0986.0244833.335348356544833.334828692112.35
9008:02:54.17113.8944833.335349201444833.335335231519.80
9108:02:54.2218.1344833.335349780144833.335335925912.35
9208:02:54.28211.2944833.335350486144833.335338935221.16
9308:02:54.3346.4544833.335351088044833.335339479220.05
9408:03:02.96021.2244833.335450925944833.335340162014.77
9508:03:03.18120.7044833.335453483844833.335340960620.25
9608:03:03.23520.9744833.335454108844833.335341620419.90
9708:03:03.27621.0244833.335454583344833.335342395815.38
9808:03:03.32120.3044833.335455104244833.335343368118.57
9908:03:03.37820.3544833.335455763944833.335343877315.28
10008:03:03.43420.4144833.335456412044833.335344351918.29
10108:03:03.47619.7544833.335456898144833.335344838016.99
10208:03:03.52017.6344833.335457407444833.335345335615.32
10308:03:03.56414.2644833.335457916744833.335345868112.28
10408:03:03.62116.0344833.335458576444833.33534642368.63
10508:03:03.66315.9644833.335459062544833.335347419010.41
10608:03:03.71715.6144833.335459687544833.33534835656.02
10708:03:03.77416.0144833.335460347244833.335349201413.89
10808:03:03.81910.6044833.335460868144833.33534978018.13
10908:03:03.86112.9944833.335461354244833.335350486111.29
11008:03:03.9089.3444833.335461898144833.33535108806.45
11108:03:03.9656.5444833.335462557944833.335450925921.22
11208:03:04.02817.3844833.335463287044833.335453483820.70
11308:03:04.08519.2344833.335463946844833.335454108820.97
11408:03:04.13112.7544833.335464479244833.335454583321.02
11508:03:04.17713.9544833.335465011644833.335455104220.30
11608:03:04.22113.6244833.335465520844833.335455763920.35
11708:03:04.2756.8344833.335466145844833.335456412020.41
11808:03:12.9225.8544833.335566226944833.335456898119.75
11908:03:12.9768.7344833.335566851844833.335457407417.63
12008:03:13.0289.2444833.335567453744833.335457916714.26
12108:03:13.07612.2844833.335568009344833.335458576416.03
12208:03:13.12513.7344833.335568576444833.335459062515.96
12308:03:13.1837.4744833.335569247744833.335459687515.61
12408:03:13.3697.9944833.335571400544833.335460347216.01
12508:03:13.41810.0944833.335571967644833.335460868110.60
12608:03:13.4896.4144833.335572789444833.335461354212.99
12708:03:13.53313.0444833.335573298644833.33546189819.34
12808:03:13.60012.3044833.335574074144833.33546255796.54
12908:03:13.64712.5444833.335574618144833.335463287017.38
13008:03:13.69810.2044833.335575208344833.335463946819.23
13108:03:13.74212.8344833.335575717644833.335464479212.75
13208:03:13.79711.4144833.335576354244833.335465011613.95
13308:03:13.88814.0544833.335577407444833.335465520813.62
13408:03:13.93214.0444833.335577916744833.33546614586.83
13508:03:13.99014.2244833.335578588044833.33556622695.85
13608:03:14.05214.5344833.335579305644833.33556685188.73
13708:03:14.14714.7144833.335580405144833.33556745379.24
13808:03:14.19315.1944833.335580937544833.335568009312.28
13908:03:14.26915.5044833.335581817144833.335568576413.73
14008:03:14.38215.4744833.335583125044833.33556924777.47
14108:03:14.51215.4944833.335584629644833.33557140057.99
14208:03:14.60515.4944833.335585706044833.335571967610.09
14308:03:14.74115.3444833.335587280144833.33557278946.41
14408:03:34.8036.8344833.335819479244833.335573298613.04
14508:03:34.86010.1444833.335820138944833.335574074112.30
14608:03:34.92112.4644833.335820844944833.335574618112.54
14708:03:34.9897.3944833.335821631944833.335575208310.20
14808:03:35.0378.4344833.335822187544833.335575717612.83
14908:03:35.1397.4444833.335823368144833.335576354211.41
15008:03:35.1868.9144833.335823912044833.335577407414.05
15108:03:35.23110.5444833.335824432944833.335577916714.04
15208:03:35.29115.4344833.335825127344833.335578588014.22
15308:03:35.33413.7544833.335825625044833.335579305614.53
15408:03:35.37515.7844833.335826099544833.335580405114.71
15508:03:35.41813.9544833.335826597244833.335580937515.19
15608:03:35.49515.2844833.335827488444833.335581817115.50
15708:03:35.55420.5944833.335828171344833.335583125015.47
15808:03:35.60420.1044833.335828750044833.335584629615.49
15908:03:35.66720.7544833.335829479244833.335585706015.49
16008:03:35.71921.5044833.335830081044833.335587280115.34
16108:03:35.79721.5644833.335830983844833.33581947926.83
16208:03:35.84221.7344833.335831504644833.335820138910.14
16308:03:35.88921.6744833.335832048644833.335820844912.46
16408:03:36.00722.3444833.335833414444833.33582163197.39
16508:03:36.04721.9744833.335833877344833.33582218758.43
16608:03:36.12022.5644833.335834722244833.33582336817.44
16708:03:36.22722.5644833.335835960644833.33582391208.91
16808:04:10.65023.4844833.336234375044833.335824432910.54
16908:04:10.69817.1044833.336234930644833.335825127315.43
17008:04:10.73822.0044833.336235393544833.335825625013.75
17108:04:10.79421.8244833.336236041744833.335826099515.78
17208:04:10.85920.3544833.336236794044833.335826597213.95
17308:04:10.91820.4344833.336237476844833.335827488415.28
17408:04:10.97218.9244833.336238101944833.335828171320.59
17508:04:11.01518.9844833.336238599544833.335828750020.10
17608:04:11.05720.5644833.336239085644833.335829479220.75
17708:04:11.10919.8544833.336239687544833.335830081021.50
Sheet1
Cell Formulas
RangeFormula
C3:C177C3=A3
 

Attachments

  • Screenshot 2022-09-30 at 07.52.30 Medium.jpeg
    Screenshot 2022-09-30 at 07.52.30 Medium.jpeg
    60.5 KB · Views: 27

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"
Hi.

How do you expect us to help you count the clusters and get the maximum speed in each cluster, if you haven't defined how to determine what a cluster is? You need to somehow mark the clusters in the same data that you have presented. Then we can provide formulas which counts how many of there are and also find the maximum speed in each one.

I was at first assuming that you would like it that every cluster is every 1.5 seconds, but you mentioned that there are "differing time intervals between each cluster", so that wouldn't help you.

EDIT:
If you did show us by that image, the resolution is too poor to see. Reattach a high quality image (or better yet, an xl2bb spreadsheet capture) of it.
 
Last edited:
Upvote 0
Hi there. Thanks for steering me.
Here are the first 10 clusters marked.
Depending on the speed of the object, the cluster cover 1 to 3 seconds. The gap between clusters could conceivably be less that this.

Speed clusters.xlsx
ABCD
2timespeedtime as number
308:01:11.5017.8444833.3341608912Cluster 1
408:01:11.5508.0844833.3341614583
508:01:11.60614.2844833.3341621065
608:01:11.64917.6744833.3341626042
708:01:11.6997.4844833.3341631829
808:01:11.7929.5544833.3341642593
908:01:11.8628.7244833.3341650694
1008:01:11.91714.6844833.3341657060
1108:01:11.96111.8444833.3341662153
1208:01:12.01517.9644833.3341668403
1308:01:12.07117.8844833.3341674884
1408:01:12.11417.4944833.3341679861
1508:01:12.15618.8144833.3341684722
1608:01:12.19621.3644833.3341689352
1708:01:12.23814.2144833.3341694213
1808:01:12.28019.5444833.3341699074
1908:01:12.33319.9344833.3341705208
2008:01:12.38519.6144833.3341711227
2108:01:12.43919.7144833.3341717477
2208:01:12.57819.9744833.3341733565
2308:01:12.67616.0844833.3341744907
2408:01:12.72321.1344833.3341750347
2508:01:12.78615.7444833.3341757639
2608:01:12.83020.7044833.3341762731
2708:01:35.98610.0244833.3344442824Cluster 2
2808:01:36.03121.3844833.3344448032
2908:01:36.07116.6944833.3344452662
3008:01:36.13914.5644833.3344460532
3108:01:36.17826.2044833.3344465046
3208:01:36.24527.2244833.3344472801
3308:01:36.29229.4144833.3344478241
3408:01:36.33121.1044833.3344482755
3508:01:36.37727.3144833.3344488079
3608:01:36.41532.6444833.3344492477
3708:01:36.47328.1344833.3344499190
3808:01:36.52337.9744833.3344504977
3908:01:36.56629.5244833.3344509954
4008:01:36.70737.9744833.3344526273
4108:02:07.4145.8544833.3348080324Cluster 3
4208:02:07.46113.7344833.3348085764
4308:02:07.50910.6644833.3348091319
4408:02:07.59412.2244833.3348101157
4508:02:07.64215.2144833.3348106713
4608:02:07.69113.5644833.3348112384
4708:02:07.7698.2144833.3348121412
4808:02:07.9187.0544833.3348138657
4908:02:07.9658.7144833.3348144097
5008:02:08.02510.6944833.3348151042
5108:02:08.10316.1744833.3348160069
5208:02:08.14513.2344833.3348164931
5308:02:08.19716.6144833.3348170949
5408:02:08.23916.4744833.3348175810
5508:02:08.30115.9644833.3348182986
5608:02:08.34516.0144833.3348188079
5708:02:08.40218.2344833.3348194676
5808:02:08.45518.6144833.3348200810
5908:02:08.51718.2744833.3348207986
6008:02:08.55818.7444833.3348212732
6108:02:08.60018.8544833.3348217593
6208:02:08.64819.3044833.3348223148
6308:02:08.69018.8944833.3348228009
6408:02:08.73119.5144833.3348232755
6508:02:08.77419.4744833.3348237731
6608:02:08.81619.3744833.3348242593
6708:02:08.87419.8544833.3348249306
6808:02:08.91819.9344833.3348254398
6908:02:09.03020.5144833.3348267361
7008:02:09.07120.1344833.3348272107
7108:02:09.12620.2544833.3348278472
7208:02:09.19912.3544833.3348286921
7308:02:52.96419.8044833.3353352315Cluster 4
7408:02:53.02412.3544833.3353359259
7508:02:53.28421.1644833.3353389352
7608:02:53.33120.0544833.3353394792
7708:02:53.39014.7744833.3353401620
7808:02:53.45920.2544833.3353409606
7908:02:53.51619.9044833.3353416204
8008:02:53.58315.3844833.3353423958
8108:02:53.66718.5744833.3353433681
8208:02:53.71115.2844833.3353438773
8308:02:53.75218.2944833.3353443519
8408:02:53.79416.9944833.3353448380
8508:02:53.83715.3244833.3353453356
8608:02:53.88312.2844833.3353458681
8708:02:53.9318.6344833.3353464236
8808:02:54.01710.4144833.3353474190
8908:02:54.0986.0244833.3353483565
9008:02:54.17113.8944833.3353492014
9108:02:54.2218.1344833.3353497801
9208:02:54.28211.2944833.3353504861
9308:02:54.3346.4544833.3353510880
9408:03:02.96021.2244833.3354509259Cluster 5
9508:03:03.18120.7044833.3354534838
9608:03:03.23520.9744833.3354541088
9708:03:03.27621.0244833.3354545833
9808:03:03.32120.3044833.3354551042
9908:03:03.37820.3544833.3354557639
10008:03:03.43420.4144833.3354564120
10108:03:03.47619.7544833.3354568981
10208:03:03.52017.6344833.3354574074
10308:03:03.56414.2644833.3354579167
10408:03:03.62116.0344833.3354585764
10508:03:03.66315.9644833.3354590625
10608:03:03.71715.6144833.3354596875
10708:03:03.77416.0144833.3354603472
10808:03:03.81910.6044833.3354608681
10908:03:03.86112.9944833.3354613542
11008:03:03.9089.3444833.3354618981
11108:03:03.9656.5444833.3354625579
11208:03:04.02817.3844833.3354632870
11308:03:04.08519.2344833.3354639468
11408:03:04.13112.7544833.3354644792
11508:03:04.17713.9544833.3354650116
11608:03:04.22113.6244833.3354655208
11708:03:04.2756.8344833.3354661458
11808:03:12.9225.8544833.3355662269Cluster 6
11908:03:12.9768.7344833.3355668518
12008:03:13.0289.2444833.3355674537
12108:03:13.07612.2844833.3355680093
12208:03:13.12513.7344833.3355685764
12308:03:13.1837.4744833.3355692477
12408:03:13.3697.9944833.3355714005
12508:03:13.41810.0944833.3355719676
12608:03:13.4896.4144833.3355727894
12708:03:13.53313.0444833.3355732986
12808:03:13.60012.3044833.3355740741
12908:03:13.64712.5444833.3355746181
13008:03:13.69810.2044833.3355752083
13108:03:13.74212.8344833.3355757176
13208:03:13.79711.4144833.3355763542
13308:03:13.88814.0544833.3355774074
13408:03:13.93214.0444833.3355779167
13508:03:13.99014.2244833.3355785880
13608:03:14.05214.5344833.3355793056
13708:03:14.14714.7144833.3355804051
13808:03:14.19315.1944833.3355809375
13908:03:14.26915.5044833.3355818171
14008:03:14.38215.4744833.3355831250
14108:03:14.51215.4944833.3355846296
14208:03:14.60515.4944833.3355857060
14308:03:14.74115.3444833.3355872801
14408:03:34.8036.8344833.3358194792Cluster 7
14508:03:34.86010.1444833.3358201389
14608:03:34.92112.4644833.3358208449
14708:03:34.9897.3944833.3358216319
14808:03:35.0378.4344833.3358221875
14908:03:35.1397.4444833.3358233681
15008:03:35.1868.9144833.3358239120
15108:03:35.23110.5444833.3358244329
15208:03:35.29115.4344833.3358251273
15308:03:35.33413.7544833.3358256250
15408:03:35.37515.7844833.3358260995
15508:03:35.41813.9544833.3358265972
15608:03:35.49515.2844833.3358274884
15708:03:35.55420.5944833.3358281713
15808:03:35.60420.1044833.3358287500
15908:03:35.66720.7544833.3358294792
16008:03:35.71921.5044833.3358300810
16108:03:35.79721.5644833.3358309838
16208:03:35.84221.7344833.3358315046
16308:03:35.88921.6744833.3358320486
16408:03:36.00722.3444833.3358334144
16508:03:36.04721.9744833.3358338773
16608:03:36.12022.5644833.3358347222
16708:03:36.22722.5644833.3358359606
16808:04:10.65023.4844833.3362343750Cluster 8
16908:04:10.69817.1044833.3362349306
17008:04:10.73822.0044833.3362353935
17108:04:10.79421.8244833.3362360417
17208:04:10.85920.3544833.3362367940
17308:04:10.91820.4344833.3362374768
17408:04:10.97218.9244833.3362381019
17508:04:11.01518.9844833.3362385995
17608:04:11.05720.5644833.3362390856
17708:04:11.10919.8544833.3362396875
17808:04:11.15019.1244833.3362401620
17908:04:11.22716.4444833.3362410532
18008:04:11.27111.3144833.3362415625
18108:04:11.31315.4644833.3362420486
18208:04:11.37410.3744833.3362427546
18308:04:11.42914.7544833.3362433912
18408:04:11.47318.2544833.3362439005
18508:04:11.51716.7544833.3362444097
18608:04:11.58216.2444833.3362451620
18708:04:11.6588.7544833.3362460417
18808:04:11.7108.9044833.3362466435
18908:04:15.09719.9744833.3362858449Cluster 9
19008:04:15.19415.0844833.3362869676
19108:04:15.30519.9344833.3362882523
19208:04:15.45719.7544833.3362900116
19308:04:15.58020.2344833.3362914352
19408:04:15.62118.9244833.3362919097
19508:04:15.67419.4044833.3362925231
19608:04:15.72919.2644833.3362931597
19708:04:15.77717.6344833.3362937153
19808:04:15.81917.4944833.3362942014
19908:04:15.86616.5944833.3362947454
20008:04:15.90816.3744833.3362952315
20108:04:15.97012.2444833.3362959491
20208:04:16.01713.6844833.3362964931
20308:04:16.06413.6344833.3362970370
20408:04:16.11212.2344833.3362975926
20508:04:16.17613.2044833.3362983333
20608:04:16.2287.7244833.3362989352
20708:04:16.2956.1944833.3362997106
20808:04:16.3689.4244833.3363005556
20908:04:16.4499.4044833.3363014931
21008:04:16.4979.9444833.3363020486
21108:04:16.54611.1844833.3363026157
21208:04:59.0637.6344833.3367947106Cluster 10
Sheet1
Cell Formulas
RangeFormula
C3:C212C3=A3
 
Upvote 0
Hi.

How do you expect us to help you count the clusters and get the maximum speed in each cluster, if you haven't defined how to determine what a cluster is? You need to somehow mark the clusters in the same data that you have presented. Then we can provide formulas which counts how many of there are and also find the maximum speed in each one.

I was at first assuming that you would like it that every cluster is every 1.5 seconds, but you mentioned that there are "differing time intervals between each cluster", so that wouldn't help you.

EDIT:
If you did show us by that image, the resolution is too poor to see. Reattach a high quality image (or better yet, an xl2bb spreadsheet capture) of it.

Thanks for helping.
Here is a higher res image, and my previous reply has the clusters in the xl2bb
 

Attachments

  • Screenshot 2022-09-30 at 11.18.14 Large.jpeg
    Screenshot 2022-09-30 at 11.18.14 Large.jpeg
    192.7 KB · Views: 17
Upvote 0
Thanks for helping.
Here is a higher res image, and my previous reply has the clusters in the xl2bb
Please see my image attached. Sorry I am not familiar with XL2BB yet.
Formula for cells in yellow are in row 2.

If we sort the time gap, we can notice what is the appropriate boundary value of time gap for clustering.
 

Attachments

  • xx.JPG
    xx.JPG
    103 KB · Views: 26
Upvote 0
Solution
How about this?
Book1.xlsx
ABCDEFGH
3timespeedtime as numberNumber of Clusters:Max Speed:
408:01:11.5017.841705Cluster 110
508:01:11.5508.078377Cluster 121.356134014
608:01:11.60614.27539Cluster 237.9664604628
708:01:11.64917.66756Cluster 320.5106165742
808:01:11.6997.476635Cluster 421.1591736174
908:01:11.7929.548046Cluster 521.2150763295
1008:01:11.8628.718682Cluster 615.50174978119
1108:01:11.91714.6799Cluster 722.55591682145
1208:01:11.96111.84352Cluster 823.47925844169
1308:01:12.01517.964Cluster 920.22646445190
1408:01:12.07117.88398Cluster 10?213
1508:01:12.11417.49435
1608:01:12.15618.8054
1708:01:12.19621.35613
1808:01:12.23814.21222
1908:01:12.28019.53749
2008:01:12.33319.92533
2108:01:12.38519.60905
2208:01:12.43919.70529
2308:01:12.57819.97489
2408:01:12.67616.07589
2508:01:12.72321.13133
2608:01:12.78615.74491
2708:01:12.83020.69564
2808:01:35.98610.02485Cluster 2
2908:01:36.03121.38457
3008:01:36.07116.69419
3108:01:36.13914.56012
3208:01:36.17826.19872
3308:01:36.24527.22002
3408:01:36.29229.41358
3508:01:36.33121.10356
3608:01:36.37727.31261
3708:01:36.41532.6419
3808:01:36.47328.12577
3908:01:36.52337.96646
4008:01:36.56629.52171
4108:01:36.70737.96646
4208:02:07.4145.854835Cluster 3
4308:02:07.46113.72634
4408:02:07.50910.66389
4508:02:07.59412.22208
4608:02:07.64215.20816
4708:02:07.69113.56403
4808:02:07.7698.214738
4908:02:07.9187.053058
5008:02:07.9658.713952
5108:02:08.02510.68517
5208:02:08.10316.17302
5308:02:08.14513.22884
5408:02:08.19716.60787
5508:02:08.23916.4716
5608:02:08.30115.96403
5708:02:08.34516.01178
5808:02:08.40218.22907
5908:02:08.45518.60928
6008:02:08.51718.27055
6108:02:08.55818.73957
6208:02:08.60018.84955
6308:02:08.64819.30266
6408:02:08.69018.8939
6508:02:08.73119.51375
6608:02:08.77419.46644
6708:02:08.81619.37251
6808:02:08.87419.85144
6908:02:08.91819.92533
7008:02:09.03020.51062
7108:02:09.07120.12508
7208:02:09.12620.25197
7308:02:09.19912.3537
7408:02:52.96419.80248Cluster 4
7508:02:53.02412.3537
7608:02:53.28421.15917
7708:02:53.33120.0497
7808:02:53.39014.77444
7908:02:53.45920.25197
8008:02:53.51619.90064
8108:02:53.58315.38296
8208:02:53.66718.56626
8308:02:53.71115.28051
8408:02:53.75218.29136
8508:02:53.79416.99451
8608:02:53.83715.32425
8708:02:53.88312.27814
8808:02:53.9318.625034
8908:02:54.01710.41492
9008:02:54.0986.023936
9108:02:54.17113.89257
9208:02:54.2218.127436
9308:02:54.28211.29382
9408:02:54.3346.447135
9508:03:02.96021.21508Cluster 5
9608:03:03.18120.69564
9708:03:03.23520.96581
9808:03:03.27621.0207
9908:03:03.32120.30318
10008:03:03.37820.35464
10108:03:03.43420.40637
10208:03:03.47619.75377
10308:03:03.52017.62877
10408:03:03.56414.26271
10508:03:03.62116.02776
10608:03:03.66315.96403
10708:03:03.71715.6072
10808:03:03.77416.01178
10908:03:03.81910.60054
11008:03:03.86112.99338
11108:03:03.9089.3371
11208:03:03.9656.544341
11308:03:04.02817.38075
11408:03:04.08519.23331
11508:03:04.13112.74588
11608:03:04.17713.95292
11708:03:04.22113.62155
11808:03:04.2756.828152
11908:03:12.9225.848439Cluster 6
12008:03:12.9768.728159
12108:03:13.0289.240399
12208:03:13.07612.27814
12308:03:13.12513.72634
12408:03:13.1837.46968
12508:03:13.3697.993934
12608:03:13.41810.08782
12708:03:13.4896.411103
12808:03:13.53313.03556
12908:03:13.60012.29695
13008:03:13.64712.53693
13108:03:13.69810.20318
13208:03:13.74212.82733
13308:03:13.79711.40612
13408:03:13.88814.05058
13508:03:13.93214.0383
13608:03:13.99014.22481
13708:03:14.05214.53377
13808:03:14.14714.70679
13908:03:14.19315.19377
14008:03:14.26915.50175
14108:03:14.38215.47188
14208:03:14.51215.4868
14308:03:14.60515.4868
14408:03:14.74115.33889
14508:03:34.8036.82525Cluster 7
14608:03:34.86010.13877
14708:03:34.92112.45913
14808:03:34.9897.394021
14908:03:35.0378.425925
15008:03:35.1397.435099
15108:03:35.1868.907273
15208:03:35.23110.54485
15308:03:35.29115.42729
15408:03:35.33413.74984
15508:03:35.37515.77585
15608:03:35.41813.95292
15708:03:35.49515.28051
15808:03:35.55420.5895
15908:03:35.60420.09989
16008:03:35.66720.74911
16108:03:35.71921.49908
16208:03:35.79721.5568
16308:03:35.84221.73182
16408:03:35.88921.67316
16508:03:36.00722.33632
16608:03:36.04721.96965
16708:03:36.12022.55592
16808:03:36.22722.55592
16908:04:10.65023.47926Cluster 8
17008:04:10.69817.1031
17108:04:10.73821.99974
17208:04:10.79421.8204
17308:04:10.85920.35464
17408:04:10.91820.43233
17508:04:10.97218.91615
17608:04:11.01518.98323
17708:04:11.05720.56314
17844833.3362419.85144
17944833.3362419.11882
18044833.3362416.43788
18144833.3362411.30973
18244833.3362415.45699
18344833.3362410.37456
18444833.3362414.7473
18544833.3362418.24979
18644833.3362416.74642
18744833.3362516.23844
18844833.336258.747175
18944833.336258.902335
19044833.3362919.97489Cluster 9
19144833.3362915.07964
19244833.3362919.92533
19344833.3362919.75377
19444833.3362920.22646
19544833.3362918.91615
19644833.3362919.39591
19744833.3362919.25637
19844833.3362917.62877
19944833.3362917.49435
20044833.3362916.59072
20144833.336316.37086
20244833.336312.24071
20344833.336313.67957
20444833.336313.63312
20544833.336312.23139
20644833.336313.19623
20744833.33637.721064
20844833.33636.188753
20944833.33639.424773
21044833.33639.397199
21144833.33639.944157
21244833.336311.18371
21344833.336797.625742Cluster 10
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
Sheet6
Cell Formulas
RangeFormula
F4F4=ROWS(FILTER(IF(COUNT(FIND("Cluster",D:D))>0,ROW(D:D),""),IF(COUNT(FIND("Cluster",D:D))>0,D:D,"")<>""))
F5:F14F5="Cluster "&ROW()-4
G5:G14G5=IFERROR(MAX(INDEX(B:B,SEQUENCE(H6-H5,,H5))),"?")
H5:H14H5=FILTER(IF(COUNT(FIND("Cluster",D:D))>0,ROW(D:D),""),IF(COUNT(FIND("Cluster",D:D))>0,D:D,"")<>"")
Dynamic array formulas.
 
Last edited:
Upvote 0
Please see my image attached. Sorry I am not familiar with XL2BB yet.
Formula for cells in yellow are in row 2.

If we sort the time gap, we can notice what is the appropriate boundary value of time gap for clustering.
This is amazing - thanks so much. I'll take time to understand how it works.
I tried to have Time gap sorted (F) and Cluster (H) without the range, just the whole column eg C:C. Is that possible?
 
Upvote 0
How about this?
Book1.xlsx
ABCDEFGH
3timespeedtime as numberNumber of Clusters:Max Speed:
408:01:11.5017.841705Cluster 110
508:01:11.5508.078377Cluster 121.356134014
608:01:11.60614.27539Cluster 237.9664604628
708:01:11.64917.66756Cluster 320.5106165742
808:01:11.6997.476635Cluster 421.1591736174
908:01:11.7929.548046Cluster 521.2150763295
1008:01:11.8628.718682Cluster 615.50174978119
1108:01:11.91714.6799Cluster 722.55591682145
1208:01:11.96111.84352Cluster 823.47925844169
1308:01:12.01517.964Cluster 920.22646445190
1408:01:12.07117.88398Cluster 10?213
1508:01:12.11417.49435
1608:01:12.15618.8054
1708:01:12.19621.35613
1808:01:12.23814.21222
1908:01:12.28019.53749
2008:01:12.33319.92533
2108:01:12.38519.60905
2208:01:12.43919.70529
2308:01:12.57819.97489
2408:01:12.67616.07589
2508:01:12.72321.13133
2608:01:12.78615.74491
2708:01:12.83020.69564
2808:01:35.98610.02485Cluster 2
2908:01:36.03121.38457
3008:01:36.07116.69419
3108:01:36.13914.56012
3208:01:36.17826.19872
3308:01:36.24527.22002
3408:01:36.29229.41358
3508:01:36.33121.10356
3608:01:36.37727.31261
3708:01:36.41532.6419
3808:01:36.47328.12577
3908:01:36.52337.96646
4008:01:36.56629.52171
4108:01:36.70737.96646
4208:02:07.4145.854835Cluster 3
4308:02:07.46113.72634
4408:02:07.50910.66389
4508:02:07.59412.22208
4608:02:07.64215.20816
4708:02:07.69113.56403
4808:02:07.7698.214738
4908:02:07.9187.053058
5008:02:07.9658.713952
5108:02:08.02510.68517
5208:02:08.10316.17302
5308:02:08.14513.22884
5408:02:08.19716.60787
5508:02:08.23916.4716
5608:02:08.30115.96403
5708:02:08.34516.01178
5808:02:08.40218.22907
5908:02:08.45518.60928
6008:02:08.51718.27055
6108:02:08.55818.73957
6208:02:08.60018.84955
6308:02:08.64819.30266
6408:02:08.69018.8939
6508:02:08.73119.51375
6608:02:08.77419.46644
6708:02:08.81619.37251
6808:02:08.87419.85144
6908:02:08.91819.92533
7008:02:09.03020.51062
7108:02:09.07120.12508
7208:02:09.12620.25197
7308:02:09.19912.3537
7408:02:52.96419.80248Cluster 4
7508:02:53.02412.3537
7608:02:53.28421.15917
7708:02:53.33120.0497
7808:02:53.39014.77444
7908:02:53.45920.25197
8008:02:53.51619.90064
8108:02:53.58315.38296
8208:02:53.66718.56626
8308:02:53.71115.28051
8408:02:53.75218.29136
8508:02:53.79416.99451
8608:02:53.83715.32425
8708:02:53.88312.27814
8808:02:53.9318.625034
8908:02:54.01710.41492
9008:02:54.0986.023936
9108:02:54.17113.89257
9208:02:54.2218.127436
9308:02:54.28211.29382
9408:02:54.3346.447135
9508:03:02.96021.21508Cluster 5
9608:03:03.18120.69564
9708:03:03.23520.96581
9808:03:03.27621.0207
9908:03:03.32120.30318
10008:03:03.37820.35464
10108:03:03.43420.40637
10208:03:03.47619.75377
10308:03:03.52017.62877
10408:03:03.56414.26271
10508:03:03.62116.02776
10608:03:03.66315.96403
10708:03:03.71715.6072
10808:03:03.77416.01178
10908:03:03.81910.60054
11008:03:03.86112.99338
11108:03:03.9089.3371
11208:03:03.9656.544341
11308:03:04.02817.38075
11408:03:04.08519.23331
11508:03:04.13112.74588
11608:03:04.17713.95292
11708:03:04.22113.62155
11808:03:04.2756.828152
11908:03:12.9225.848439Cluster 6
12008:03:12.9768.728159
12108:03:13.0289.240399
12208:03:13.07612.27814
12308:03:13.12513.72634
12408:03:13.1837.46968
12508:03:13.3697.993934
12608:03:13.41810.08782
12708:03:13.4896.411103
12808:03:13.53313.03556
12908:03:13.60012.29695
13008:03:13.64712.53693
13108:03:13.69810.20318
13208:03:13.74212.82733
13308:03:13.79711.40612
13408:03:13.88814.05058
13508:03:13.93214.0383
13608:03:13.99014.22481
13708:03:14.05214.53377
13808:03:14.14714.70679
13908:03:14.19315.19377
14008:03:14.26915.50175
14108:03:14.38215.47188
14208:03:14.51215.4868
14308:03:14.60515.4868
14408:03:14.74115.33889
14508:03:34.8036.82525Cluster 7
14608:03:34.86010.13877
14708:03:34.92112.45913
14808:03:34.9897.394021
14908:03:35.0378.425925
15008:03:35.1397.435099
15108:03:35.1868.907273
15208:03:35.23110.54485
15308:03:35.29115.42729
15408:03:35.33413.74984
15508:03:35.37515.77585
15608:03:35.41813.95292
15708:03:35.49515.28051
15808:03:35.55420.5895
15908:03:35.60420.09989
16008:03:35.66720.74911
16108:03:35.71921.49908
16208:03:35.79721.5568
16308:03:35.84221.73182
16408:03:35.88921.67316
16508:03:36.00722.33632
16608:03:36.04721.96965
16708:03:36.12022.55592
16808:03:36.22722.55592
16908:04:10.65023.47926Cluster 8
17008:04:10.69817.1031
17108:04:10.73821.99974
17208:04:10.79421.8204
17308:04:10.85920.35464
17408:04:10.91820.43233
17508:04:10.97218.91615
17608:04:11.01518.98323
17708:04:11.05720.56314
17844833.3362419.85144
17944833.3362419.11882
18044833.3362416.43788
18144833.3362411.30973
18244833.3362415.45699
18344833.3362410.37456
18444833.3362414.7473
18544833.3362418.24979
18644833.3362416.74642
18744833.3362516.23844
18844833.336258.747175
18944833.336258.902335
19044833.3362919.97489Cluster 9
19144833.3362915.07964
19244833.3362919.92533
19344833.3362919.75377
19444833.3362920.22646
19544833.3362918.91615
19644833.3362919.39591
19744833.3362919.25637
19844833.3362917.62877
19944833.3362917.49435
20044833.3362916.59072
20144833.336316.37086
20244833.336312.24071
20344833.336313.67957
20444833.336313.63312
20544833.336312.23139
20644833.336313.19623
20744833.33637.721064
20844833.33636.188753
20944833.33639.424773
21044833.33639.397199
21144833.33639.944157
21244833.336311.18371
21344833.336797.625742Cluster 10
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
Sheet6
Cell Formulas
RangeFormula
F4F4=ROWS(FILTER(IF(COUNT(FIND("Cluster",D:D))>0,ROW(D:D),""),IF(COUNT(FIND("Cluster",D:D))>0,D:D,"")<>""))
F5:F14F5="Cluster "&ROW()-4
G5:G14G5=IFERROR(MAX(INDEX(B:B,SEQUENCE(H6-H5,,H5))),"?")
H5:H14H5=FILTER(IF(COUNT(FIND("Cluster",D:D))>0,ROW(D:D),""),IF(COUNT(FIND("Cluster",D:D))>0,D:D,"")<>"")
Dynamic array formulas.
Thank you so much.

Please can you confirm if this relies on the clusters being pre-defined? I'm hoping the formula can create the clusters, which gifariz's solution does.
 
Upvote 0
Please can you confirm if this relies on the clusters being pre-defined? I'm hoping the formula can create the clusters, which gifariz's solution does.
Yes mine does, but the maximum speed that I got and he got are different for like, the 7th cluster (and several others). So his formula doesn't work for how you defined the clusters. How can it? The rows associated with each cluster are random. Even if me manages to create a formula/function which fits to this specific set of clusters with regression, what good will it do with a new set of data and/or more cluster trials added to this data set?

Again, we cannot know what rows a cluster occupies. It's random! You have to define/mark them yourself somehow.
 
Upvote 0
Yes mine does, but the maximum speed that I got and he got are different for like, the 7th cluster (and several others). So his formula doesn't work for how you defined the clusters. How can it? The rows associated with each cluster are random. Even if me manages to create a formula/function which fits to this specific set of clusters with regression, what good will it do with a new set of data and/or more cluster trials added to this data set?

Again, we cannot know what rows a cluster occupies. It's random! You have to define/mark them yourself somehow.
Thanks cmowla.
I adjusted the gap to 3000 milliseconds and the 2 solutions here now have the same max speeds for each cluster.

I realise that it's not possible to be 100% accurate, but the clustering needs to be 'good enough', which is now most certainly is.

I'm in a good place with this now - thanks to you both.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,322
Members
452,635
Latest member
laura12345

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