Hi,
I'm afraid this is a rather long-winded description of my problem but I can't think of any way of making it shorter and yet clear!
I handle several large time-series datasets. These consist of two parts. The first part is data which is recorded automatically by a data-logger at 15 minute intervals. This dataset is uninterrupted from the start - ie there is a record for every single 15-minute interval since the start of the dataset.
The data is collected from the data-logger in a .csv format which can be directly imported into Excel. The logger uses an odd time reference format with a number 1-365 in one column for day of the year, and a military-time style number in another column for time (115 for 1:15am, 2045 for 20:45, etc).
The second part is data describing manually-collected samples at intervals ranging from 8 hours to 24 hours. This is entered into separate worksheets with the date and time of the sample in one column as dd/mm/yyyy hh:mm , and then the data items in subsequent columns. The sample times have all been rounded to the nearest 15 minutes to (in theory!) match a logged data item.
I need to be able to readily match up this intermittent sample data with the 15-minute logged data to produce a worksheet which contains all the logged data and then also the sample data in those rows where a sample time matches the logged time.
I am having several problems with this and would appreciate any suggestions. My current method is this:
1) Import the logger data into Excel. Manually generate the date/time field in dd/mm/yyyy hh:mm format by typing in, for instance
21/07/2004 16:00
21/07/2004 16:15
and then using autofill.
2) Import this data file into an Access database. The dataset consists of well over 65536 rows so I cannot handle the entire set in Excel. Furthermore I intended to use Access to match the two datasets by relating the date/time fields.
3) Enter the sample data manually into another Excel file with a date/time field in the same format.
4) Import this into another Access table
5) Relate the date/time field of the two datasets to each other in the database with a type 2 join: All records of logged data, and records of sample data with a matching date/time field.
6) Query the database to extract a portion of the time-series that I need to work on, which can then be exported to Excel for further analysis with the sample times and logged times in matching rows.
Unfortunately at step 6, although some samples are placed alongside the correct row of logged data, most do not appear. I get a complete set of the logged data which contains at best a few of the sample data.
The problem appears to be that Access is unable to recognise values in the date/time fields of the two datasets as being equal and therefore the query does not show records from the sample data as they are not recognised as matching anything in the logged data field.
Although the problem I am having actually occurs in Access I think it is most likely due to my doing something wrong with the date/time values in Excel, hence posting to this board!
I'd really appreciate ANY suggestions - either as to what I might be doing wrong with this method, or of a completely different (and probably easier!) way of achieving what I'm trying to do!
Many thanks,
Harry Gibson
I'm afraid this is a rather long-winded description of my problem but I can't think of any way of making it shorter and yet clear!
I handle several large time-series datasets. These consist of two parts. The first part is data which is recorded automatically by a data-logger at 15 minute intervals. This dataset is uninterrupted from the start - ie there is a record for every single 15-minute interval since the start of the dataset.
The data is collected from the data-logger in a .csv format which can be directly imported into Excel. The logger uses an odd time reference format with a number 1-365 in one column for day of the year, and a military-time style number in another column for time (115 for 1:15am, 2045 for 20:45, etc).
The second part is data describing manually-collected samples at intervals ranging from 8 hours to 24 hours. This is entered into separate worksheets with the date and time of the sample in one column as dd/mm/yyyy hh:mm , and then the data items in subsequent columns. The sample times have all been rounded to the nearest 15 minutes to (in theory!) match a logged data item.
I need to be able to readily match up this intermittent sample data with the 15-minute logged data to produce a worksheet which contains all the logged data and then also the sample data in those rows where a sample time matches the logged time.
I am having several problems with this and would appreciate any suggestions. My current method is this:
1) Import the logger data into Excel. Manually generate the date/time field in dd/mm/yyyy hh:mm format by typing in, for instance
21/07/2004 16:00
21/07/2004 16:15
and then using autofill.
2) Import this data file into an Access database. The dataset consists of well over 65536 rows so I cannot handle the entire set in Excel. Furthermore I intended to use Access to match the two datasets by relating the date/time fields.
3) Enter the sample data manually into another Excel file with a date/time field in the same format.
4) Import this into another Access table
5) Relate the date/time field of the two datasets to each other in the database with a type 2 join: All records of logged data, and records of sample data with a matching date/time field.
6) Query the database to extract a portion of the time-series that I need to work on, which can then be exported to Excel for further analysis with the sample times and logged times in matching rows.
Unfortunately at step 6, although some samples are placed alongside the correct row of logged data, most do not appear. I get a complete set of the logged data which contains at best a few of the sample data.
The problem appears to be that Access is unable to recognise values in the date/time fields of the two datasets as being equal and therefore the query does not show records from the sample data as they are not recognised as matching anything in the logged data field.
Although the problem I am having actually occurs in Access I think it is most likely due to my doing something wrong with the date/time values in Excel, hence posting to this board!
I'd really appreciate ANY suggestions - either as to what I might be doing wrong with this method, or of a completely different (and probably easier!) way of achieving what I'm trying to do!
Many thanks,
Harry Gibson