Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I export a set of data from SQL and have a column showing dates. An
example of this format is 5/13/2007 6:19:07 PM which is May, 13 2007. I need to format this column to show just the date without the time element. but excel wont recognise this as a date. How can I work around this? Thanks for your kind advice. Regards |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Fendi
Try this: Enter value 1 in a cell then Edit Copy this cell Select data in your column Edit Paste Special Tick Multiplication Click OK HTH Cordially Pascal "Fendi Baba" a écrit dans le message de news: ... I export a set of data from SQL and have a column showing dates. An example of this format is 5/13/2007 6:19:07 PM which is May, 13 2007. I need to format this column to show just the date without the time element. but excel wont recognise this as a date. How can I work around this? Thanks for your kind advice. Regards |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Pascal, I must have done something wrong. I did what you suggested and
it didnt work. I created a column entered 1 in a cell copied and paste special to the date cell with multiplication ticked. On May 16, 3:58 pm, "papou" wrote: Hi Fendi Try this: Enter value 1 in a cell then Edit Copy this cell Select data in your column Edit Paste Special Tick Multiplication Click OK HTH Cordially Pascal "Fendi Baba" a écrit dans le message de news: om... I export a set of data from SQL and have a column showing dates. An example of this format is 5/13/2007 6:19:07 PM which is May, 13 2007. I need to format this column to show just the date without the time element. butexcelwont recognise this as a date. How can I work around this? Thanks for your kind advice. Regards- Hide quoted text - - Show quoted text - |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Enter two empty helper columns to the right of your date column
select the date/time date Data-text to column- select delimited next select space next select date MDY enter delete the two helper columns "Fendi Baba" wrote: I export a set of data from SQL and have a column showing dates. An example of this format is 5/13/2007 6:19:07 PM which is May, 13 2007. I need to format this column to show just the date without the time element. but excel wont recognise this as a date. How can I work around this? Thanks for your kind advice. Regards |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
I just pasted your data into my excel and it also didn't recognise it as a date... HOWEVER... making the string "13/5/2007..." i.e. using the day/month order consistent with this locale fixed it... I suggest: 1/ String manipulate it into the right order or 2/ Change the locale (your source and destination systems differ in locale - which depending on the size of your org. and actual locations of the two machines may not be an error), or are not both MS, or you need to structure your SQL differently to return a day/month order that is compatible with your locale, .or....) Then, to get the date only you can use a custom format on the cell, or you could use a formula in another cell (assume your value is in A1), the formula could be =TEXT(A1,"dd/mm/yyyy") worked here on Office XP. Hope that helps Julian "Fendi Baba" wrote: I export a set of data from SQL and have a column showing dates. An example of this format is 5/13/2007 6:19:07 PM which is May, 13 2007. I need to format this column to show just the date without the time element. but excel wont recognise this as a date. How can I work around this? Thanks for your kind advice. Regards |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date format from excel to CVS file wont. Change in CVS wont stay. | Excel Worksheet Functions | |||
Date Wont Change in Excel??! | Excel Worksheet Functions | |||
Formt of Linked cell | Links and Linking in Excel | |||
conditional formula to recognize day of the week from date | Excel Discussion (Misc queries) | |||
Formt column | Excel Discussion (Misc queries) |