Travel duration taking into account different time zones

Jayzon

New Member
Joined
Feb 17, 2013
Messages
34
Office Version
  1. 365
Platform
  1. Windows
DepartureArrivalDurationFromToTime zone diff. Departure UTCTime zone diff. Arrival UTC
24-01-2024 06:0025-01-2024 01:00-0.5ShanghaiCopenhagen+8+1

I am trying to calculate trip duration and googling i found a formula, but i would of course like to adjust the formula to cast of the sum total hours spend travelling.
The formula i used is in duration cell D3 Formula : =(((B3-C3)*24)+(H3-I3))/24

Thanks in advance for any support on this
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Just a guess, but I think you need to flip columns B and C in your formula, i.e.
Excel Formula:
=(((C3-B3)*24)+(H3-I3))/24
If that does not give you what you need, please tell us what answer you expect from the values above, and explain the logic of how to arrive at that value.
 
Upvote 0
Just a guess, but I think you need to flip columns B and C in your formula, i.e.
Excel Formula:
=(((C3-B3)*24)+(H3-I3))/24
If that does not give you what you need, please tell us what answer you expect from the values above, and explain the logic of how to arrive at that value.
Switching these gives me a result of 1,08 also not what i am looking for. My guess is based on the initial result that the correct sum would be 23,5 hours but i am not sure. The result i am looking for is total sum of hours spent travelling taking into account the different time zones.
 
Upvote 0
Switching these gives me a result of 1,08 also not what i am looking for. My guess is based on the initial result that the correct sum would be 23,5 hours but i am not sure. The result i am looking for is total sum of hours spent travelling taking into account the different time zones.
1.08 seem correct to me, as that is 26 hours (26/24) to get days, which is what your formula is returning.

The difference between the Departure and Arrival times in 19 hours.
But you need to add in an additional 7 hours due to the time zone differences.
19 + 7 = 26.

So it seems correct to me, unless you can demonstrate otherwise.
 
Upvote 0
1.08 seem correct to me, as that is 26 hours (26/24) to get days, which is what your formula is returning.

The difference between the Departure and Arrival times in 19 hours.
But you need to add in an additional 7 hours due to the time zone differences.
19 + 7 = 26.

So it seems correct to me, unless you can demonstrate otherwise.
I am sure you are right, what i want is for the formula to return is the actual hours spent travelling and not days. Where i picked the formula of google it actually returned hours but was setup to handle the different time zones. So to get this your suggestion would be to just multiply the current result by 24 ?
 
Upvote 0
Just change the format of the cell to a Custom format of:
Excel Formula:
[h]:mm
and it will return:
26:00
 
Upvote 0
Solution
You are welcome.
Glad I was able to help!
 
Upvote 0

Forum statistics

Threads
1,215,110
Messages
6,123,146
Members
449,098
Latest member
Doanvanhieu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top