PC Review


Reply
Thread Tools Rate Thread

Covert text to time

 
 
maverick_abhi
Guest
Posts: n/a
 
      27th Jul 2006

Hey,

I am unable to convert a piece of text to the time format. I am copying
this from an external source. Example, "July 24 2006, 05:31 PM" Excel
does not convert it to the date format. Please help. Please see
attached file


+-------------------------------------------------------------------+
|Filename: TTT.zip |
|Download: http://www.excelforum.com/attachment.php?postid=5112 |
+-------------------------------------------------------------------+

--
maverick_abhi
------------------------------------------------------------------------
maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
View this thread: http://www.excelforum.com/showthread...hreadid=565504

 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      27th Jul 2006
Try using the DATEVALUE() function

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"maverick_abhi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
|
| Hey,
|
| I am unable to convert a piece of text to the time format. I am copying
| this from an external source. Example, "July 24 2006, 05:31 PM" Excel
| does not convert it to the date format. Please help. Please see
| attached file
|
|
| +-------------------------------------------------------------------+
||Filename: TTT.zip |
||Download: http://www.excelforum.com/attachment.php?postid=5112 |
| +-------------------------------------------------------------------+
|
| --
| maverick_abhi
| ------------------------------------------------------------------------
| maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
| View this thread: http://www.excelforum.com/showthread...hreadid=565504
|


 
Reply With Quote
 
maverick_abhi
Guest
Posts: n/a
 
      27th Jul 2006

Hello,

I tried the datevalue function. It does not work. Please
Help.


--
maverick_abhi
------------------------------------------------------------------------
maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
View this thread: http://www.excelforum.com/showthread...hreadid=565504

 
Reply With Quote
 
Niek Otten
Guest
Posts: n/a
 
      27th Jul 2006
What does "does not work" mean? Error value? Which one? Wrong date? which one? Number? what? etc. What is your windows date
format?

--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"maverick_abhi" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
|
| Hello,
|
| I tried the datevalue function. It does not work. Please
| Help.
|
|
| --
| maverick_abhi
| ------------------------------------------------------------------------
| maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
| View this thread: http://www.excelforum.com/showthread...hreadid=565504
|


 
Reply With Quote
 
maverick_abhi
Guest
Posts: n/a
 
      27th Jul 2006

When i use the datevalue formula it gives the "VALUE" error. My Windows
Date format is "Thursday, July 27, 2006." and the data that I am
copying in Excel is "July 26 2006, 07:26 AM" Please look at the excel
file attached.

Thanx for any help u can provide.


--
maverick_abhi
------------------------------------------------------------------------
maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
View this thread: http://www.excelforum.com/showthread...hreadid=565504

 
Reply With Quote
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      27th Jul 2006
=DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&",
"&MID(A1,FIND(",",A1,1)-4,4))....formatted as you wish.

Vaya con Dios,
Chuck, CABGx3



"maverick_abhi" wrote:

>
> Hey,
>
> I am unable to convert a piece of text to the time format. I am copying
> this from an external source. Example, "July 24 2006, 05:31 PM" Excel
> does not convert it to the date format. Please help. Please see
> attached file
>
>
> +-------------------------------------------------------------------+
> |Filename: TTT.zip |
> |Download: http://www.excelforum.com/attachment.php?postid=5112 |
> +-------------------------------------------------------------------+
>
> --
> maverick_abhi
> ------------------------------------------------------------------------
> maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
> View this thread: http://www.excelforum.com/showthread...hreadid=565504
>
>

 
Reply With Quote
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      27th Jul 2006
And, if you want just the time.........

=MID(A1,FIND(",",A1,1)+3,8)*1......formatted as you wish

Vaya con Dios,
Chuck, CABGx3



"CLR" wrote:

> =DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&",
> "&MID(A1,FIND(",",A1,1)-4,4))....formatted as you wish.
>
> Vaya con Dios,
> Chuck, CABGx3
>
>
>
> "maverick_abhi" wrote:
>
> >
> > Hey,
> >
> > I am unable to convert a piece of text to the time format. I am copying
> > this from an external source. Example, "July 24 2006, 05:31 PM" Excel
> > does not convert it to the date format. Please help. Please see
> > attached file
> >
> >
> > +-------------------------------------------------------------------+
> > |Filename: TTT.zip |
> > |Download: http://www.excelforum.com/attachment.php?postid=5112 |
> > +-------------------------------------------------------------------+
> >
> > --
> > maverick_abhi
> > ------------------------------------------------------------------------
> > maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
> > View this thread: http://www.excelforum.com/showthread...hreadid=565504
> >
> >

 
Reply With Quote
 
maverick_abhi
Guest
Posts: n/a
 
      28th Jul 2006

You are a genius. Thanx So much for all the help. I finally was able to
get what I needed. The final formula looks like,
"DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&","&MID(A1,FIND(",",A1,1)-5,5))&VALUE(RIGHT(A1,8))"

If in case I require any further help, I know you r there.

Thanx again.


--
maverick_abhi
------------------------------------------------------------------------
maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
View this thread: http://www.excelforum.com/showthread...hreadid=565504

 
Reply With Quote
 
=?Utf-8?B?Q0xS?=
Guest
Posts: n/a
 
      28th Jul 2006
You're welcome............maybe it's a typo, but I get better results with

=DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&","&MID(A1,FIND(",",A1,1)-5,5))+VALUE(RIGHT(A1,8))

instead of

=DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&","&MID(A1,FIND(",",A1,1)-5,5))&VALUE(RIGHT(A1,8))

I'm using XL97SP2 on WinXP

Vaya con Dios,
Chuck, CABGx3



"maverick_abhi" wrote:

>
> You are a genius. Thanx So much for all the help. I finally was able to
> get what I needed. The final formula looks like,
> "DATEVALUE(LEFT(A1,FIND(",",A1,1)-6)&","&MID(A1,FIND(",",A1,1)-5,5))&VALUE(RIGHT(A1,8))"
>
> If in case I require any further help, I know you r there.
>
> Thanx again.
>
>
> --
> maverick_abhi
> ------------------------------------------------------------------------
> maverick_abhi's Profile: http://www.excelforum.com/member.php...o&userid=36845
> View this thread: http://www.excelforum.com/showthread...hreadid=565504
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is it possible to covert PowerPoint Presentations to A Quick Time. DSTraining Microsoft Powerpoint 3 24th Apr 2008 09:43 AM
Need your help please. Covert time to army time, and trim off the date & am/pm jonny Microsoft ASP .NET 1 10th Oct 2007 03:59 PM
Covert number into time =?Utf-8?B?QnJhZGxleQ==?= Microsoft Access Getting Started 9 25th Dec 2005 05:15 PM
covert number to time Harold Ducote Microsoft Access Queries 8 24th Jan 2004 04:10 AM
Time - Covert to number Richard Microsoft Excel Worksheet Functions 1 18th Sep 2003 07:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:46 AM.