Date format: string to Data with GMT 5+30

shvkumara

New Member
Joined
Nov 12, 2018
Messages
1
Hi,

Thanks for the help which you are going to offer me.

My problem is I have a list of date values in the format "Sun, 11 Nov 2018 23:30:46 GM",, But I want to convert it to IST i.e GMT 5:30. The expected output is "11/12/2018 5:00". I have tried but couldn't get it done in one formula.

Some of the list
Sun, 11 Nov 2018 18:56:12 GMT
Sun, 11 Nov 2018 16:57:19 GMT

thanks
SHiva


 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Hi. In order to do that we would need to know if the date/time you have in your cell is text or a number. Lets say your date is in cell A1. What does the following produce?

=ISNUMBER(A1)
 
Upvote 0
Assuming its text not number:

=TRIM(REPLACE(SUBSTITUTE(A1,"GMT",""),1,FIND(",",A1),""))+TIME(5,30,0)
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
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