sacastiglia
New Member
- Joined
- Jul 29, 2014
- Messages
- 23
Hello All,
Anyone who can help with this will be a hero in my book. I am using the following formula to calculate drive time hours (hours prior to being on site and hours after leaving site) and it works as long as there are hours listed for drive start and drive end. Some of our technicians do not have drive time (i.e. submitting the timesheet for vacation, sick time, etc. or if there was no drive time for the day)
=SUM((J7-I7)*24)+SUM(N7-M7)*24
The formula I am using to calculate total site hours works fine because it only calculates the actual site hours and does not take into account drive time hours.
The problem I am having is if there is no time entered for Drive Start and Drive end, I am getting number for the total drive hours that is the negative twin of the total site hours.
I don't want to have to add any columns as there would be a great amount of code that would need to be changed.
Thank you
Anyone who can help with this will be a hero in my book. I am using the following formula to calculate drive time hours (hours prior to being on site and hours after leaving site) and it works as long as there are hours listed for drive start and drive end. Some of our technicians do not have drive time (i.e. submitting the timesheet for vacation, sick time, etc. or if there was no drive time for the day)
=SUM((J7-I7)*24)+SUM(N7-M7)*24
The formula I am using to calculate total site hours works fine because it only calculates the actual site hours and does not take into account drive time hours.
The problem I am having is if there is no time entered for Drive Start and Drive end, I am getting number for the total drive hours that is the negative twin of the total site hours.
I don't want to have to add any columns as there would be a great amount of code that would need to be changed.
Thank you