Home

formula to calculate total time worked in a week.

Jeanmentions
New Contributor

Hello, I'm trying to write a formula to calculate how many hours were worked during the a week.  I either get an "value" message or 00:00. Can someone help me.

07:17
01:05
06:59
04:56
06:21
04:56
05:00
#VALUE!
7 Replies

In general it works.

image.png

the only result is to be formatted as elapsed time [hh]:mm

 

It looks like in your case time is entered as text, that's why you have zero. You may test by =ISTEXT(A1)

 

Assuming your addends are in A1:A7, the formula for total hours is:
=SUMPRODUCT(HOUR(A1:A7)+(MINUTE(A1:A7)/60))

formula almost works, it did total to 13:36. when done on a calculator, it amounts to 35:15.  it seems we're almost there.

You're right I didn't realize that: =TEXT(D3-C3,"hh:mm"). how should it be written?

 

on cell Ctrl+1 and apply custom format as

image.png

 

Using my formula, the sum, in general format, 36.57 hours.
Using that format for the sum, the formula must be revised as:
=SUMPRODUCT(—A1:A7)
It returns 36:34.
Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
35 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
Security Community Webinars
Valon_Kolica in Security, Privacy & Compliance on
9 Replies