#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default time formats

when working out a time sheet for example, i want to be able to enter time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) = 7.25
(7:15)
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default time formats

To convert hh.mm in a1 to an Excel time, use:

=time(int(a1),mod(a1,1)*100,0)

If you want to enter a time in a2 with an assumed pm, use:

=time(int(a2)+12,mod(a2,1)*100,0)

Your requested formula would then be:

=a2-a1-time(0,30,0)

Regards,
Fred.

"adhide" wrote in message
...
when working out a time sheet for example, i want to be able to enter time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) = 7.25
(7:15)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default time formats

if the assumed time is not PM format?

"Fred Smith" wrote:

To convert hh.mm in a1 to an Excel time, use:

=time(int(a1),mod(a1,1)*100,0)

If you want to enter a time in a2 with an assumed pm, use:

=time(int(a2)+12,mod(a2,1)*100,0)

Your requested formula would then be:

=a2-a1-time(0,30,0)

Regards,
Fred.

"adhide" wrote in message
...
when working out a time sheet for example, i want to be able to enter time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) = 7.25
(7:15)



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default time formats

IF you want to enter time in decimal then enter like this:

Start time in A1: 8
Finish time in B1: 15.75 (not 3.45)

=B1-A1-0.5


"adhide" wrote:

when working out a time sheet for example, i want to be able to enter time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) = 7.25
(7:15)

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default time formats

Then don't add 12.

Regards,
Fred.

"adhide" wrote in message
...
if the assumed time is not PM format?

"Fred Smith" wrote:

To convert hh.mm in a1 to an Excel time, use:

=time(int(a1),mod(a1,1)*100,0)

If you want to enter a time in a2 with an assumed pm, use:

=time(int(a2)+12,mod(a2,1)*100,0)

Your requested formula would then be:

=a2-a1-time(0,30,0)

Regards,
Fred.

"adhide" wrote in message
...
when working out a time sheet for example, i want to be able to enter
time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) =
7.25
(7:15)






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 52
Default time formats

Heads up:
When enteing time durations as hundreths of an hour you don't experience
different times for every hundreth of an hour.
For example, entering .24 or .23 will both display as 14 minutes. This is
rounding issue. There are a few others.

"adhide" wrote:

when working out a time sheet for example, i want to be able to enter time
using a decimal point (.) instead of a colan(:) and be able to add them
together to get decimal hours.

ie. start 8.00 (8:00) finish 3.45 (15:45) minus .30minutes (0:30) = 7.25
(7:15)

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
time formats adhide Excel Worksheet Functions 0 March 13th 08 01:50 AM
Converting time formats into actual time(minutes) LeighM Excel Discussion (Misc queries) 2 October 30th 06 05:15 AM
Help with time formats [email protected] Excel Worksheet Functions 3 May 16th 06 03:39 PM
Time Formats rj Excel Discussion (Misc queries) 3 January 26th 06 09:07 AM
Time Formats Fran Excel Discussion (Misc queries) 1 May 10th 05 01:15 AM


All times are GMT +1. The time now is 06:29 AM.

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"