Compare and combine Date/Times between 2 sheets of data

Sparktracer

New Member
Joined
May 31, 2007
Messages
38
Hello experts,
This is what I want the finished work to look like (S3):

|-- A -- | -- B -- | -- C -- | --D --|-- E --|-- F --|--G --|-- -- H -- -- | -->
8/20/2010 21:18:03 -40 85.6 85 34
8/20/2010 21:19:03 -40 85.4 85 35
8/20/2010 21:20:03 -40 85 85 36 8/20/2010 21:20:43 Calculated Data 0.079 0.048 0.080 0.019 0.078 0.081
8/20/2010 21:21:03 -48.3 84.5 85 37
8/20/2010 21:22:03 -54.7 82.8 -40 xfer 0
8/20/2010 21:23:03 -39 85.5 -40 1
8/20/2010 21:24:03 -38.4 85.9 -40 2
8/20/2010 21:25:03 -39.2 85.5 -40 3
8/20/2010 21:26:03 -40.1 86.2 -40 4
8/20/2010 21:27:03 -40 85.3 -40 5
8/20/2010 21:28:03 -40.2 85.2 -40 6
8/20/2010 21:29:03 -40.2 84.8 -40 7
8/20/2010 21:30:03 -40.2 84.7 -40 8 8/20/2010 21:30:46 Calculated Data 0.051 0.064 0.056 (0.052) 0.023 0.082
8/20/2010 21:31:03 -40.1 84.9 -40 9
8/20/2010 21:32:03 -40.1 85.1 -40 10
8/20/2010 21:33:03 -40.1 85.2 -40 11
8/20/2010 21:34:03 -40.1 85.3 -40 12
8/20/2010 21:35:03 -40 85.5 -40 13
8/20/2010 21:36:03 -40.1 85.1 -40 14
8/20/2010 21:37:03 -40.1 84.9 -40 15
8/20/2010 21:38:03 -40.1 84.9 -40 16
8/20/2010 21:39:03 -40 85.3 -40 17
8/20/2010 21:40:03 -40.1 85.2 -40 18 8/20/2010 21:40:48 Calculated Data 0.055 0.038 0.051 0.028 0.044 0.047
8/20/2010 21:41:03 -40 84.9 -40 19
8/20/2010 21:42:03 -40.4 89 85 xfer 0

Here is the first set of data, (S1):

8/20/2010 21:18:03 -40 85.6 85
8/20/2010 21:19:03 -40 85.4 85
8/20/2010 21:20:03 -40 85 85
8/20/2010 21:21:03 -48.3 84.5 85
8/20/2010 21:22:03 -54.7 82.8 -40
8/20/2010 21:23:03 -39 85.5 -40
8/20/2010 21:24:03 -38.4 85.9 -40
8/20/2010 21:25:03 -39.2 85.5 -40
8/20/2010 21:26:03 -40.1 86.2 -40
8/20/2010 21:27:03 -40 85.3 -40
8/20/2010 21:28:03 -40.2 85.2 -40
8/20/2010 21:29:03 -40.2 84.8 -40
8/20/2010 21:30:03 -40.2 84.7 -40
8/20/2010 21:31:03 -40.1 84.9 -40
8/20/2010 21:32:03 -40.1 85.1 -40
8/20/2010 21:33:03 -40.1 85.2 -40
8/20/2010 21:34:03 -40.1 85.3 -40
8/20/2010 21:35:03 -40 85.5 -40
8/20/2010 21:36:03 -40.1 85.1 -40
8/20/2010 21:37:03 -40.1 84.9 -40
8/20/2010 21:38:03 -40.1 84.9 -40
8/20/2010 21:39:03 -40 85.3 -40
8/20/2010 21:40:03 -40.1 85.2 -40
8/20/2010 21:41:03 -40 84.9 -40
8/20/2010 21:42:03 -40.4 89 85

Here is the second set of data, (S2):

