I'm working on a spreadsheet where I have the text 'Saturday 4 October 2014'. I want to convert this into an actual date.
Can anyone help?
Regards,
Tim
I'm working on a spreadsheet where I have the text 'Saturday 4 October 2014'. I want to convert this into an actual date.
Can anyone help?
Regards,
Tim
Try with =DATEVALUE() else post a sample in excel
☚ Click ★ just below left if it helps, Boo?ath?![]()
If the dates you need converted are all in the same format you can use this
=RIGHT(A1,LEN(A1)-FIND(" ",A1))
It will take all text after the first occurance of SPACE (right after the "day")
So 'Saturday 4 October 2014'
becomes
'4 October 2014'
Which excel can read as a date
You can further convert it into a date format using
=TEXT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),"mm/dd/yyyy")
Last edited by Speshul; 10-01-2014 at 03:11 PM.
You should hit F5, because chances are I've edited this post at least 5 times.
Example of Array Formulas
Click the * below on any post that helped you.
I came up with this, which may have redundant parts in order to try and eliminate any oddities that may occur. This will result in a date serial number.
Formula:![]()
Please Login or Register to view this content.
Format in the date format of your choice.
Last edited by newdoverman; 10-01-2014 at 03:38 PM.
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
I didn't think of it before but assuming the ' marks are included in the cell you can use either of these as well.
=LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),LEN(RIGHT(A1,LEN(A1)-FIND(" ",A1)))-1)
Or
=TEXT(LEFT(RIGHT(A1,LEN(A1)-FIND(" ",A1)),LEN(RIGHT(A1,LEN(A1)-FIND(" ",A1)))-1),"mm/dd/yyyy")
newdoverman's formula is probably more robust if there are variances in the data. My formula assumes there will always be:
'WEEKDAY[SPACE]DAY#[SPACE]MONTH[SPACE]YEAR]'
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks