PC Review


Reply
Thread Tools Rate Thread

Converting decimals to Time

 
 
Piers 2k
Guest
Posts: n/a
 
      24th Nov 2006
Hi folks,

For thousands of rows, time has been entered as 10.15 or 9.30. These are
correct times, as in quarter-past-ten and nine thirty. To perform
calculations, I obviously need to have a : (semi-colon) not a . (full-stop)

Find and replace won't work because 9.3 (nine thirty) comes up as 9:03.

I can write a macro, but trying to avoid since it's for someone else.

Any ideas?

TIA,

Piers


 
Reply With Quote
 
 
 
 
Niek Otten
Guest
Posts: n/a
 
      24th Nov 2006
Hi Piers,

=TIME(INT(A1),MOD(A1,1)*100,0)


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

"Piers 2k" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
| Hi folks,
|
| For thousands of rows, time has been entered as 10.15 or 9.30. These are
| correct times, as in quarter-past-ten and nine thirty. To perform
| calculations, I obviously need to have a : (semi-colon) not a . (full-stop)
|
| Find and replace won't work because 9.3 (nine thirty) comes up as 9:03.
|
| I can write a macro, but trying to avoid since it's for someone else.
|
| Any ideas?
|
| TIA,
|
| Piers
|
|


 
Reply With Quote
 
Piers 2k
Guest
Posts: n/a
 
      24th Nov 2006
Genius!


 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      24th Nov 2006
Another way

=--TEXT(A21*100,"00\:00\:00")

and format as time

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"Piers 2k" <(E-Mail Removed)> wrote in message
news:etEAPs#(E-Mail Removed)...
> Genius!
>
>



 
Reply With Quote
 
Arvi Laanemets
Guest
Posts: n/a
 
      24th Nov 2006
Another one
=TIMEVALUE( SUBSTITUTE(TEXT(A1,"00.00"),".",":"))

And yet another
Select the range with data.
Edit>Replace
Search for period, replace with colon, replace all

Arvi Laanemets


"Niek Otten" <(E-Mail Removed)> wrote in message
news:eYVEEH#(E-Mail Removed)...
> Hi Piers,
>
> =TIME(INT(A1),MOD(A1,1)*100,0)
>
>
> --
> Kind regards,
>
> Niek Otten
> Microsoft MVP - Excel
>
> "Piers 2k" <(E-Mail Removed)> wrote in message

news:(E-Mail Removed)...
> | Hi folks,
> |
> | For thousands of rows, time has been entered as 10.15 or 9.30. These are
> | correct times, as in quarter-past-ten and nine thirty. To perform
> | calculations, I obviously need to have a : (semi-colon) not a .

(full-stop)
> |
> | Find and replace won't work because 9.3 (nine thirty) comes up as 9:03.
> |
> | I can write a macro, but trying to avoid since it's for someone else.
> |
> | Any ideas?
> |
> | TIA,
> |
> | Piers
> |
> |
>
>



 
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
Converting decimals to Time Gringarlow Microsoft Excel Worksheet Functions 4 23rd Apr 2009 06:00 PM
Converting Time from Hours and Minutes Decimals in a formula SARGE Microsoft Excel Misc 1 15th Nov 2008 09:39 PM
Converting Time to decimals and then converting decimals to time neil_val@tiscali.co.uk Microsoft Excel Worksheet Functions 1 30th Nov 2007 04:09 PM
converting time to decimals =?Utf-8?B?Ym9i?= Microsoft Excel Worksheet Functions 2 11th Mar 2006 08:32 PM
Converting decimals into hh:mm Shandy720 Microsoft Excel Worksheet Functions 4 11th Oct 2005 06:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 AM.