8/20/2010 21:20:43 Calculated Data 0.079 0.048 0.080 0.019 0.078 0.081
8/20/2010 21:30:46 Calculated Data 0.051 0.064 0.056 (0.052) 0.023 0.082
8/20/2010 21:40:48 Calculated Data 0.055 0.038 0.051 0.028 0.044 0.047
8/20/2010 21:50:48 Calculated Data 0.083 0.076 0.076 (0.012) 0.032 0.045
8/20/2010 22:00:49 Calculated Data 0.075 0.068 0.066 0.004 0.077 0.068
8/20/2010 22:10:50 Calculated Data (0.028) 0.014 0.068 (0.025) 0.042 0.049
8/20/2010 22:20:51 Calculated Data 0.056 0.041 0.053 0.020 0.040 0.049
8/20/2010 22:30:53 Calculated Data 0.110 0.065 0.044 0.068 0.129 0.086
8/20/2010 22:40:53 Calculated Data 0.047 0.005 0.088 0.026 0.089 0.063
8/20/2010 22:50:54 Calculated Data 0.122 0.013 0.043 0.090 (0.010) 0.038
8/20/2010 23:00:55 Calculated Data 0.034 0.043 0.045 0.021 0.033 0.049
8/20/2010 23:10:56 Calculated Data 0.062 (0.014) (0.001) (0.002) 0.073 0.035
8/20/2010 23:20:58 Calculated Data 0.048 0.135 0.090 0.011 0.027 0.040
8/20/2010 23:30:58 Calculated Data (0.064) 0.033 0.072 (0.045) (0.014) 0.010
8/20/2010 23:41:00 Calculated Data 0.055 0.044 0.055 0.031 0.051 0.050
8/20/2010 23:51:01 Calculated Data 0.037 0.115 0.447 (0.001) 0.004 0.075

Currently I am comparing the times in S1 column B with the times in S2 column A and then manually moving the data so the times matchup.

I have 3 months of data that I need to combine/compare.
A typical day of data:
S1 has 5 columns and up to 1445 rows.
S2 has 101 columns and up to 145 rows.

I have tried different formulas to move/copy the data from S2 into S1 but have had no luck.
Any assistance with this excel data compare and combine is greatly appreciated.

I am working with Windows XP and Office 2003.
We are allowed to use Macros and VB code. I have done very little with either.

Sparktracer

ps. I do not have HTMLMaker to create the formatted data. Sorry
 
Excel Workbook
ABCDEFGH
1Comment:*******
2********
3DateTimeCold BoxHot BoxLoad 1 SP***
49/7/201023:55:19-40.284.6-40*6*
59/7/201023:56:19-40.284.7-40*7*
69/7/201023:57:19-40.184.4-40*8*
79/7/201023:58:19-40.184.7-40*9*
89/7/201023:59:19-40.184.7-40*10*
99/8/20100:00:01-40.185.3-40*11*
109/8/20100:01:01-40.185.1-40*12*
119/8/20100:02:01-4085.4-40*139/8/2010 0:02:43
129/8/20100:03:01-40.185.4-40*14*
139/8/20100:04:01-40.185.4-40*15*
149/8/20100:05:01-40.185.3-40*16*
159/8/20100:06:01-4084.6-40*17*
169/8/20100:07:01-40.184.4-40*18*
179/8/20100:08:01-4084.9-40*19*
189/8/20100:09:01-40.68985xfer0*
199/8/20100:10:01-40.187.785*1*
209/8/20100:11:01-39.987.585*2*
219/8/20100:12:01-39.986.285*39/8/2010 0:12:44
229/8/20100:13:01-408685*4*
239/8/20100:14:01-4085.885*5*
249/8/20100:15:01-4085.685*6*
259/8/20100:16:01-4084.385*7*
269/8/20100:17:01-40.184.385*8*
279/8/20100:18:01-408585*9*
289/8/20100:19:01-4085.485*10*
299/8/20100:20:01-4085.985*11*
309/8/20100:21:01-4085.485*12*
319/8/20100:22:01-4085.385*139/8/2010 0:22:45
329/8/20100:23:01-4085.285*14*
339/8/20100:24:01-4084.985*15*
349/8/20100:25:01-4084.585*16*
359/8/20100:26:01-4084.585*17*
369/8/20100:27:01-4084.685*18*
379/8/20100:28:01-4084.785*19*
389/8/20100:29:01-43.485.8-40xfer0*
399/8/20100:30:01-37.185.9-40*1*
409/8/20100:31:01-38.984.3-40*2*
419/8/20100:32:01-39.784.8-40*39/8/2010 0:32:46
429/8/20100:33:01-40.184.8-40*4*
439/8/20100:34:01-40.284.4-40*5*
449/8/20100:35:01-40.284.7-40*6*
459/8/20100:36:01-40.284.7-40*7*
469/8/20100:37:01-40.284.8-40*8*
479/8/20100:38:01-40.184.9-40*9*
489/8/20100:39:01-40.185.1-40*10*
499/8/20100:40:01-40.184.7-40*11*
509/8/20100:41:01-40.185.4-40*12*
TR14061 chamber 9-8-2010


