Function Problems

How to Convert UTC Text to Indian Standard Time (IST) in Excel

John WilsonJohn Wilson Nov 2, 2026 868 views

Question details

The user needs to convert a text string representing a UTC date and time into a valid Excel date and time, adjusted to Indian Standard Time (IST).

How to Convert UTC Text to Indian Standard Time (IST) in Excel
Product
Spreadsheet
Device & OS
not provided
Scenario
Importing CSV data where timestamps are stored as text values ending in 'UTC' (e.g., '2021-09-27 19:39:16 UTC').
Observed behavior
The data needs to be parsed from text into a recognizable date format and mathematically shifted forward by 5 hours and 30 minutes to reflect IST.
Before you start

Ensure your UTC data strings consistently follow the exact 'YYYY-MM-DD HH:MM:SS UTC' format, as the text extraction formula relies on specific character positions to isolate the date and time.

Solution 1Recommended

Use Text Extraction and Time Functions to Convert to IST

Use a combination of LEFT, MID, TIMEVALUE, and TIME functions to extract the exact date and time values from the text string, then add the +05:30 offset.

Since the UTC timestamp is formatted as text in a CSV file, Excel cannot naturally recognize it as a date. You must first extract the year, month, day, and time components, reconstruct them into a valid serial number, and then add 5 hours and 30 minutes to complete the time zone conversion.

1
Select an empty destination cell

Click on an empty cell adjacent to your UTC text data (for example, cell B2 if your data is in A2).

2
Enter the conversion formula

Input the following formula into the cell: =DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))+TIMEVALUE(MID(A2,12,8))+TIME(5,30,0) and press Enter.

3
Apply Date and Time formatting

The result will likely appear as a numeric decimal. Right-click the cell, select 'Format Cells', navigate to 'Custom', and apply a format like 'yyyy-mm-dd hh:mm:ss' so the IST time displays correctly.

4
Fill the formula down

Click and drag the fill handle at the bottom-right corner of the formatted cell downwards to apply this conversion formula to the rest of the column.

Use Text Extraction and Time Functions to Convert to IST
Formula Breakdown: The DATE, LEFT, and MID functions rebuild the calendar date. TIMEVALUE extracts the exact time string. Finally, TIME(5,30,0) adds the required 5 hours and 30 minutes for the IST offset.
Effortless Data Processing

Easily Convert and Format Time Zones in WPS Spreadsheet

WPS Spreadsheet provides full support for complex date and time formulas, making it easy to parse text strings from CSV files and adjust time zones. With its intuitive interface, you can quickly format cells and manage large datasets seamlessly.

  1. 1. Open your CSV file: Launch WPS Office, click 'Open', and select the CSV file containing your UTC text strings.
  2. 2. Input the text extraction formula: Select an empty column and paste the formula =DATE(LEFT(A2,4),MID(A2,6,2),MID(A2,9,2))+TIMEVALUE(MID(A2,12,8))+TIME(5,30,0) next to your first record.
  3. 3. Format and auto-fill: Right-click to format the cell to your preferred date and time layout, then double-click the green fill handle to instantly convert the entire column.
100% compatible with Microsoft Excel formulas and date/time functionsExtensive custom cell formatting options for precise timestamp displayFast and lightweight processing for large imported CSV files
microsoft office alternative - wps office

Frequently Asked Questions

Why does the formula return a #VALUE! error?

A #VALUE! error typically occurs if the text format in the source cell deviates from the expected structure. The formula relies on exact character counts. Ensure there are no extra leading spaces and that the text strictly follows the 'YYYY-MM-DD HH:MM:SS' layout before the 'UTC' suffix.

How can I convert the UTC text to a different time zone instead of IST?

You can adjust the time zone by modifying the TIME(5,30,0) portion of the formula. For example, to convert to Eastern Standard Time (EST) which is UTC-5 hours, you would subtract TIME(5,0,0) from the extracted date and time instead of adding it.

Can I remove the 'UTC' text without using a complex formula?

Yes. You can select the column, press Ctrl+H to open 'Find and Replace', enter ' UTC' (with a leading space) in the 'Find what' field, leave 'Replace with' blank, and click 'Replace All'. Once Excel recognizes the remaining string as a date, you can simply add +(5.5/24) to the cell to calculate IST.

What if my UTC date text uses slashes instead of dashes (e.g., 2021/09/27)?

If your date separators are slashes, the character positions remain the same, so the provided LEFT and MID functions will still extract the year, month, and day correctly. The DATE function will automatically piece them back together into a valid date regardless of the original separator.