Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Gwynn
 
Posts: n/a
Default Grand total time between two total cells

I have a payroll worksheet which houses an employee's start time, lunch
start/stop and end time. It also notes any Flex-time for an employee. In
these cells I enter the time for each (in military). Under the first column,
start...end I have a total. Under Flex time...start/end...I have a total.
To get the total hours worked I am trying to sum the regular total and flex
total but the sum is incorrect.

Any suggestions?

START TIME 8:30
LUNCH START 11:00
LUNCH STOP 11:30
END TIME 14:30
Total Time 5.50

Flex-time (2 hours minimum/max)
Start 15:00
End 17:00
Total 2:00

Total Hours worked 14:00 <<<--- This is what is not adding correctly.


  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Grand total time between two total cells

I get 7:30

=D1-A1-(C1-B1)

where D1 is end, A1 is start, C1 is lunch end and B1 lunch start, that will
return 05:30 formatted as hh:mm then

=F1-E1

where F1 is flex end and E1 flex start, that gave me 02:00

then totaled gave me 07:30



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Gwynn" wrote in message
...
I have a payroll worksheet which houses an employee's start time, lunch
start/stop and end time. It also notes any Flex-time for an employee. In
these cells I enter the time for each (in military). Under the first
column,
start...end I have a total. Under Flex time...start/end...I have a total.
To get the total hours worked I am trying to sum the regular total and
flex
total but the sum is incorrect.

Any suggestions?

START TIME 8:30
LUNCH START 11:00
LUNCH STOP 11:30
END TIME 14:30
Total Time 5.50

Flex-time (2 hours minimum/max)
Start 15:00
End 17:00
Total 2:00

Total Hours worked 14:00 <<<--- This is what is not adding correctly.




  #3   Report Post  
Posted to microsoft.public.excel.misc
Gwynn
 
Posts: n/a
Default Grand total time between two total cells

=SUM((C12-C11)*24,(C10-C9)*24)

This is the formula I am using to get the total for Start/End/Lunch
Start/Lunch End
then
=SUM(B19-B18) for total Flex Start/End.

When I add the total for each I get 14:00. That formula is the standard sum
=SUM(B20+B13).


"Peo Sjoblom" wrote:

I get 7:30

=D1-A1-(C1-B1)

where D1 is end, A1 is start, C1 is lunch end and B1 lunch start, that will
return 05:30 formatted as hh:mm then

=F1-E1

where F1 is flex end and E1 flex start, that gave me 02:00

then totaled gave me 07:30



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Gwynn" wrote in message
...
I have a payroll worksheet which houses an employee's start time, lunch
start/stop and end time. It also notes any Flex-time for an employee. In
these cells I enter the time for each (in military). Under the first
column,
start...end I have a total. Under Flex time...start/end...I have a total.
To get the total hours worked I am trying to sum the regular total and
flex
total but the sum is incorrect.

Any suggestions?

START TIME 8:30
LUNCH START 11:00
LUNCH STOP 11:30
END TIME 14:30
Total Time 5.50

Flex-time (2 hours minimum/max)
Start 15:00
End 17:00
Total 2:00

Total Hours worked 14:00 <<<--- This is what is not adding correctly.





  #4   Report Post  
Posted to microsoft.public.excel.misc
mphell0
 
Posts: n/a
Default Grand total time between two total cells


You don't need all the SUMs. Try this:

For Actual Hours:
=((C12-C11)+(C10-C9))*24

For Flex Hours:
=(B19-B18)*24

For Total:
=B20+B13

Format All of the totals as General. Your answer will be 7.5.


You could also eliminate all of the "*24"s and format everything as
time and
your answer will be 7:30


--
mphell0
------------------------------------------------------------------------
mphell0's Profile: http://www.excelforum.com/member.php...o&userid=30153
View this thread: http://www.excelforum.com/showthread...hreadid=540370

  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Grand total time between two total cells

Change the first formula to

=SUM(C12-C11,C10-C9)

also no need to use SUM for the second formula if you only use 2 values and
subtraction

=B19-B18

will suffice, then for the final formula you can use *24

=SUM(B20,B13)*24

(no need for internal plus signs within a SUM formula)

format cell as general (not time) and you will get

7.5 hours there you can multiply it with a payrate if needed, if not needed
omit the
*24 and format as time will give you 7:30

what you did was to convert the first calculation to decimal hours, then add
it to time formatted flex time which is 134 hours (5.5 is 5 days and 12
hours in Excel time)
and since you are using hh:mm it will only display what is over 133/24 which
is 14:00


--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Gwynn" wrote in message
...
=SUM((C12-C11)*24,(C10-C9)*24)

This is the formula I am using to get the total for Start/End/Lunch
Start/Lunch End
then
=SUM(B19-B18) for total Flex Start/End.

When I add the total for each I get 14:00. That formula is the standard
sum
=SUM(B20+B13).


"Peo Sjoblom" wrote:

I get 7:30

=D1-A1-(C1-B1)

where D1 is end, A1 is start, C1 is lunch end and B1 lunch start, that
will
return 05:30 formatted as hh:mm then

=F1-E1

where F1 is flex end and E1 flex start, that gave me 02:00

then totaled gave me 07:30



--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Gwynn" wrote in message
...
I have a payroll worksheet which houses an employee's start time, lunch
start/stop and end time. It also notes any Flex-time for an employee.
In
these cells I enter the time for each (in military). Under the first
column,
start...end I have a total. Under Flex time...start/end...I have a
total.
To get the total hours worked I am trying to sum the regular total and
flex
total but the sum is incorrect.

Any suggestions?

START TIME 8:30
LUNCH START 11:00
LUNCH STOP 11:30
END TIME 14:30
Total Time 5.50

Flex-time (2 hours minimum/max)
Start 15:00
End 17:00
Total 2:00

Total Hours worked 14:00 <<<--- This is what is not adding correctly.







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
Enter Time in cells mrdata Excel Discussion (Misc queries) 3 March 25th 06 01:49 AM
time sheet drop down lists Steve Excel Discussion (Misc queries) 12 March 18th 06 10:30 PM
Sumif Cells Are Not Blank Powlaz Excel Worksheet Functions 12 March 15th 06 04:40 PM
getting a total for a row of cells where some are text babs Excel Discussion (Misc queries) 1 February 1st 06 04:51 PM
Convert data type of cells to Text,Number,Date and Time Kevin Excel Worksheet Functions 1 December 31st 04 12:57 PM


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