This is the machine import with date/time matches and xfer position. Column H date/times are from the S2 data sheet/ These were manually copied to their correct locations.
 
Last edited:
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
Excel Workbook
ABCDEFGH
19/8/2010 0:02:43Calculated Data (mOhms) (0.018)0.0380.064(0.033)0.000(0.001)
29/8/2010 0:12:44Calculated Data (mOhms) 0.0640.0320.1490.026(0.100)0.105
39/8/2010 0:22:45Calculated Data (mOhms) 0.0450.0320.0880.0410.2040.074
49/8/2010 0:32:46Calculated Data (mOhms) (0.077)0.0290.0430.3730.0690.128
59/8/2010 0:42:47Calculated Data (mOhms) (0.163)0.0850.0160.1480.0390.001
69/8/2010 0:52:46Calculated Data (mOhms) 0.1210.1260.0830.0370.212(0.028)
79/8/2010 1:02:48Calculated Data (mOhms) 0.0500.1120.082(0.028)0.0580.059
89/8/2010 1:12:49Calculated Data (mOhms) (0.078)(0.066)0.0500.029(0.088)0.003
99/8/2010 1:22:51Calculated Data (mOhms) (0.069)0.0460.0530.0960.011(0.007)
109/8/2010 1:32:51Calculated Data (mOhms) 0.0380.1000.137(0.054)0.2160.080
119/8/2010 1:42:53Calculated Data (mOhms) 0.0580.0370.0370.023(0.038)0.073
129/8/2010 1:52:54Calculated Data (mOhms) 0.336(0.039)0.0520.086(0.147)0.119
139/8/2010 2:02:55Calculated Data (mOhms) 0.0160.0320.136(0.204)0.0430.072
149/8/2010 2:12:55Calculated Data (mOhms) 0.089(0.098)0.1390.0800.1730.044
159/8/2010 2:22:57Calculated Data (mOhms) 0.0470.0440.0750.0320.1020.036
169/8/2010 2:32:57Calculated Data (mOhms) (0.071)0.012(0.063)0.085(0.016)0.031
179/8/2010 2:42:59Calculated Data (mOhms) (0.019)0.0810.0830.0900.0700.075
189/8/2010 2:53:00Calculated Data (mOhms) 0.0930.1080.083(0.053)0.0950.007
199/8/2010 3:03:00Calculated Data (mOhms) 0.0770.0820.0290.0430.0560.069
209/8/2010 3:13:02Calculated Data (mOhms) 0.4870.097(0.075)0.210(0.007)0.014
219/8/2010 3:23:03Calculated Data (mOhms) (0.102)(0.002)0.0170.0760.0620.073
229/8/2010 3:33:03Calculated Data (mOhms) 0.0650.0500.0800.013(0.195)0.060
239/8/2010 3:43:05Calculated Data (mOhms) 0.0390.0560.0400.0390.1190.069
249/8/2010 3:53:06Calculated Data (mOhms) 0.9590.1740.035(0.270)(0.092)0.139
259/8/2010 4:03:07Calculated Data (mOhms) 0.1020.1580.029(0.034)(0.013)(0.051)
269/8/2010 4:13:08Calculated Data (mOhms) 0.0370.0050.1020.0790.0820.037
279/8/2010 4:23:09Calculated Data (mOhms) 0.0260.0220.0960.0200.1420.075
289/8/2010 4:33:10Calculated Data (mOhms) (0.025)0.0720.0760.1170.0480.050
299/8/2010 4:43:11Calculated Data (mOhms) 0.177(0.034)0.1150.013(0.070)(0.011)
309/8/2010 4:53:12Calculated Data (mOhms) (0.011)0.0750.0550.0560.0550.060
319/8/2010 5:03:13Calculated Data (mOhms) 0.079(0.076)0.0670.055(0.075)0.065
329/8/2010 5:13:14Calculated Data (mOhms) 0.0520.0710.0700.0660.0930.063
339/8/2010 5:23:15Calculated Data (mOhms) 0.1070.0120.058(0.105)0.0220.020
349/8/2010 5:33:16Calculated Data (mOhms) (0.043)0.072(0.016)(0.007)0.053(0.069)
359/8/2010 5:43:17Calculated Data (mOhms) 0.0640.0930.0500.0010.0880.071
369/8/2010 5:53:18Calculated Data (mOhms) 0.0640.1050.0540.0460.0770.073
379/8/2010 6:03:19Calculated Data (mOhms) 0.0690.020(0.021)(0.013)0.0880.162
389/8/2010 6:13:19Calculated Data (mOhms) 0.069(0.007)0.0510.0740.0680.077
399/8/2010 6:23:21Calculated Data (mOhms) 0.0290.0130.0990.0200.0460.077
409/8/2010 6:33:22Calculated Data (mOhms) 0.0690.0540.0770.0200.0190.058
419/8/2010 6:43:23Calculated Data (mOhms) 0.1920.087(0.009)(0.016)(0.014)0.037
429/8/2010 6:53:24Calculated Data (mOhms) 0.0350.0650.0390.0450.007(0.002)
439/8/2010 7:03:25Calculated Data (mOhms) 0.2310.0970.0970.0210.0450.056
449/8/2010 7:13:26Calculated Data (mOhms) 0.0500.0190.066(0.018)(0.033)0.053
459/8/2010 7:23:27Calculated Data (mOhms) 0.0140.080(0.014)0.084(0.105)0.078
469/8/2010 7:33:28Calculated Data (mOhms) 0.0350.0400.099(0.010)(0.036)0.063
479/8/2010 7:43:29Calculated Data (mOhms) 0.0550.0800.1550.0950.2160.082
489/8/2010 7:53:30Calculated Data (mOhms) 0.0450.1120.0700.0340.1250.042
499/8/2010 8:03:31Calculated Data (mOhms) 0.1320.038(0.014)(0.138)0.0250.094
509/8/2010 8:13:31Calculated Data (mOhms) 0.0540.063(0.024)0.060(0.003)0.028
TR14061 DAQ 9-8-2021


