Convert 20261104143015+0530 to UTC

Turn an HL7 code like 20261104143015+0530 into UTC: November 4, 2026 9:00:15 AM.

What you'll make

In Excel: 20261104143015+0530 becomes November 4, 2026 9:00:15 AM.

The formula

The formula, with a numbered bracket under each part.
NumberPartWhat it doesResult so far
1DATE( … )Reads the year, month and day as a real date.November 4, 2026
2TIME( … )Adds the hour, minutes and seconds.November 4, 2026 2:30:15 PM
3IF( … )Gives 1 for a plus sign, -1 for minus.1
4( … )/1440Turns the offset into part of a day, then takes it away.November 4, 2026 9:00:15 AM

A day has 1,440 minutes. A plus offset is ahead of UTC, so it comes off; a minus offset is added.

=DATE(LEFT(A8,4),MID(A8,5,2),MID(A8,7,2))+TIME(MID(A8,9,2),MID(A8,11,2),MID(A8,13,2))-IF(MID(A8,15,1)="+",1,-1)*(VALUE(MID(A8,16,2))*60+VALUE(RIGHT(A8,2)))/1440

How to use it

Yellow bar at the top? Click Enable Editing.

  1. See it work. The Example tab shows 20 made-up examples with the formula already in.
  2. Use your own codes. Paste codes like 20261104143015+0530 into the green column of the Template tab. The UTC dates and times fill in by themselves.
  3. Move them into your letter. Copy the results. Then use Paste Special and choose Values.

Before you send

The results are UTC, not local time, and the offset isn't kept. Keep the original codes beside them.

Microsoft's help: DATE function