Re: MORE HELP WITH TIME FUNCTION by bobocat
bobocat
Thu Nov 09 21:11:52 CST 2006
For you information, 5.5 hours = 1/24*5.5, half an hour = 1/24*0.5
therefore , the formula should be
=if(d11-c11>=1/24*5.5, d11-c11-1/24*0.5, d11-c11)
then set the answer in time format
or
=text(if(d11-c11>=1/24*5.5, d11-c11-1/24*0.5, d11-c11),"hh:mm")
"John Smith" <toysnivy@ptd.net> ???????:sRucnVMqav8Lec7YUSdV9g@ptd.net...
>I have a cell (E11) that has calculated the hours worked
>'D11-C11(D11>C11)'. If that amount is greater than 5.5 hours (which it
>usually is), I need to subtract a one half hour meal period from the total.
>I have tried '=IF(D11-C11>="5:30",D11-C11-"0:30",D11-C11)' but it does not
>work. What am I not doing or doing wrong?