#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Removing Dates


HI All,

Hopefully a quick one. I have a serious of info in a cell in this
format

11/08/2006 12:00:00
10/08/2006 12:15:00

I need to keep the time but remove all the dates from the cell. I am
using the replace function however the dates can only be run 1 day at a
time and I have over a years worth to remove,

Is there a generic format ie **/**/**** That will when put in the
replace bar will remove all dates no matter when they are?

Thanks in advance
Brento


--
Brento
------------------------------------------------------------------------
Brento's Profile: http://www.excelforum.com/member.php...o&userid=25213
View this thread: http://www.excelforum.com/showthread...hreadid=570702

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 618
Default Removing Dates

"Brento" wrote in
message ...

HI All,

Hopefully a quick one. I have a serious of info in a cell in this
format

11/08/2006 12:00:00
10/08/2006 12:15:00

I need to keep the time but remove all the dates from the cell. I am
using the replace function however the dates can only be run 1 day at a
time and I have over a years worth to remove,

Is there a generic format ie **/**/**** That will when put in the
replace bar will remove all dates no matter when they are?


If the data is entered as a date & time, as distinct from as text, then you
can just reformat the cells.

If it is text, you may be able to split it using Data/ text to columns
(using the space as a delimiter), or more sensibly you may be able to use
the same function to convert the whole cell from text to date & time
(choosing an appropriate date format at the last stage of the wizard), then
reformat accordingly.
--
David Biddulph


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Removing Dates

hi,
use following function if your data is in text format:

=+TIME(MID(TRIM(MID(B15,SEARCH("
",B15,1)+1,LEN(B15))),1,2),MID(TRIM(MID(B15,SEARCH ("
",B15,1)+1,LEN(B15))),4,2),MID(TRIM(MID(B15,SEARCH ("
",B15,1)+1,LEN(B15))),7,2))

where B15 is cell containing your datetime val.



"David Biddulph" wrote:

"Brento" wrote in
message ...

HI All,

Hopefully a quick one. I have a serious of info in a cell in this
format

11/08/2006 12:00:00
10/08/2006 12:15:00

I need to keep the time but remove all the dates from the cell. I am
using the replace function however the dates can only be run 1 day at a
time and I have over a years worth to remove,

Is there a generic format ie **/**/**** That will when put in the
replace bar will remove all dates no matter when they are?


If the data is entered as a date & time, as distinct from as text, then you
can just reformat the cells.

If it is text, you may be able to split it using Data/ text to columns
(using the space as a delimiter), or more sensibly you may be able to use
the same function to convert the whole cell from text to date & time
(choosing an appropriate date format at the last stage of the wizard), then
reformat accordingly.
--
David Biddulph



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Removing Dates

I tried DataText to Columns on your example dates/times and was sucessful in
splitting the time off from the date.

Fixed width.

Clear the break line between 12:15 & PM and don't import the date column.


Gord Dibben MS Excel MVP

On Fri, 11 Aug 2006 07:23:58 -0400, Brento
wrote:


HI All,

Hopefully a quick one. I have a serious of info in a cell in this
format

11/08/2006 12:00:00
10/08/2006 12:15:00

I need to keep the time but remove all the dates from the cell. I am
using the replace function however the dates can only be run 1 day at a
time and I have over a years worth to remove,

Is there a generic format ie **/**/**** That will when put in the
replace bar will remove all dates no matter when they are?

Thanks in advance
Brento


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
Dates and Intervals Dave_Lee Excel Worksheet Functions 8 May 26th 06 01:34 PM
Removing 2 extra spaces in front of dates in imported excel doc Hannah Excel Discussion (Misc queries) 4 April 12th 06 07:37 PM
Removing Weekend dates from Day Calculations Heyna Excel Discussion (Misc queries) 2 March 3rd 06 12:41 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
Calculating number of days between two dates that fall between two other dates [email protected] Excel Discussion (Misc queries) 5 October 26th 05 06:18 PM


All times are GMT +1. The time now is 03:39 PM.

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"