Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Changing decimal time into 24 hour time and reverse

Is it possible to change decimal time into 24hour time? For example, 1.75
hours in decimal in CELL A1 into 1:45 in 24 hour time in CELL B1.
Also - how would I reverse it? For example 2:30 24 hour time into 2.5
decimal time.
Also note that the decimal time would need to increment above 24:00 as the
totals will be above this value
Best Regards and thanks for looking.
Bobzter
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 419
Default Changing decimal time into 24 hour time and reverse

bobzter100,

In cell B1, enter this formula:

=A1/24

....then format then give the cell the format "[h]:mm:ss;@" (that format is
the same thing as Format Cells dialog Number tab Category box "Time"
category Type: box 37:30:55)

to go in revers, just multiply by 24 and format the cell as a number with
decimal places.

HTH,

Conan




"Bobzter100" wrote in message
...
Is it possible to change decimal time into 24hour time? For example, 1.75
hours in decimal in CELL A1 into 1:45 in 24 hour time in CELL B1.
Also - how would I reverse it? For example 2:30 24 hour time into 2.5
decimal time.
Also note that the decimal time would need to increment above 24:00 as the
totals will be above this value
Best Regards and thanks for looking.
Bobzter



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default Changing decimal time into 24 hour time and reverse

Hi Conan
Many thanks - that has provided me with a solution to what i thought was my
only problem! Any advice on the folowing concerning time?

I have entry cells formatted to [H]:mm for user input. This allows a user to
input any time, including a time greater than 24:00 hours. However, users
being users they tend not to enter what you want so in many instances they
enter, for example, 74.5 hours in decimal which shows up as 1788. Is there
any way i can use the adjacent column to convert this value into the correct
value of 74.5 (24 hour time)? Note that i've tried to restrict user input by
using validation through validate\time\between\ but this will only alow a
time span of 00:00 - 24:00 and essentially the user can enter any amout of
hours with no upper limit.
Best regards
Bobzter

"Conan Kelly" wrote:

bobzter100,

In cell B1, enter this formula:

=A1/24

....then format then give the cell the format "[h]:mm:ss;@" (that format is
the same thing as Format Cells dialog Number tab Category box "Time"
category Type: box 37:30:55)

to go in revers, just multiply by 24 and format the cell as a number with
decimal places.

HTH,

Conan




"Bobzter100" wrote in message
...
Is it possible to change decimal time into 24hour time? For example, 1.75
hours in decimal in CELL A1 into 1:45 in 24 hour time in CELL B1.
Also - how would I reverse it? For example 2:30 24 hour time into 2.5
decimal time.
Also note that the decimal time would need to increment above 24:00 as the
totals will be above this value
Best Regards and thanks for looking.
Bobzter




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Changing decimal time into 24 hour time and reverse

You might find this to be useful:

http://www.cpearson.com/excel/DateTimeEntry.htm

It enables you/your users to enter times without the colon.

Hope this helps.

Pete

On Jan 25, 10:44*am, Bobzter100
wrote:
Hi Conan
Many thanks - that has provided me with a solution to what i thought was my
only problem! Any advice on the folowing concerning time?

I have entry cells formatted to [H]:mm for user input. This allows a user to
input any time, including a time greater than 24:00 hours. However, users
being users they tend not to enter what you want so in many instances they
enter, for example, 74.5 hours in decimal which shows up as 1788. Is there
any way i can use the adjacent column to convert this value into the correct
value of 74.5 (24 hour time)? Note that i've tried to restrict user input by
using validation through validate\time\between\ but this will only alow a
time span of 00:00 - 24:00 and essentially the user can enter any amout of
hours with no upper limit.
Best regards
Bobzter



"Conan Kelly" wrote:
bobzter100,


In cell B1, enter this formula:


* * =A1/24


....then format then give the cell the format "[h]:mm:ss;@" (that format is
the same thing as Format Cells dialog Number tab Category box "Time"
category Type: box 37:30:55)


to go in revers, just multiply by 24 and format the cell as a number with
decimal places.


HTH,


Conan


"Bobzter100" wrote in message
...
Is it possible to change decimal time into 24hour time? For example, 1..75
hours in decimal in CELL A1 into 1:45 in 24 hour time in CELL B1.
Also - how would I reverse it? For example 2:30 24 hour time into 2.5
decimal time.
Also note that the decimal time would need to increment above 24:00 as the
totals will be above this value
Best Regards and thanks for looking.
Bobzter- Hide quoted text -


- Show quoted text -


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Changing decimal time into 24 hour time and reverse

If you want to convert from hours to Excel time, divide by 24 (as Excel
times are counted in days).

To prompt the users to use the right format when inputting the data, use the
Input message part of Data Validation, with a message such as:
Input hours and minutes in hh:mm format
--
David Biddulph

"Bobzter100" wrote in message
...
Hi Conan
Many thanks - that has provided me with a solution to what i thought was
my
only problem! Any advice on the folowing concerning time?

I have entry cells formatted to [H]:mm for user input. This allows a user
to
input any time, including a time greater than 24:00 hours. However, users
being users they tend not to enter what you want so in many instances they
enter, for example, 74.5 hours in decimal which shows up as 1788. Is there
any way i can use the adjacent column to convert this value into the
correct
value of 74.5 (24 hour time)? Note that i've tried to restrict user input
by
using validation through validate\time\between\ but this will only alow a
time span of 00:00 - 24:00 and essentially the user can enter any amout of
hours with no upper limit.
Best regards
Bobzter

"Conan Kelly" wrote:

bobzter100,

In cell B1, enter this formula:

=A1/24

....then format then give the cell the format "[h]:mm:ss;@" (that format
is
the same thing as Format Cells dialog Number tab Category box
"Time"
category Type: box 37:30:55)

to go in revers, just multiply by 24 and format the cell as a number with
decimal places.

HTH,

Conan




"Bobzter100" wrote in message
...
Is it possible to change decimal time into 24hour time? For example,
1.75
hours in decimal in CELL A1 into 1:45 in 24 hour time in CELL B1.
Also - how would I reverse it? For example 2:30 24 hour time into 2.5
decimal time.
Also note that the decimal time would need to increment above 24:00 as
the
totals will be above this value
Best Regards and thanks for looking.
Bobzter






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 to calculate time start & time finish in quarter hour Peter Wu Excel Discussion (Misc queries) 3 June 7th 06 12:58 AM
Converting decimal time to standard time? mpendleton Excel Discussion (Misc queries) 4 May 12th 06 10:07 PM
convert decimal numbers to a fraction of an hour for payroll hour Flower Excel Worksheet Functions 4 February 10th 06 07:46 PM
making a time a measurement of time, not an hour of the day?? small tom Excel Discussion (Misc queries) 7 January 24th 06 02:17 PM
Convert decimal hour into time format? ramdalen Excel Discussion (Misc queries) 2 June 20th 05 06:21 PM


All times are GMT +1. The time now is 01:10 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"