This is a small portion of the S2 data sheet. Highlights are manually done to denote hot or cold from S1 data.
 
Upvote 0
Here are copies of some of my final sheet. All this data was manually copied from S2 highlighted rows and then the calculations are done manually also. The first 4 rows are header data that is from a seperate sheet and will be used for all days of data.

Excel Workbook
ABCDEFGH
1AM-34711-003-A
21SP
3Connector/Header pin #218285360
4Initial DC data0.0560.0530.0700.0280.0460.063
59/8/2010 0:02:43Calculated Data (mOhms) (0.018)0.0380.064(0.033)0.000(0.001)
69/8/2010 0:42:47Calculated Data (mOhms) (0.163)0.0850.0160.1480.0390.001
79/8/2010 1:22:51Calculated Data (mOhms) (0.069)0.0460.0530.0960.011(0.007)
89/8/2010 2:02:55Calculated Data (mOhms) 0.0160.0320.136(0.204)0.0430.072
99/8/2010 2:42:59Calculated Data (mOhms) (0.019)0.0810.0830.0900.0700.075
109/8/2010 3:23:03Calculated Data (mOhms) (0.102)(0.002)0.0170.0760.0620.073
119/8/2010 4:03:07Calculated Data (mOhms) 0.1020.1580.029(0.034)(0.013)(0.051)
129/8/2010 4:43:11Calculated Data (mOhms) 0.177(0.034)0.1150.013(0.070)(0.011)
139/8/2010 5:23:15Calculated Data (mOhms) 0.1070.0120.058(0.105)0.0220.020
149/8/2010 6:03:19Calculated Data (mOhms) 0.0690.020(0.021)(0.013)0.0880.162
159/8/2010 6:43:23Calculated Data (mOhms) 0.1920.087(0.009)(0.016)(0.014)0.037
169/8/2010 7:23:27Calculated Data (mOhms) 0.0140.080(0.014)0.084(0.105)0.078
179/8/2010 8:13:31Calculated Data (mOhms) 0.0540.063(0.024)0.060(0.003)0.028
189/8/2010 8:53:35Calculated Data (mOhms) (0.015)0.0490.0050.004(0.046)0.061
199/8/2010 9:33:39Calculated Data (mOhms) 0.0900.1070.1130.2250.120(0.001)
209/8/2010 10:13:44Calculated Data (mOhms) 0.0170.0700.075(0.083)0.0020.029
219/8/2010 10:53:48Calculated Data (mOhms) 0.0530.0690.093(0.011)0.0560.169
229/8/2010 11:33:52Calculated Data (mOhms) (0.050)0.0390.024(0.128)0.049(0.020)
239/8/2010 12:13:56Calculated Data (mOhms) 0.1060.0350.1030.0900.0770.019
249/8/2010 12:54:00Calculated Data (mOhms) 0.1590.0220.0200.092(0.016)0.053
259/8/2010 13:34:04Calculated Data (mOhms) 0.020(0.034)0.035(0.011)0.068(0.016)
269/8/2010 14:14:08Calculated Data (mOhms) 0.042(0.004)0.0690.0140.0380.017
279/8/2010 14:54:12Calculated Data (mOhms) 0.1260.067(0.037)(0.062)0.0880.012
289/8/2010 15:34:15Calculated Data (mOhms) 0.1470.064(0.009)0.128(0.011)(0.008)
299/8/2010 16:14:19Calculated Data (mOhms) (0.019)(0.004)0.0650.0160.0910.113
309/8/2010 16:54:24Calculated Data (mOhms) 0.0350.075(0.063)0.139(0.037)(0.003)
319/8/2010 17:34:28Calculated Data (mOhms) 0.045(0.050)0.027(0.013)0.045(0.075)
329/8/2010 18:14:31Calculated Data (mOhms) 0.0200.0500.0900.0930.2060.055
339/8/2010 18:54:35Calculated Data (mOhms) 0.0380.1320.0590.0710.1570.020
349/8/2010 19:34:40Calculated Data (mOhms) (0.060)0.0400.0080.0980.0300.061
359/8/2010 20:14:44Calculated Data (mOhms) (0.166)0.0580.0880.0220.0710.291
369/8/2010 20:54:47Calculated Data (mOhms) (0.164)0.0770.0050.101(0.001)0.104
379/8/2010 21:34:52Calculated Data (mOhms) 0.1730.0910.027(0.237)0.0110.071
389/8/2010 22:14:55Calculated Data (mOhms) 0.118(0.022)0.078(0.108)0.0420.193
399/8/2010 22:55:00Calculated Data (mOhms) 0.0090.0640.0630.115(0.049)0.026
409/8/2010 23:35:04Calculated Data (mOhms) 0.0880.0170.1040.1410.0510.127
41COLDMin(0.166)(0.050)(0.063)(0.237)(0.105)(0.075)
42Max0.1920.1580.1360.2250.2060.291
43Average0.0320.0470.0430.0240.0330.049
44
Cold and HOT Chamber Scans 9-8


