Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Format time column to remove dates


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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Format time column to remove dates

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Format time column to remove dates

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Format time column to remove dates

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 99
Default Format time column to remove dates

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Text to Columns - Way to remove all column breaks at one time? Cathy Excel Discussion (Misc queries) 1 November 20th 07 12:08 AM
Can I format a column around dates Nikki Q Excel Discussion (Misc queries) 1 May 12th 06 08:42 PM
Can I format a column around dates CLR Excel Discussion (Misc queries) 0 May 12th 06 05:45 PM
Can I change a column of dates from USA to UK format? Michelle, Mencap Excel Discussion (Misc queries) 3 March 2nd 05 04:02 PM
Remove time from a date and time field? Format removes the displa. oaoboc Excel Worksheet Functions 1 February 16th 05 07:20 PM


All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"