Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This is what the cell currently looks like:
[10/01/09 11:30PM] I would like the formula to return only: 10/01/09 Does anyone know what formula I should use? Any help would be greatly appreciated. Thanks!! Sara |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Here's one way:
=--MID(A1,2,8) though this will only work if the date is in the normal format for your region (does it mean 10th January 2009, or 1st October 2009 ?). A safer way might be: =DATE(2000+MID(A1,8,2),MID(A1,5,2),MID(A1,2,2)) or: =DATE(2000+MID(A1,8,2),MID(A1,2,2),MID(A1,5,2)) depending on the answer to my earlier question. Hope this helps. Pete On May 17, 10:26*pm, Sara wrote: This is what the cell currently looks like: [10/01/09 11:30PM] I would like the formula to return only: 10/01/09 Does anyone know what formula I should use? Any help would be greatly appreciated. Thanks!! Sara |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Sara
One way =--INT((SUBSTITUTE(SUBSTITUTE(A11,"[",""),"PM]",""))) This will return the serial number of the date. Format the cell in whatever date format you wish to see the result -- Regards Roger Govier Sara wrote: This is what the cell currently looks like: [10/01/09 11:30PM] I would like the formula to return only: 10/01/09 Does anyone know what formula I should use? Any help would be greatly appreciated. Thanks!! Sara |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
copying a date into a text string | Excel Worksheet Functions | |||
Date in Text String | Excel Worksheet Functions | |||
Date showing as numeric value in a text string formula | Excel Discussion (Misc queries) | |||
Convert text string to date | Excel Worksheet Functions | |||
How do I convert a text string into a date? | Excel Worksheet Functions |