Excel Workbook
ABCDEFGH
44
45HOTAverage0.0590.0460.0670.0340.0570.060
46Max0.2310.1170.1550.0950.2160.084
47Min0.023(0.076)0.000(0.028)(0.146)0.005
489/8/2010 0:22:45Calculated Data (mOhms) 0.0450.0320.0880.0410.2040.074
499/8/2010 1:02:48Calculated Data (mOhms) 0.0500.1120.082(0.028)0.0580.059
509/8/2010 1:42:53Calculated Data (mOhms) 0.0580.0370.0370.023(0.038)0.073
519/8/2010 2:22:57Calculated Data (mOhms) 0.0470.0440.0750.0320.1020.036
529/8/2010 3:03:00Calculated Data (mOhms) 0.0770.0820.0290.0430.0560.069
539/8/2010 3:43:05Calculated Data (mOhms) 0.0390.0560.0400.0390.1190.069
549/8/2010 4:23:09Calculated Data (mOhms) 0.0260.0220.0960.0200.1420.075
559/8/2010 5:03:13Calculated Data (mOhms) 0.079(0.076)0.0670.055(0.075)0.065
569/8/2010 5:43:17Calculated Data (mOhms) 0.0640.0930.0500.0010.0880.071
579/8/2010 6:23:21Calculated Data (mOhms) 0.0290.0130.0990.0200.0460.077
589/8/2010 7:03:25Calculated Data (mOhms) 0.2310.0970.0970.0210.0450.056
599/8/2010 7:43:29Calculated Data (mOhms) 0.0550.0800.1550.0950.2160.082
609/8/2010 8:33:34Calculated Data (mOhms) 0.0630.0290.0790.0690.1210.063
619/8/2010 9:13:38Calculated Data (mOhms) 0.0560.0430.0830.0600.1070.058
629/8/2010 9:53:42Calculated Data (mOhms) 0.059(0.008)0.0870.0200.0280.071
639/8/2010 10:33:46Calculated Data (mOhms) 0.0520.0800.0620.0550.1090.064
649/8/2010 11:13:49Calculated Data (mOhms) 0.0540.0570.036(0.013)0.0850.072
659/8/2010 11:53:54Calculated Data (mOhms) 0.0450.1010.0740.039(0.016)0.055
669/8/2010 12:33:58Calculated Data (mOhms) 0.0470.0640.0850.0180.0030.054
679/8/2010 13:14:02Calculated Data (mOhms) 0.0600.0340.0420.031(0.018)0.064
689/8/2010 13:54:06Calculated Data (mOhms) 0.0490.0670.107(0.012)0.0580.064
699/8/2010 14:34:10Calculated Data (mOhms) 0.0620.0950.0450.0800.1630.054
709/8/2010 15:14:13Calculated Data (mOhms) 0.0470.0280.0440.045(0.002)0.012
719/8/2010 15:54:18Calculated Data (mOhms) 0.0730.0760.0000.0140.0780.069
729/8/2010 16:34:22Calculated Data (mOhms) 0.0640.0590.0520.076(0.039)0.074
739/8/2010 17:14:26Calculated Data (mOhms) 0.0410.0430.0950.0040.1050.084
749/8/2010 17:54:29Calculated Data (mOhms) 0.0860.0190.0680.0830.1150.075
759/8/2010 18:34:34Calculated Data (mOhms) 0.047(0.015)0.0420.0470.0280.033
769/8/2010 19:14:37Calculated Data (mOhms) 0.0540.0870.082(0.005)0.1670.064
779/8/2010 19:54:42Calculated Data (mOhms) 0.0600.0580.070(0.024)0.1200.074
789/8/2010 20:34:45Calculated Data (mOhms) 0.039(0.022)0.0870.042(0.129)0.041
799/8/2010 21:14:50Calculated Data (mOhms) 0.023(0.040)0.0200.068(0.038)0.025
809/8/2010 21:54:54Calculated Data (mOhms) 0.062(0.059)0.086(0.003)0.0910.063
819/8/2010 22:34:58Calculated Data (mOhms) 0.0330.1170.0270.081(0.146)0.005
829/8/2010 23:15:02Calculated Data (mOhms) 0.0960.1090.0220.0300.0360.040
839/8/2010 23:55:06Calculated Data (mOhms) 0.0590.0520.0930.0470.0580.072
Cold and HOT Chamber Scans 9-8
 
