Greetings
I'm working on a sheet in which I'll need to calculate UTC from a given local time and UTC offset and populate into the Planned Migration Time column.
Here are my columns:
I will be using the output from that to calculate the other columns but want to focus only on calculating UTC for this exercise. Below is my current formula but challenged with consistent results
=IF(NOT(ISBLANK([Approved Planned Migration Time (24HR Clock)]@row)), IF([UTC Offset]@row < 0, IF(VALUE(LEFT([Approved Planned Migration Time (24HR Clock)]@row, 2)) + ABS([UTC Offset]@row) > 24, TIME(VALUE(LEFT([Approved Planned Migration Time (24HR Clock)]@row, 2)) + ABS([UTC Offset]@row) - 24 + ":" + RIGHT([Approved Planned Migration Time (24HR Clock)]@row, 2), 1, 0), TIME(VALUE(LEFT([Approved Planned Migration Time (24HR Clock)]@row, 2)) + ABS([UTC Offset]@row) + ":" + RIGHT([Approved Planned Migration Time (24HR Clock)]@row, 2), 1, 0)), IF(VALUE(LEFT([Avery Approved Planned Migration Time (24HR Clock)]@row, 2)) - ABS([UTC Offset]@row) < 0, TIME(24 - (VALUE(LEFT([Approved Planned Migration Time (24HR Clock)]@row, 2)) + ABS([UTC Offset]@row)) + ":" + RIGHT([Approved Planned Migration Time (24HR Clock)]@row, 2), 1, 0), TIME(VALUE(LEFT([Approved Planned Migration Time (24HR Clock)]@row, 2)) - ABS([UTC Offset]@row) + ":" + RIGHT([Approved Planned Migration Time (24HR Clock)]@row, 2), 1, 0))), "")
What would be a good formula or modification to the one provided to help with calculating UTC time from local given a certain offset?