Military time to regular time in different timezone

Mux99

Board Regular
Joined
Apr 15, 2019
Messages
57
Hi All

I would like to convert a list of military time in Column C to regular time in a different time zone (+3hr) and also deduct 45 minutes off the new calculated time.

Scedule
TitleDescriptionTime
Test1Apple620
Test2Banana1050
Test3Orange2015

<tbody>
</tbody>


After running the macro it should look like the below. Column D = +2 hours 15 minutes. Column E = +3 hours.

Schedule
TitleDescriptionTimeFromTo
Test1Apple62008:3509:20
Test2Banana105013:0513:50
Test3Orange201522:3023:15

<tbody>
</tbody>

Thanks in advance
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Hi. Try.
Code:
Sub MilitaryTimeToRegularTime()
 Dim mh As Range
  For Each mh In Range("C3:C" & Cells(Rows.Count, 3).End(3).Row)
   mh.Offset(, 1).Value = TimeValue(Format(mh.Value, "0\:00")) + TimeValue("02:15")
   mh.Offset(, 2).Value = TimeValue(Format(mh.Value, "0\:00")) + TimeValue("03:00")
  Next mh
End Sub
And format D:E as desired.
 
Upvote 0

Forum statistics

Threads
1,215,426
Messages
6,124,828
Members
449,190
Latest member
rscraig11

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