Hello
The macro below works well for converting military time to regular time and adjusts the one difference in timezone. I would like to round up the outputted time by quarter of the hour as I am currently doing it manually after running the macro using the MROUND function. Ex 05:20=05:30 & 20:55=21:00
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MATCH[/TD]
[TD]620[/TD]
[TD][/TD]
[TD][/TD]
[TD]05:20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DATA[/TD]
[TD]1310[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DATA[/TD]
[TD]1540[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MATCH[/TD]
[TD]2155[/TD]
[TD][/TD]
[TD][/TD]
[TD]20:55[/TD]
[/TR]
</tbody>[/TABLE]
The macro below works well for converting military time to regular time and adjusts the one difference in timezone. I would like to round up the outputted time by quarter of the hour as I am currently doing it manually after running the macro using the MROUND function. Ex 05:20=05:30 & 20:55=21:00
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MATCH[/TD]
[TD]620[/TD]
[TD][/TD]
[TD][/TD]
[TD]05:20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DATA[/TD]
[TD]1310[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]DATA[/TD]
[TD]1540[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD]MATCH[/TD]
[TD]2155[/TD]
[TD][/TD]
[TD][/TD]
[TD]20:55[/TD]
[/TR]
</tbody>[/TABLE]
For Each Cell In Range("C2:C" & Cells(Rows.Count, 3).End(xlUp).Row)
If Cell.Value = "MATCH" Then Cell.Offset(, 1).Value = TimeValue(Format(Cell.Offset(, 4).Value, "0\:00")) - TimeValue("01:00")
Next