ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   time calculations (https://www.excelbanter.com/excel-worksheet-functions/242035-time-calculations.html)

NEHicks

time calculations
 
I need to count the total hours by unit in a spreadsheet. One column is for
a start time, the next column is an end time and this is the formula that I
use to calculate the number of hours on a 24 hour clock:
=MOD(G107-F107,1)-((MOD(G107-F107,1)*248)*30/1440)

I need to look at the whole pay period and calculate the hours by ward.
Ward = C column
# of hours worked = H column (where formula is)
I have tried using =SumIF($C$5:$C$25, "3A", $H$5:$H$25). It doesn't work.
I then tried to use the TimeValue formua and couldn't get that to work. Help.


Pete_UK

time calculations
 
I don't know what "It doesn't work" means - how does it not work? Do
you get errors, zero, answer too large or too small ??

The SUMIF formula looks fine, as long as your Ward is called 3A, but
perhaps you might have entered it within your data in column C as
3A<space. To check for that put wildcards within the quotes, like
this:

=SUMIF($C$5:$C$25,"*3A*",$H$5:$H$25)

If this doesn't work, tell me what happens.

Hope this helps.

Pete

On Sep 8, 9:21*pm, NEHicks wrote:
I need to count the total hours by unit in a spreadsheet. *One column is for
a start time, the next column is an end time and this is the formula that I
use to calculate the number of hours on a 24 hour clock: *
=MOD(G107-F107,1)-((MOD(G107-F107,1)*248)*30/1440)

I need to look at the whole pay period and calculate the hours by ward.
Ward = C column
# of hours worked = H column (where formula is)
I have tried using =SumIF($C$5:$C$25, "3A", $H$5:$H$25). *It doesn't work. *
I then tried to use the TimeValue formua and couldn't get that to work. Help.




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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com