Extract date from a string pulled from RSS Feed : Tue, 06 Feb 2018 23:23:40 +0000 to 06/02/2018

mvrht

New Member
Joined
Dec 9, 2017
Messages
18
I need to use the date of some fields that are imported from an RSS feed in Google Sheets. The date comes in as
Tue, 06 Feb 2018 23:23:40 +0000






Using
=MID(A1,FIND(",",A1)+2,256)
I get the stuff after the comma, so almost there, but just need to ignore the time section
06 Feb 2018 23:23:40 +0000


I then set the cell to Format-Date to turn it into 06/02/2018
So essentially, I am looking to extract parts 2,3,4 from the string using an Excel/Sheets formula

NOTE: I have also tried DATEVAUE with no success with the supplied RSS format
 
Last edited:

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
If the date format is ALWAYS going to be a 2 digit day followed by a 3 character month and a 4 character year, you could just change your formula to pick up the right number of characters e.g.:

=DATEVALUE(MID(C11,FIND(",",C11)+2,11))

and then format this cell as your desired date format.
 
Upvote 0
If the date format is ALWAYS going to be a 2 digit day followed by a 3 character month and a 4 character year, you could just change your formula to pick up the right number of characters e.g.:

=DATEVALUE(MID(C11,FIND(",",C11)+2,11))

and then format this cell as your desired date format.

Yep, they always come in with that format. This works a treat, many thanks
 
Upvote 0

Forum statistics

Threads
1,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

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