Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have a series of entries in col A like this:
Tuesday 7th September 2004 Tuesday 3rd April 2007 etc. FWIW, all happen to start 'Tuesday' in the present case, although a fully general solution would be ideal in case I come across non-Tuesday variations in future. Is there a simple way to get these into a proper date format please? I'd be happy with various types, my aim being to abbreviate them. So for example Tue 7 Sep 2004 7/9/07 or even Tuesday 7th Sep 2004 would be OK. Obviously, once I have them in Date format, I can experiment with the alternatives. An alternative I suppose would be to do a global Replace. But that would need repetitions, to change 'January' to 'Jan', February' to 'Feb', etc. -- Terry, East Grinstead, UK |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Text to Columns, format each column then concatenate.
"Terry Pinnell" wrote: I have a series of entries in col A like this: Tuesday 7th September 2004 Tuesday 3rd April 2007 etc. FWIW, all happen to start 'Tuesday' in the present case, although a fully general solution would be ideal in case I come across non-Tuesday variations in future. Is there a simple way to get these into a proper date format please? I'd be happy with various types, my aim being to abbreviate them. So for example Tue 7 Sep 2004 7/9/07 or even Tuesday 7th Sep 2004 would be OK. Obviously, once I have them in Date format, I can experiment with the alternatives. An alternative I suppose would be to do a global Replace. But that would need repetitions, to change 'January' to 'Jan', February' to 'Feb', etc. -- Terry, East Grinstead, UK |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Terry,
For a 'date' in A1, try: =DATEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTI TUTE(MID(A1,FIND(" ",A1)+1,LEN(A1)),"st",""),"nd",""),"rd",""),"th"," ")) and format the result as a date. Cheers -- macropod [MVP - Microsoft Word] ------------------------- "Terry Pinnell" wrote in message ... I have a series of entries in col A like this: Tuesday 7th September 2004 Tuesday 3rd April 2007 etc. FWIW, all happen to start 'Tuesday' in the present case, although a fully general solution would be ideal in case I come across non-Tuesday variations in future. Is there a simple way to get these into a proper date format please? I'd be happy with various types, my aim being to abbreviate them. So for example Tue 7 Sep 2004 7/9/07 or even Tuesday 7th Sep 2004 would be OK. Obviously, once I have them in Date format, I can experiment with the alternatives. An alternative I suppose would be to do a global Replace. But that would need repetitions, to change 'January' to 'Jan', February' to 'Feb', etc. -- Terry, East Grinstead, UK |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"macropod" wrote:
Hi Terry, For a 'date' in A1, try: =DATEVALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBST ITUTE(MID(A1,FIND(" ",A1)+1,LEN(A1)),"st",""),"nd",""),"rd",""),"th"," ")) and format the result as a date. Cheers Thanks both, I'll try those suggestions. -- Terry, East Grinstead, UK |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to convert string to date | Excel Worksheet Functions | |||
convert string to date | Excel Worksheet Functions | |||
Convert Date to STring | Excel Discussion (Misc queries) | |||
Convert text string to date | Excel Worksheet Functions | |||
How to convert string to a date | Excel Worksheet Functions |