Hi everyone,
I need a macro to parse a big data set. The data is logging every second, however I only require the values when it starts, then every 10 minutes after that. I process this file after its collected.
I want to start at the first time in R2C1, copy both the time and the Baro value. So copy R2C1 & R2C2 (both cells) for that time. Then paste these values into another worksheet. Then I need the next value 10 minutes later & repeat it for the entire file. So one continuous loop until all values are pasted into the one worksheet.
Time.........Baro
23:14:13 1022.7
23:14:14 1022.71
23:14:15 1022.67
23:14:16 1022.65
23:14:17 1022.63
23:14:18 1022.63
23:14:19 1022.64
23:14:20 1022.67
23:14:21 1022.69
23:14:22 1022.7
23:14:23 1022.66
23:14:24 1022.66
23:14:25 1022.65
23:14:26 1022.64
23:14:27 1022.65
23:14:28 1022.67
23:14:29 1022.71
23:14:30 1022.72
23:14:31 1022.7
23:14:32 1022.65
............ ...........
23:24:14 1022.60
............ ...........
Heres the code and the attachment I have so far. A loop may be easier.
The macro I recorded copied the first set of values and pasted it into a new sheet, then I added 10 minutes to the initial value in the cell below. Then I copied that new value and searched for it, then copied the correct set. I basically need a loop. This method I am using is not efficient.
Barometer Readings 2.xlsm![]()
Please Login or Register to view this content.
Bookmarks