Upvote 0
Okay, so as this can end up being a moderate to large project, let's do this in segments, or keep it somewhat modular. That way if you want to do additional items to your data, you can just code it and drop it on.

What I would like to know is if you want this from a userform, or rather more importantly, where do you want to fire this code from. It sounds like a prime candidate for an add-in.
 
Upvote 0
So copy S1 worksheet A through H down to the last row, over to a newly created workbook. Then your S2 data, go through the data and where the date and time and where the rows find a match, copy data to that same row of S1's data. No other data from S2 should be copied? This will output to a new workbook?
 
Upvote 0
So copy S1 worksheet A through H down to the last row, over to a newly created workbook. Then your S2 data, go through the data and where the date and time and where the rows find a match, copy data to that same row of S1's data. No other data from S2 should be copied? This will output to a new workbook?

I import S1 data to S1, columns A - E.
I then import S2 data to S2, columns A - CW.
I then copy the header data into S3 from a master header file.
I then create columns F and G on S1, showing xfer and comditional formating to highlight rows 8 to 18 in a temp range, based off of xfer.
I then copy column A from S2 into column H of S1, aligning the times that match between H and B.
Then, based off of the 8 to 18 "window", I highlight the rows on S2 that are desired. The highlight color denotes a hot or cold reading.
I then copy just the desired cold readings to S3, create the minimum, maximum, and average values for all cold data.
I copy the min, max, avg rows from cold and past below the cold values.
I then copy the desired hot rows from S2 into S3.
I then adjust the the min, max, avg formulas for the hot data.

