courtney p
New Member
- Joined
- Feb 19, 2010
- Messages
- 4
I'm hoping one of you brilliant minds out there can help me out. I'm brand new to VBA, and am currently stumped by this step in my macro. I have been given the task of importing a text file system log into excel, weeding out the data that I need, putting a timestamp on each entry, and then taking the pertinent data and plugging it into simple average and percentage formulas. I've gotten so far as the import and timestamp, but now I need to find the rows that fall into the time parameters that we care about. Each day the system log will start and end at different times - so I have an input box where I enter the start time and that is plugged into cell A1 in hh:mm:ss AM/PM format. It then autofills the cells in the column adding 30 seconds to each following row since the log captures data on an every 30 second loop. Here's my problem - I need to find the cell that contains a 9:30 PM start time and a 7:00 AM start time and then from those rows, I need to take the data that is in column J and plug that number into an average formula - for example, row 17 has the 9:30 PM start time, and row 1114 has the 7:00 AM start time, so the formula needs to be = AVERAGE(J17:J1114). This will vary in each file, but the start and end time that I need to find, and the column with the pertinent data will stay the same.
Please let me know if you need more information and I will do my very best to reply clearly. Thanks so much!!
Please let me know if you need more information and I will do my very best to reply clearly. Thanks so much!!