Speed up slow array index calculations

Asbestos_Jen

Active Member
Joined
May 12, 2017
Messages
281
Office Version
  1. 2007
Platform
  1. Windows
I have the following setup that pulls the Average, Minimum, and Maximum velocity for each test from the raw data imported as shown from a csv file generated by the flow meter. There could be as many as 50 tests per event, and as few as 24. The “header” section of each test is always the same layout, but the number of measurements in each test varies between 20 and ~30.

My formula works, but is painfully slow. Can anyone see a way to streamline it so it runs faster? Any solution must work in Excel 2007, but I am open to VBA solutions.

Thanks!

Summary:
WIP_Hood template VAV 2024-12-20.xlsm
ABCDEFGHIJK
2Ft/minTotal # Tests:35Average:72.69Min:0Max:116
3Metric/T#Test_001Test_002Test_003Test_004Test_005Test_006Test_007Test_008Test_009Test_010
4Test #12345678910
5Average:58.9057.0066.0053.0057.0059.0053.0052.0056.0063.00
6Minimum:54.0052.0057.0039.0044.0051.0044.0043.0050.0054.00
7Maximum:63.0060.0072.0066.0069.0066.0067.0060.0061.0070.00
DataSummary
Cell Formulas
RangeFormula
D2D2=COUNTIF('Raw Data'!B:B,$A$5)
F2F2=AVERAGE($5:$5)
H2H2=MIN(B5:AY7)
J2J2=MAX(B5:AY7)
B5:K7B5=IFERROR(INDEX('Raw Data'!$C:$C,SMALL(IF('Raw Data'!$B:$B=$A5,ROW('Raw Data'!$B:$B)-ROW(INDEX('Raw Data'!$B:$B,1,1))+1),B$4)),$R$1)
Press CTRL+SHIFT+ENTER to enter array formulas.

Raw Data:
WIP_Hood template VAV 2024-12-20.xlsm
ABCDE
1LogDat2 Data File
2
3Model Number:9545-A
4Serial Number:9545A1130001
5Test ID:1
6Test Abbreviation:Test 001
7Start Date:30/07/2018
8Start Time:09:52:28
9Duration (dd:hh:mm:ss):0:00:00:20
10Log Interval (mm:ss):00:01
11Number of points:20
12Notes:Test 001
13
14Reading TypeStandard
15Temperature21.1deg C
16Pressure29.92inHg
17
18StatisticsChannel:VelTH
19Units:ft/mindeg C%rh
20Average:58.920.365
21Minimum:5420.364.8
22Time of Minimum:09:52:3809:52:4409:52:48
23Date of Minimum:30/07/201830/07/201830/07/2018
24Maximum:6320.465.3
25Time of Maximum:09:52:3009:52:2909:52:29
26Date of Maximum:30/07/201830/07/201830/07/2018
27
28CalibrationMeter:18/01/2017
29CalibrationSensor:VelTH
30Cal. Date18/01/201718/01/201718/01/2017
31
32DateTimeVelTH
33dd/MM/yyyyhh:mm:ssft/mindeg C%rh
3430/07/201809:52:296120.465.3
3530/07/201809:52:306220.465.3
3630/07/201809:52:316120.465.3
3730/07/201809:52:326120.465.2
3830/07/201809:52:336020.465.1
3930/07/201809:52:346120.465.1
4030/07/201809:52:355520.465.1
4130/07/201809:52:365720.465
4230/07/201809:52:375520.465
4330/07/201809:52:385420.465
4430/07/201809:52:395620.365
4530/07/201809:52:405720.364.9
4630/07/201809:52:415720.364.9
4730/07/201809:52:425820.364.9
4830/07/201809:52:435820.364.9
4930/07/201809:52:446020.364.9
5030/07/201809:52:456120.364.8
5130/07/201809:52:466320.364.8
5230/07/201809:52:476220.364.8
5330/07/201809:52:485920.364.8
5430/07/201809:52:496120.364.8
55
56Model Number:9545-A
57Serial Number:9545A1130001
58Test ID:2
59Test Abbreviation:Test 002
60Start Date:30/07/2018
61Start Time:09:52:54
62Duration (dd:hh:mm:ss):0:00:00:20
63Log Interval (mm:ss):00:01
64Number of points:20
65Notes:Test 002
66
67Reading TypeStandard
68Temperature21.1deg C
69Pressure29.92inHg
70
71StatisticsChannel:VelTH
72Units:ft/mindeg C%rh
73Average:5720.264.8
74Minimum:5220.264.8
75Time of Minimum:09:53:1409:53:0509:52:55
76Date of Minimum:30/07/201830/07/201830/07/2018
77Maximum:6020.364.9
78Time of Maximum:09:53:0709:52:5509:53:13
79Date of Maximum:30/07/201830/07/201830/07/2018
80
81CalibrationMeter:18/01/2017
82CalibrationSensor:VelTH
83Cal. Date18/01/201718/01/201718/01/2017
84
85DateTimeVelTH
86dd/MM/yyyyhh:mm:ssft/mindeg C%rh
8730/07/201809:52:555520.364.8
8830/07/201809:52:565320.364.8
8930/07/201809:52:575520.364.8
9030/07/201809:52:585720.364.8
9130/07/201809:52:595520.364.8
9230/07/201809:53:005720.364.8
9330/07/201809:53:015720.364.8
9430/07/201809:53:025920.364.8
9530/07/201809:53:035520.364.8
9630/07/201809:53:045820.364.9
9730/07/201809:53:055820.264.8
9830/07/201809:53:076020.264.8
9930/07/201809:53:076020.264.8
10030/07/201809:53:085920.264.9
10130/07/201809:53:096020.264.9
10230/07/201809:53:106020.264.9
10330/07/201809:53:115820.264.9
10430/07/201809:53:125520.264.9
10530/07/201809:53:135320.264.9
10630/07/201809:53:145220.264.9
107
Raw Data
Cell Formulas
RangeFormula
C20C20=AVERAGE(C34:C53)
C21C21=MIN(C34:C53)
C24C24=MAX(C34:C53)
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,872
Messages
6,181,499
Members
453,047
Latest member
charlie_odd

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