View Single Post
  #6   Report Post  
Posted to microsoft.public.excel.misc
TSuraco TSuraco is offline
external usenet poster
 
Posts: 6
Default WHY doesn't formula work???

OMG!!! Even BETTER!!! Ty, Ty, Ty!!!!!!!

"Conan Kelly" wrote:

TSuraco,

What do you want if the sum is less than/equal to 40?

This formula will return 0 if <= 40:

=if(sum(h16:l16)40,sum(h16:l16)-40,0)

Change the last 0 after the comma to what ever you need:

"" (empty quotes) will make the cell appear to be blank
"No overtime this pay period" (be sure to include the quotes) will
return that phrase in the cell.

HTH,

Conan


"TSuraco" wrote in message
...
I'm trying to track straight time vs. Overtime. I want H16 to add columns
H16:L16 (where time totals are) & I then want G16 to subtract 40 if H16 is
greater than 40. I've tried everything I can think of. Help!!!!

=(SUM(H16:L16)-40)
=IF(SUM(H16:L16)40 -40) (I dunno)