Hi All!
We have an automation system that manages several hundred jobs each day. We need to record the start and end time for each job. Up to now this was done with an Excel sheet and we manually input the time. That wastes a lot of time each day, so we want to automate the work.
We have gotten to the point where the data is loaded into one sheet via MS-Query and using Vlookup, we load the start and end times in a different sheet. If the run time of the job is too long or the difference between expected start time and actual start time is too great (e.g. 30 minutes) we change the color of a specified field as an indicator that the job has a problem.
So far, that all works fine for jobs that run once a day. However, we have jobs that run several times a day, for example once an hour. We need a way to pick out the entry for a specific time. To make matters worse, the start time could vary +/- 10 minutes, so we need something check if the start time falls within a particular range.
So, in a nutshell, what I need is some way to check three cells with the third being a time range:
Col 1: automation_name (hardcoded)
Col 2: hostname (hardcoded)
Col 3: expected_start (hardcoded)
Col 4: actual_start (loaded from other sheet)
If automation_name matches
and hostname matches
and ( (actual_start >= expected_start-10min) and
(actual_start <= expected_start+10min)
then
write actual_start into cell
else
actual_start cell is red
Any help would be appreaciated.
We have an automation system that manages several hundred jobs each day. We need to record the start and end time for each job. Up to now this was done with an Excel sheet and we manually input the time. That wastes a lot of time each day, so we want to automate the work.
We have gotten to the point where the data is loaded into one sheet via MS-Query and using Vlookup, we load the start and end times in a different sheet. If the run time of the job is too long or the difference between expected start time and actual start time is too great (e.g. 30 minutes) we change the color of a specified field as an indicator that the job has a problem.
So far, that all works fine for jobs that run once a day. However, we have jobs that run several times a day, for example once an hour. We need a way to pick out the entry for a specific time. To make matters worse, the start time could vary +/- 10 minutes, so we need something check if the start time falls within a particular range.
So, in a nutshell, what I need is some way to check three cells with the third being a time range:
Col 1: automation_name (hardcoded)
Col 2: hostname (hardcoded)
Col 3: expected_start (hardcoded)
Col 4: actual_start (loaded from other sheet)
If automation_name matches
and hostname matches
and ( (actual_start >= expected_start-10min) and
(actual_start <= expected_start+10min)
then
write actual_start into cell
else
actual_start cell is red
Any help would be appreaciated.