I hope this clears things up a bit.
 
Upvote 0
I import S1 data to S1, columns A - E.
I then import S2 data to S2, columns A - CW.
I then copy the header data into S3 from a master header file.
I then create columns F and G on S1, showing xfer and comditional formating to highlight rows 8 to 18 in a temp range, based off of xfer.
I then copy column A from S2 into column H of S1, aligning the times that match between H and B.
Then, based off of the 8 to 18 "window", I highlight the rows on S2 that are desired. The highlight color denotes a hot or cold reading.
I then copy just the desired cold readings to S3, create the minimum, maximum, and average values for all cold data.
I copy the min, max, avg rows from cold and past below the cold values.
I then copy the desired hot rows from S2 into S3.
I then adjust the the min, max, avg formulas for the hot data.

I hope this clears things up a bit.

Lost me at the bold line. What do you mean "8 to 18"? Why those specific rows? Is it always rows 8 to 18 on S1? And when you copy S2 data which matches time, what columns from S2 are you grabbing? Cols A through...? Have you done this while recording a macro? That would give us a great start, and many, many details for us. :)
 
Upvote 0
Lost me at the bold line. What do you mean "8 to 18"? Why those specific rows? Is it always rows 8 to 18 on S1? And when you copy S2 data which matches time, what columns from S2 are you grabbing? Cols A through...? Have you done this while recording a macro? That would give us a great start, and many, many details for us. :)

Sorry about that. If you look at the S1 data, column G. The rows in column F that say xfer, column G is a zero. I then incriment column G by 1 until column F is equal to xfer again. I then have conditional formating to highlight in blue, the window of 8 to 18. This is the times from S2 that I want to use in S3.
I am grabbing just column A from S2 and manually comparing the date/times to S1 column B.

If it would be easier in VBA to take all columns from S2 into S1 and then sort the times, that is fine with me. We can then basically just delete all rows that have no data in S1 column H and then delete rows that are not in the 8 to 18 window.
 
Upvote 0
Ok. I'm heading out for a bit, may not get back to this today. If you can record a macro of you doing this and post the macro, that would help also.

Also, how do you want to fire this off? Open a workbook, have a button there? On your command bar as a menu?
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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