Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Converting Millitary Time to Hours worked and OT hours

What I'm trying to do is. Take 700 start time to an end time of 1700 then I
need it to convert it to hours worked then the next cell show hours no more
then 8 in the next cell any thing over the 8 hours. Start time would be one
cell, End time is one cell, Total Hours is one sell, Hours no more them 8 is
one cell, overtime hours is one cell. Then I have to Multiply the 8 hours in
the next cell and then the ot hour in the next cell. Any help would be fine.
Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Converting Millitary Time to Hours worked and OT hours

Do you want time of integers? meaning if you have start at 700 and end
at1730 do you want to display that
as 2.5 hours over of 2:30? Assume you want time values and not decimals

Anyway assume you have start in A2, end in B2, then the first up to 8 hours
in C2 and the rest in D2

in C2 put

=MIN("8:00",--TEXT(B2-A2,"00\:00"))

in D2 put

=MAX(0,TEXT(B2-A2,"00\:00")-"8:00")


format as time [h]:mm



now if you want decimal values in C2 use

=MIN(8,24*TEXT(B2-A2,"00\:00"))


=MAX(0,24*TEXT(B2-A2,"00\:00")-8)

format as general or number

If start can be for instance 1500 and end 300 meaning start is before
midnight and end after then you can use

=MIN("8:00",MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))

and


=MAX(0,MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-"8:00")

to get decimals do t


=MIN(8,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))


and

=MAX(0,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-8)


--


Regards,


Peo Sjoblom

"Djbaker70" wrote in message
...
What I'm trying to do is. Take 700 start time to an end time of 1700 then
I
need it to convert it to hours worked then the next cell show hours no
more
then 8 in the next cell any thing over the 8 hours. Start time would be
one
cell, End time is one cell, Total Hours is one sell, Hours no more them 8
is
one cell, overtime hours is one cell. Then I have to Multiply the 8 hours
in
the next cell and then the ot hour in the next cell. Any help would be
fine.
Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Converting Millitary Time to Hours worked and OT hours

Peo, Here is what I have
Cell D5 7:00 Cell E5 20:30 F5 20:30 and it should display 20.5 Then G5
should show 8 for hours or less, & H5 should show the over time. Yes you are
right that I want the time to show a half hour as .5 not :30
Thanks in advance.
Dennis

"Peo Sjoblom" wrote:

Do you want time of integers? meaning if you have start at 700 and end
at1730 do you want to display that
as 2.5 hours over of 2:30? Assume you want time values and not decimals

Anyway assume you have start in A2, end in B2, then the first up to 8 hours
in C2 and the rest in D2

in C2 put

=MIN("8:00",--TEXT(B2-A2,"00\:00"))

in D2 put

=MAX(0,TEXT(B2-A2,"00\:00")-"8:00")


format as time [h]:mm



now if you want decimal values in C2 use

=MIN(8,24*TEXT(B2-A2,"00\:00"))


=MAX(0,24*TEXT(B2-A2,"00\:00")-8)

format as general or number

If start can be for instance 1500 and end 300 meaning start is before
midnight and end after then you can use

=MIN("8:00",MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))

and


=MAX(0,MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-"8:00")

to get decimals do t


=MIN(8,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))


and

=MAX(0,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-8)


--


Regards,


Peo Sjoblom

"Djbaker70" wrote in message
...
What I'm trying to do is. Take 700 start time to an end time of 1700 then
I
need it to convert it to hours worked then the next cell show hours no
more
then 8 in the next cell any thing over the 8 hours. Start time would be
one
cell, End time is one cell, Total Hours is one sell, Hours no more them 8
is
one cell, overtime hours is one cell. Then I have to Multiply the 8 hours
in
the next cell and then the ot hour in the next cell. Any help would be
fine.
Thanks in advance




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Converting Millitary Time to Hours worked and OT hours

Just multiply the formula with 24 and format as general

=24*(end-start)

important to format as general or number not time

then just

=MIN(8,24*(end-start))

and

=MAX(0,24*(end-start)-8)


--


Regards,


Peo Sjoblom



"Djbaker70" wrote in message
...
Peo, Here is what I have
Cell D5 7:00 Cell E5 20:30 F5 20:30 and it should display 20.5 Then G5
should show 8 for hours or less, & H5 should show the over time. Yes you
are
right that I want the time to show a half hour as .5 not :30
Thanks in advance.
Dennis

"Peo Sjoblom" wrote:

Do you want time of integers? meaning if you have start at 700 and end
at1730 do you want to display that
as 2.5 hours over of 2:30? Assume you want time values and not decimals

Anyway assume you have start in A2, end in B2, then the first up to 8
hours
in C2 and the rest in D2

in C2 put

=MIN("8:00",--TEXT(B2-A2,"00\:00"))

in D2 put

=MAX(0,TEXT(B2-A2,"00\:00")-"8:00")


format as time [h]:mm



now if you want decimal values in C2 use

=MIN(8,24*TEXT(B2-A2,"00\:00"))


=MAX(0,24*TEXT(B2-A2,"00\:00")-8)

format as general or number

If start can be for instance 1500 and end 300 meaning start is before
midnight and end after then you can use

=MIN("8:00",MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))

and


=MAX(0,MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-"8:00")

to get decimals do t


=MIN(8,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1))


and

=MAX(0,24*MOD(TEXT(B2,"00\:00")-TEXT(A2,"00\:00"),1)-8)


--


Regards,


Peo Sjoblom

"Djbaker70" wrote in message
...
What I'm trying to do is. Take 700 start time to an end time of 1700
then
I
need it to convert it to hours worked then the next cell show hours no
more
then 8 in the next cell any thing over the 8 hours. Start time would be
one
cell, End time is one cell, Total Hours is one sell, Hours no more them
8
is
one cell, overtime hours is one cell. Then I have to Multiply the 8
hours
in
the next cell and then the ot hour in the next cell. Any help would be
fine.
Thanks in advance






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
Creating Bi-Weekly Time Sheet to Calculate Hours Worked nbslarson Excel Discussion (Misc queries) 2 August 30th 07 02:10 PM
Calculate Total hours worked during workdays within given shift time. noname Excel Discussion (Misc queries) 2 April 8th 07 06:28 PM
wages - multiply hours and minutes by number of hours worked Carol (Australia) Excel Discussion (Misc queries) 6 April 1st 07 01:16 AM
Drivers Hours Timesheet - Calculate Hours Worked on Weekly Basis Graham Excel Discussion (Misc queries) 2 January 28th 07 08:40 PM
time format multiplied by hours worked ? Brett Excel Worksheet Functions 2 January 11th 05 01:11 AM


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