#1   Report Post  
Dimmer
 
Posts: n/a
Default Convert Text to DATE

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much


  #2   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Try =DATEVALUE(SUBSTITUTE(A1,".","/")); this worked for me, I had to format
the cell to data otherwise it displayed the date serial number.
If your system is set to use dots for dates try =DATEVALUE(A1)
best wishes

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dimmer" wrote in message
...
Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they
are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need
to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much




  #3   Report Post  
Dave Ramage
 
Posts: n/a
Default

Dimmer,

You can use this formula:
=DATEVALUE(SUBSTITUTE(E9,".","/"))+IF(LEN(E9)10,TIMEVALUE(RIGHT(A1,5)))

Then copy and Paste Special- Values to get back to numbers rather than
formula.
Cheers,
Dave
"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much


  #4   Report Post  
Dimmer
 
Posts: n/a
Default

Guys thank you very much, both suggestion worked! However, we just discovered
we have another problem - some dates are in the American Format (June 1st =
06.01) and the others in the European one (01.06)...
Any ideas how can I covert them all into European format? (just changing the
date format doesn't do it. for example if it's June 1st american - 06.01 -
then when changing to European date format we still have 06.01 or the 6th of
January)

Thanks again

"Dave Ramage" wrote:

Dimmer,

You can use this formula:
=DATEVALUE(SUBSTITUTE(E9,".","/"))+IF(LEN(E9)10,TIMEVALUE(RIGHT(A1,5)))

Then copy and Paste Special- Values to get back to numbers rather than
formula.
Cheers,
Dave
"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much


  #5   Report Post  
Dave Peterson
 
Posts: n/a
Default

Slight typo:
=DATEVALUE(SUBSTITUTE(E9,".","/"))+IF(LEN(E9)10,TIMEVALUE(RIGHT(E9,5)))
or
=DATEVALUE(SUBSTITUTE(a1,".","/"))+IF(LEN(a1)10,TIMEVALUE(RIGHT(A1,5)))

(mixture of A1 and E9's)

And remember to format the cell as a nice date/time.


Dave Ramage wrote:

Dimmer,

You can use this formula:
=DATEVALUE(SUBSTITUTE(E9,".","/"))+IF(LEN(E9)10,TIMEVALUE(RIGHT(A1,5)))

Then copy and Paste Special- Values to get back to numbers rather than
formula.
Cheers,
Dave
"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much



--

Dave Peterson


  #6   Report Post  
John
 
Posts: n/a
Default

Hi,

Try a custom format instead.
Type in the format you require.
Otherwise we used a formula to get it into the format we needed.
Pull in the 1st 2 characters+/+middle two characters+/+last two from the cell.

i.e. =(left(a2,2)&"/"&mid("a2,4,2")&"/"&right(a2,2)
Not perfect on middle part but play around with it.

Hope this helps

"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much


  #7   Report Post  
Bernard Liengme
 
Posts: n/a
Default

Try =DATEVALUE(SUBSTITUTE(A1,".","/")); this worked for me, I had to format
the cell to data otherwise it displayed the date serial number.
If your system is set to use dots for dates try =DATEVALUE(A1)
best wishes

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Dimmer" wrote in message
...
Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they
are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need
to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much




  #8   Report Post  
Posted to microsoft.public.excel.misc
Zuj Zuj is offline
external usenet poster
 
Posts: 2
Default Covert (1/1,F,0) to (1/1) help need

Dear all,

i m facing a problem with data sorting. my data is show as (1/1,F,0),
however i require only the number vaule in this field. i want to convert
1/1,F,0 into 1/1. tell me how can it be done???..

example:

1/1,F,0 = 1/1
1/1,OK,0 = 1/1
1/1,OK,0 = 1/1
1/1,OK,0 = 1/1










"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need to
perform various duration calculations on them, so we need them in the Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Covert (1/1,F,0) to (1/1) help need

Data, text to columns, delimited by comma, skip the last 2 columns (and tell
it to treat the first column as text, or else it will read the 1/1 as
01-Jan).
--
David Biddulph

"Zuj" wrote in message
...
Dear all,

i m facing a problem with data sorting. my data is show as (1/1,F,0),
however i require only the number vaule in this field. i want to convert
1/1,F,0 into 1/1. tell me how can it be done???..

example:

1/1,F,0 = 1/1
1/1,OK,0 = 1/1
1/1,OK,0 = 1/1
1/1,OK,0 = 1/1










"Dimmer" wrote:

Hello all,

I hope you can help with a problem we have in the office. We've got over
4,500 observations which are supposed to be in Date Format. Instead they
are
in text format, e.g. "01.06.2005 08:26" or just "09.03.2005" but we need
to
perform various duration calculations on them, so we need them in the
Date
Format

I tried Format Cells- Category = Date, but it doesn't work. It works
however when I enter the cell and then click "Enter". very strange

Please help if you have an idea how to do it...

Thank you very much




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
How do I convert a list of date of births into age in Excel? Frieda Excel Worksheet Functions 6 March 29th 07 11:32 PM
How do I convert date values to non-date format e.g. 01-06-78? mikelenno Excel Discussion (Misc queries) 2 July 8th 05 08:51 PM
how do I convert a UK date to a US date in excel? sls Excel Discussion (Misc queries) 1 May 17th 05 09:12 PM
How to convert Excel imported numbers from text to numbers? Alden Excel Discussion (Misc queries) 9 April 1st 05 09:51 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM


All times are GMT +1. The time now is 10:34 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"