What I want to do is a bit complicated and I was hoping there was some scripts or macros that I could start with and simply modify to fit my needs since I am too novice to start entirely from scratch.
The project involves run-time data from wells. We are using estimated flow rates multiplied by the recorded run-times to estimate water use.
STEP 1:
Every month we download data from automatic recorders. The raw data is an excel workbook with 3 columns (ID, Date/Time, On/Off) The recorder records the time when the pump kicks on and off. What I need to create is macro or a script that will look at this raw data, prompt the user for a specified date range, then copy that data into a New Sheet in a different workbook.
Step 2:
Once Monthly Data is in its own sheet, I need to create 3 new columns. The first new column is conditional calculation based on whether the record shows ON or OFF in col3 (effectively calculating the run time for each time the pump turns on and off). This new value is then multiplied by a value (the flow rate estimate) from a different table.
Step 3:
I need to have a summery table that Sums the total run-time for the month, the total water use for the month and standard error based on our range of predicted flow-rates.
Step 4:
Once all the summary calculations are complete for each site, I need the results copied into a summary table in a separate workbook.
I know this is alot. I have sample data I can send out if requested.
If I need to explain anything better let me know.
Thanks in advance
The project involves run-time data from wells. We are using estimated flow rates multiplied by the recorded run-times to estimate water use.
STEP 1:
Every month we download data from automatic recorders. The raw data is an excel workbook with 3 columns (ID, Date/Time, On/Off) The recorder records the time when the pump kicks on and off. What I need to create is macro or a script that will look at this raw data, prompt the user for a specified date range, then copy that data into a New Sheet in a different workbook.
Step 2:
Once Monthly Data is in its own sheet, I need to create 3 new columns. The first new column is conditional calculation based on whether the record shows ON or OFF in col3 (effectively calculating the run time for each time the pump turns on and off). This new value is then multiplied by a value (the flow rate estimate) from a different table.
Step 3:
I need to have a summery table that Sums the total run-time for the month, the total water use for the month and standard error based on our range of predicted flow-rates.
Step 4:
Once all the summary calculations are complete for each site, I need the results copied into a summary table in a separate workbook.
I know this is alot. I have sample data I can send out if requested.
If I need to explain anything better let me know.
Thanks in advance