Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brent E
 
Posts: n/a
Default h:mm to decimal value

Good morning,

Is there a formula or easy way to automatically convert a custom h:mm format
to a decimal format?

Situation:
I am working on putting together an Excel Template for my boss for our
departmental time sheets. I currently have these basic categories setup
(worded differently but will use descriptive terms in this example).

Day AM TIME IN, AM TIME OUT, PM TIME IN, PM TIME OUT, Total (h:mm
format), and then a Total column (Decimal format)

Currently I have the AM, PM cells and Total h:mm cells formatted as "custom"
and set to "h:mm". And the Total Decimal Column format is set to "Number" and
to 2 decimal places. Reason for 2 total columns is to sum the h:mm values to
get a total value, and payroll needs the values in a decimal format (e.g.
8.25 hours).
Suggestions would be greatly appreciated.

Cordially,


  #2   Report Post  
Sloth
 
Posts: n/a
Default

It's easier than you think. Just multiply the answer by 24 and format to
general (or number).

Example:
Assuming AM TIME IN is in B1 and total is in F1
F1=(C1-B1+E1-D1)
Format as time (h:mm)
G1=24*F1
Format as general

"Brent E" wrote:

Good morning,

Is there a formula or easy way to automatically convert a custom h:mm format
to a decimal format?

Situation:
I am working on putting together an Excel Template for my boss for our
departmental time sheets. I currently have these basic categories setup
(worded differently but will use descriptive terms in this example).

Day AM TIME IN, AM TIME OUT, PM TIME IN, PM TIME OUT, Total (h:mm
format), and then a Total column (Decimal format)

Currently I have the AM, PM cells and Total h:mm cells formatted as "custom"
and set to "h:mm". And the Total Decimal Column format is set to "Number" and
to 2 decimal places. Reason for 2 total columns is to sum the h:mm values to
get a total value, and payroll needs the values in a decimal format (e.g.
8.25 hours).
Suggestions would be greatly appreciated.

Cordially,


  #3   Report Post  
Gary''s Student
 
Posts: n/a
Default

If time is in A1 then =HOUR(A1)+MINUTE(A1)/60 will work if formatted as General
--
Gary''s Student


"Brent E" wrote:

Good morning,

Is there a formula or easy way to automatically convert a custom h:mm format
to a decimal format?

Situation:
I am working on putting together an Excel Template for my boss for our
departmental time sheets. I currently have these basic categories setup
(worded differently but will use descriptive terms in this example).

Day AM TIME IN, AM TIME OUT, PM TIME IN, PM TIME OUT, Total (h:mm
format), and then a Total column (Decimal format)

Currently I have the AM, PM cells and Total h:mm cells formatted as "custom"
and set to "h:mm". And the Total Decimal Column format is set to "Number" and
to 2 decimal places. Reason for 2 total columns is to sum the h:mm values to
get a total value, and payroll needs the values in a decimal format (e.g.
8.25 hours).
Suggestions would be greatly appreciated.

Cordially,


  #4   Report Post  
Brent E
 
Posts: n/a
Default

Excellent. I tried both of these suggestions and they work fabulously.
Thanks. I really appreciate the suggestions; have a fabulous day.

"Gary''s Student" wrote:

If time is in A1 then =HOUR(A1)+MINUTE(A1)/60 will work if formatted as General
--
Gary''s Student


"Brent E" wrote:

Good morning,

Is there a formula or easy way to automatically convert a custom h:mm format
to a decimal format?

Situation:
I am working on putting together an Excel Template for my boss for our
departmental time sheets. I currently have these basic categories setup
(worded differently but will use descriptive terms in this example).

Day AM TIME IN, AM TIME OUT, PM TIME IN, PM TIME OUT, Total (h:mm
format), and then a Total column (Decimal format)

Currently I have the AM, PM cells and Total h:mm cells formatted as "custom"
and set to "h:mm". And the Total Decimal Column format is set to "Number" and
to 2 decimal places. Reason for 2 total columns is to sum the h:mm values to
get a total value, and payroll needs the values in a decimal format (e.g.
8.25 hours).
Suggestions would be greatly appreciated.

Cordially,


  #5   Report Post  
Gary''s Student
 
Posts: n/a
Default

You are welcome!
--
Gary''s Student


"Brent E" wrote:

Excellent. I tried both of these suggestions and they work fabulously.
Thanks. I really appreciate the suggestions; have a fabulous day.

"Gary''s Student" wrote:

If time is in A1 then =HOUR(A1)+MINUTE(A1)/60 will work if formatted as General
--
Gary''s Student


"Brent E" wrote:

Good morning,

Is there a formula or easy way to automatically convert a custom h:mm format
to a decimal format?

Situation:
I am working on putting together an Excel Template for my boss for our
departmental time sheets. I currently have these basic categories setup
(worded differently but will use descriptive terms in this example).

Day AM TIME IN, AM TIME OUT, PM TIME IN, PM TIME OUT, Total (h:mm
format), and then a Total column (Decimal format)

Currently I have the AM, PM cells and Total h:mm cells formatted as "custom"
and set to "h:mm". And the Total Decimal Column format is set to "Number" and
to 2 decimal places. Reason for 2 total columns is to sum the h:mm values to
get a total value, and payroll needs the values in a decimal format (e.g.
8.25 hours).
Suggestions would be greatly appreciated.

Cordially,


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
Convert decimal degree (lattitude/longitude) into Degree, Tim Ashcom Excel Discussion (Misc queries) 5 August 17th 05 04:53 PM
Excel adds phantom decimal places: why? Dave O Excel Discussion (Misc queries) 1 August 16th 05 06:25 PM
FIXED 2 DECIMAL PLACES, MUST ENTER ALL ZEROES AFTER DECIMAL POINT. SUKYKITTY Excel Discussion (Misc queries) 3 July 6th 05 01:50 PM
How do I override fixed decimal place settings in EXcel 2003? jroyv Excel Worksheet Functions 2 February 11th 05 06:07 PM
decimal point override does not work Sam Brauen Excel Discussion (Misc queries) 0 January 6th 05 05:29 PM


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