Prometheus2015
New Member
- Joined
- Jun 13, 2015
- Messages
- 6
Hello,
This is my first forum post on the Internet. I guess I should start with defining the manual process that I think Excel can automate.
There are offices in multiple cities, all working 9am to 6pm in their respective time zones. There are processes that are run at the Head Office that works on India standard time. Selected offices across the world will run that process at the same time, if they are working. For example: A process is started at 11:00 hours IST and runs till 16:00 hours IST. The Selected cities that will participate are say, London and Tokyo. In London, the start time would therefore be 05:30 GMT and end time would be 09:30 GMT. Similarly, the start time for Tokyo would be 14:30 Japan time and end would be 19:30 Japan time. Now, let's see how many working hours for London and Tokyo respective is that:
For London, it would be 30 minutes (since office start time is 9 am).
For Tokyo, it would be 3 hours 30 minutes (since office stop time is 6 pm).
For Delhi (India), it would be the full 4 hours since both process start time and process end time are within working hours.
Such processes would occur every few days through the month. At the end of the month, I need to calculate the total time per city.
I have manually created an Excel sheet that can give you a visual of the data available and the output required. I've shared the file on http://jmp.sh/EDOZ2ES.
Would greatly appreciate your help in automating this calculation using formulae/VBA/macros in Excel.
Thanks and regards,
Sagar
This is my first forum post on the Internet. I guess I should start with defining the manual process that I think Excel can automate.
There are offices in multiple cities, all working 9am to 6pm in their respective time zones. There are processes that are run at the Head Office that works on India standard time. Selected offices across the world will run that process at the same time, if they are working. For example: A process is started at 11:00 hours IST and runs till 16:00 hours IST. The Selected cities that will participate are say, London and Tokyo. In London, the start time would therefore be 05:30 GMT and end time would be 09:30 GMT. Similarly, the start time for Tokyo would be 14:30 Japan time and end would be 19:30 Japan time. Now, let's see how many working hours for London and Tokyo respective is that:
For London, it would be 30 minutes (since office start time is 9 am).
For Tokyo, it would be 3 hours 30 minutes (since office stop time is 6 pm).
For Delhi (India), it would be the full 4 hours since both process start time and process end time are within working hours.
Such processes would occur every few days through the month. At the end of the month, I need to calculate the total time per city.
I have manually created an Excel sheet that can give you a visual of the data available and the output required. I've shared the file on http://jmp.sh/EDOZ2ES.
Would greatly appreciate your help in automating this calculation using formulae/VBA/macros in Excel.
Thanks and regards,
Sagar