Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default Convert Text Time to Excel Time

Hi

I have imported a file to excel that contains data that looks like
time e.g 10:30 however the format of the data is General. How can I
get this data to show as an actual time in excel as I need to perform
further calculations on the time once I get it converted. I just need
it to show as hh:mm

Many thanks

W

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Convert Text Time to Excel Time

Hi,

Try this:

Type the number 1 in a blank cell then copy the cell, next select your data
and do a Paste Special/Multiply then format as time.

Hope this helps!
Jean-Guy

" wrote:

Hi

I have imported a file to excel that contains data that looks like
time e.g 10:30 however the format of the data is General. How can I
get this data to show as an actual time in excel as I need to perform
further calculations on the time once I get it converted. I just need
it to show as hh:mm

Many thanks

W


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Convert Text Time to Excel Time

That would be an incorrect answer, because time
is a fraction of a day. Please read about time in
http://www.mvps.org/dmcritchie/excel/datetime.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"pinmaster" wrote in message ...
Hi,

Try this:

Type the number 1 in a blank cell then copy the cell, next select your data
and do a Paste Special/Multiply then format as time.

Hope this helps!
Jean-Guy

" wrote:

Hi

I have imported a file to excel that contains data that looks like
time e.g 10:30 however the format of the data is General. How can I
get this data to show as an actual time in excel as I need to perform
further calculations on the time once I get it converted. I just need
it to show as hh:mm

Many thanks

W




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 347
Default Convert Text Time to Excel Time

Hi David

It seemed to work for me. I formatted a cell as text then typed in "10:30"
when I did a Paste Special/Multiply I got .4375 which when formatted as time
gave me 10:30.

If I was wrong I appoligize.

Regards!
Jean-Guy

"David McRitchie" wrote:

That would be an incorrect answer, because time
is a fraction of a day. Please read about time in
http://www.mvps.org/dmcritchie/excel/datetime.htm

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"pinmaster" wrote in message ...
Hi,

Try this:

Type the number 1 in a blank cell then copy the cell, next select your data
and do a Paste Special/Multiply then format as time.

Hope this helps!
Jean-Guy

" wrote:

Hi

I have imported a file to excel that contains data that looks like
time e.g 10:30 however the format of the data is General. How can I
get this data to show as an actual time in excel as I need to perform
further calculations on the time once I get it converted. I just need
it to show as hh:mm

Many thanks

W





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Convert Text Time to Excel Time

Hi Jean-Guy, and William (cc: to William)
Very sorry about that, don't know what I was
thinking of.

Not only is multiplying by 1 with Edit, Special Values
correct but that is the normal way to fix text times
(formatted as General) without macros, a technique
I learned probably from John Walkenbach.

In fact I have macros that use the same method (in datetime.htm).
The TrimALL macro (in join.htm) will also convert
as it is actually causing a reentry to the format that
would be current when reentry takes place -- in other
words for this example as long as it is not specifically
formatted as Text.

I was thinking formatted as Text even though the
posting specifically indicated General. And had
that been the case, the only extra step needed would
be to format the column as "General" first then
do the special multiply.
---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"pinmaster" wrote in message ...
Hi David

It seemed to work for me. I formatted a cell as text then typed in "10:30"
when I did a Paste Special/Multiply I got .4375 which when formatted as time
gave me 10:30.

If I was wrong I appoligize.

Regards!
Jean-Guy

"David McRitchie" wrote:
[Oops -- it was the correct answer]
That would be an incorrect answer, because time
is a fraction of a day. Please read about time in
http://www.mvps.org/dmcritchie/excel/datetime.htm

"pinmaster" wrote in message ...
Hi,

Try this:

Type the number 1 in a blank cell then copy the cell, next select your data
and do a Paste Special/Multiply then format as time.

Hope this helps!
Jean-Guy

" wrote:

Hi

I have imported a file to excel that contains data that looks like
time e.g 10:30 however the format of the data is General. How can I
get this data to show as an actual time in excel as I need to perform
further calculations on the time once I get it converted. I just need
it to show as hh:mm

Many thanks

W









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 903
Default Convert Text Time to Excel Time

Actually one minor suggestion
Instead of copying a cell with number 1
in it, selecting the range to convert,
and using Edit, Paste Special Multiply

use
Copy an empty cell
then select the range to convert,
Edit, Paste Special Add
the difference is that empty cells do not
become 0 but remain empty.

---
HTH,
David McRitchie, Microsoft MVP - Excel
My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm
Search Page: http://www.mvps.org/dmcritchie/excel/search.htm

"David McRitchie" wrote...
Hi Jean-Guy, and William (cc: to William)
Very sorry about that, don't know what I was
thinking of.



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 unix time to Julian time in excel? Ken Excel Discussion (Misc queries) 1 December 14th 06 08:22 PM
Excel data in text, wont update to time format raigo Excel Discussion (Misc queries) 5 August 4th 06 04:00 PM
Convert Text to Columns with Excel 2007 beta does not work well Martin Excel Worksheet Functions 0 June 7th 06 03:17 PM
How do I convert a time to text format. Rick Excel Discussion (Misc queries) 4 February 20th 06 11:02 PM
Text to time convert Rudo Excel Discussion (Misc queries) 2 November 14th 05 01:00 AM


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