GMT/UTC to local time conversion

tuspilica

New Member
Joined
Feb 9, 2016
Messages
16
Hi guys,

I'm trying to convert from GMT time to local time. I have the a column where my data has the format:
19-01-2019,07:20:23

I applied the formula:
=A2-(5/24)
to calculate the local time but i got the error: There's something wrong with the way your formula is typed. Or, there's something wrong with the cells you are referencing."

I tried to modify the cell format, replaced comma with space, dashes with slash ... no success. The format remains the same and the error is present.
I've added a Custom format:
dd/mm/yyyy hh:mm:ss
I applied it to entire column, but there is no change, the data remains with the same format 19-01-2019,07:20:23
It works if i'm typing the full date manually, but the table comes populated with these data
Any help please?

Thank you
 
Last edited:

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
What does the formula =ISNUMBER(A2) return?
 
Upvote 0
.
Code:
=RIGHT(A2,8)-5/24

Format cell/s : TIME 1:30 pm
 
Upvote 0
I found out that the date & time data from my entire time stamp column is actually "text" (from a .CSV file).

19-01-2019,07:20:23

So, I have to find the easiest way to convert this text data into time format, then to apply the GMT correction.

Is there a way to do this without using macros?
 
Upvote 0
I found out that the date & time data from my entire time stamp column is actually "text" (from a .CSV file).
n

That is why I asked the question in post number 2 :biggrin:
Try selecting the column and then doing a Find/Replace with a comma in the Find what box and and a single space in the Replace with box (making sure that match entire cell contents is not checked).
 
Upvote 0
n

That is why I asked the question in post number 2 :biggrin:
Try selecting the column and then doing a Find/Replace with a comma in the Find what box and and a single space in the Replace with box (making sure that match entire cell contents is not checked).

Thank you Mark!
problem resolved. Appreciating your time and help!
 
Upvote 0

Forum statistics

Threads
1,224,815
Messages
6,181,135
Members
453,021
Latest member
Justyna P

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