ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Time card template (https://www.excelbanter.com/excel-worksheet-functions/68065-time-card-template.html)

musicman52151

Time card template
 
I have a large spreadsheet of time calculations. I have formula to get number
of hours worked per person.
A B C
10:00 AM 2:30 PM 4:30 This formula works
12:00 PM 3:15 PM 3:15 =TEXT(B1:A1,"h:mm")
2:00 PM 7:30 PM 5:30
4:00 PM 5:30 PM 1:30
12:00 AM This formula does not work
=sum(c1:c4) How come? I would like this to work like an old fashioned time
card from the 50's Thanks


Biff

Time card template
 
Hi!

Try this:

Enter this formula in cell C1 and copy down as needed:

Format the cell as h:mm

=IF(COUNT(A1:B1)<2,"",B1-A1+(B1<A1))

Now your Sum formula should work. Format the cell of the Sum formula as
[h]:mm.

Biff

"musicman52151" wrote in message
...
I have a large spreadsheet of time calculations. I have formula to get
number
of hours worked per person.
A B C
10:00 AM 2:30 PM 4:30 This formula works
12:00 PM 3:15 PM 3:15 =TEXT(B1:A1,"h:mm")
2:00 PM 7:30 PM 5:30
4:00 PM 5:30 PM 1:30
12:00 AM This formula does not work
=sum(c1:c4) How come? I would like this to work like an old fashioned
time
card from the 50's Thanks





All times are GMT +1. The time now is 12:58 PM.

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