sum and subtract hours
Hi
Are these hours in time format in Excel? Something like:
10:00
or some such? If so, the actual number (decimal) that this represents
is actually 10/24 or 0.416667 since hours are stored as the fraction
of a day, and 1.0 = 1 day. Hence, when you attempt to deduct 44
(rather than 44/24) you get ####### as Excel does not handle negative
times.
In which case, you may only have to use the following:
=IF(SUM(H7:H13)44/24,SUM(H7:H13)-44/24,SUM(H7:H13))
Hope thsi helps!
Richard
On 4 Feb, 10:18, "D." wrote:
Hi,
I am trying to create a formula
=IF(SUM(H7:H13)44,SUM(H7:H13)-44,SUM(H7:H13))
these are hours being added
anything over 44 hrs a wk is overtime so I need the formula to be
something like this:
=IF(SUM(H7:H13)44,SUM(H7:H13)-N4,SUM(H7:H13))
+IF(SUM(H14:H20)44,SUM(H14:H20)-N4,SUM(H14:H20))
even the formula
=SUM(H7:H13)-44
gives me
###########
|