Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Firstly, Thanks for any advice given this forum is covered by gods who watch over the rest of us and have assisted me many times. I'd like to remove all but the time from a column of dates and times and have looked into the format function to no avail. This is the current format for the column copy pasted into Excel. Wed Dec 31 00:56:28 EST 1969 I can use a 3rd party macro program to perform the following commands F2 -to enter cell, CNtrl/Left/left, left - to got to end of required time. Shift/End -Highlights 'space EST 1969' Backspace, - Deletes Cntrl/left - Jumps over time Shift/home - Selects 'Wed Dec 31 ' Backspace - Deletes enter---to go to next cell down. I'd love to perform this in Excel as it would be faster and safer and I could incorporate it into other Macros I'm using. I'd also like to perform the opposite on the date column to remove the bogus times. Sat Jan 17 00:00:00 EST 2009 Any ideas would be greatly appreciated. Thansk Rory |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Remember that Excel stores dates as serial numbers.
If A1 is displaying 01/Feb/2009 14:24, the cell's stored value is 39845.60 So =INT(A1) returns just the date while =MOD(A1,1) returns just the time Best wishes -- Bernard V Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme remove caps from email "rory_r" wrote in message ... Firstly, Thanks for any advice given this forum is covered by gods who watch over the rest of us and have assisted me many times. I'd like to remove all but the time from a column of dates and times and have looked into the format function to no avail. This is the current format for the column copy pasted into Excel. Wed Dec 31 00:56:28 EST 1969 I can use a 3rd party macro program to perform the following commands F2 -to enter cell, CNtrl/Left/left, left - to got to end of required time. Shift/End -Highlights 'space EST 1969' Backspace, - Deletes Cntrl/left - Jumps over time Shift/home - Selects 'Wed Dec 31 ' Backspace - Deletes enter---to go to next cell down. I'd love to perform this in Excel as it would be faster and safer and I could incorporate it into other Macros I'm using. I'd also like to perform the opposite on the date column to remove the bogus times. Sat Jan 17 00:00:00 EST 2009 Any ideas would be greatly appreciated. Thansk Rory |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Presumably Excel is not recognising the enrty as a date/time because of the EST string? Or is that part of a custom format? Dave "rory_r" wrote: Firstly, Thanks for any advice given this forum is covered by gods who watch over the rest of us and have assisted me many times. I'd like to remove all but the time from a column of dates and times and have looked into the format function to no avail. This is the current format for the column copy pasted into Excel. Wed Dec 31 00:56:28 EST 1969 I can use a 3rd party macro program to perform the following commands F2 -to enter cell, CNtrl/Left/left, left - to got to end of required time. Shift/End -Highlights 'space EST 1969' Backspace, - Deletes Cntrl/left - Jumps over time Shift/home - Selects 'Wed Dec 31 ' Backspace - Deletes enter---to go to next cell down. I'd love to perform this in Excel as it would be faster and safer and I could incorporate it into other Macros I'm using. I'd also like to perform the opposite on the date column to remove the bogus times. Sat Jan 17 00:00:00 EST 2009 Any ideas would be greatly appreciated. Thansk Rory |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
If the data is text, and is always the same length, you could try
=TIMEVALUE(MID(A6,12,8)) and apply the required time format which would give you 00:56:28 "Dave Curtis" wrote: Hi, Presumably Excel is not recognising the enrty as a date/time because of the EST string? Or is that part of a custom format? Dave "rory_r" wrote: Firstly, Thanks for any advice given this forum is covered by gods who watch over the rest of us and have assisted me many times. I'd like to remove all but the time from a column of dates and times and have looked into the format function to no avail. This is the current format for the column copy pasted into Excel. Wed Dec 31 00:56:28 EST 1969 I can use a 3rd party macro program to perform the following commands F2 -to enter cell, CNtrl/Left/left, left - to got to end of required time. Shift/End -Highlights 'space EST 1969' Backspace, - Deletes Cntrl/left - Jumps over time Shift/home - Selects 'Wed Dec 31 ' Backspace - Deletes enter---to go to next cell down. I'd love to perform this in Excel as it would be faster and safer and I could incorporate it into other Macros I'm using. I'd also like to perform the opposite on the date column to remove the bogus times. Sat Jan 17 00:00:00 EST 2009 Any ideas would be greatly appreciated. Thansk Rory |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
And if you want to remove the time and leave the date, try =DATEVALUE(MID(A6,9,2)&"/"&MONTH(1&MID(A6,5,3))&"/"&RIGHT(A6,4)) and apply a custom format of ddd dd mmm yyyy which will give you Wed 31 Dec 1969 as a date Dave "Dave Curtis" wrote: If the data is text, and is always the same length, you could try =TIMEVALUE(MID(A6,12,8)) and apply the required time format which would give you 00:56:28 "Dave Curtis" wrote: Hi, Presumably Excel is not recognising the enrty as a date/time because of the EST string? Or is that part of a custom format? Dave "rory_r" wrote: Firstly, Thanks for any advice given this forum is covered by gods who watch over the rest of us and have assisted me many times. I'd like to remove all but the time from a column of dates and times and have looked into the format function to no avail. This is the current format for the column copy pasted into Excel. Wed Dec 31 00:56:28 EST 1969 I can use a 3rd party macro program to perform the following commands F2 -to enter cell, CNtrl/Left/left, left - to got to end of required time. Shift/End -Highlights 'space EST 1969' Backspace, - Deletes Cntrl/left - Jumps over time Shift/home - Selects 'Wed Dec 31 ' Backspace - Deletes enter---to go to next cell down. I'd love to perform this in Excel as it would be faster and safer and I could incorporate it into other Macros I'm using. I'd also like to perform the opposite on the date column to remove the bogus times. Sat Jan 17 00:00:00 EST 2009 Any ideas would be greatly appreciated. Thansk Rory |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Text to Columns - Way to remove all column breaks at one time? | Excel Discussion (Misc queries) | |||
Can I format a column around dates | Excel Discussion (Misc queries) | |||
Can I format a column around dates | Excel Discussion (Misc queries) | |||
Can I change a column of dates from USA to UK format? | Excel Discussion (Misc queries) | |||
Remove time from a date and time field? Format removes the displa. | Excel Worksheet Functions |