PC Review


Reply
Thread Tools Rate Thread

Convert text to time format

 
 
maverick_abhi
Guest
Posts: n/a
 
      27th Jul 2006

Hey,

I am unable to convert a piece of text that i copy paste from an
external source to time format. Suppose I copy, "July 24 2006, 05:31
PM" and paste the same in excel it just assumes that that the entered
data is text and I am unable to format the same. I need to convert this
to the time format for proceeding with certain calculations. PLease
help.


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

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

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

Text and dates are not the same thing. If you want to enter dates and
make them seem as if they are text, you need to do some formatting
first:

There is quite a bit of flexibility built into Excel for this: for
instance you can enter a date like this *24 July 2006 11:45* or *July
22 05:15*, what you need to do is configure the format of the cell so
Excel understands what you are trying to do. Click on the cell and
either press Ctrl+1 together or go to Format/Cells, Select Custom at
the bottom of the list of options and set your configuration; in the
example you had in the attachment, this would be mmmm dd yyyy hh:mm.
There are other ways of doing this, especially in terms of how hours
and minutes are entered, by far the easiest way at the end of the day
is to us the hh:mm configuration that Excel understands immediately
rather than taking the simpler decimal hh.mm option that leads to all
sorts of problems later.

Cheers
Jon


--
Jon Quixley
------------------------------------------------------------------------
Jon Quixley's Profile: http://www.excelforum.com/member.php...o&userid=25803
View this thread: http://www.excelforum.com/showthread...hreadid=565503

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

maverick_abhi wrote:
> Hey,
>
> I am unable to convert a piece of text that i copy paste from an
> external source to time format. Suppose I copy, "July 24 2006, 05:31
> PM" and paste the same in excel it just assumes that that the entered
> data is text and I am unable to format the same. I need to convert this
> to the time format for proceeding with certain calculations. PLease
> help.
>

Hi maverick_abhi

Try this with your pasted value in A1:

=TIMEVALUE(MID(A1,FIND(",",A1)+3,8))

Format the result cell to hh:mm

It requires your pasted values to be the same each time, if it's not it
should help you toward a solution.

Regards

Steve

 
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
How do I convert a time to text format. =?Utf-8?B?Umljaw==?= Microsoft Excel Misc 4 20th Feb 2006 11:02 PM
Convert Text numbers to time format jermsalerms Microsoft Excel Misc 3 20th Jan 2006 12:03 AM
convert time imported as text to time format for calculations =?Utf-8?B?YmF0ZmlzaA==?= Microsoft Excel Worksheet Functions 3 27th Oct 2005 11:24 PM
How do I convert time format to text? =?Utf-8?B?QW5kcmV3?= Microsoft Excel Misc 1 16th Feb 2005 07:07 PM
can i convert text to time format ?????? compie1 Microsoft Excel Worksheet Functions 1 13th Sep 2003 03:56 PM


Features
 

Advertising
 

Newsgroups
 


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