I am having a problem with calculating time. I can calculate the difference
in hours over midnight, but what I can't do is not get a value to appear
when I have only put in one number...For instance. I put in the time I
start, and in my hours it shows midnight minus those hours without me
putting in an ending value for hours worked.. Is there anyway to get this
to show an error if they only put in a start time and no quit time?
Hopefully this makes sense to someone out there. Any information anyone
can give would be helpful.
Thanks
One way:
Say start time is in A1 and quit time in B1. Then
=IF(A1="","",IF(B1="","No Quit Time Specified",MOD(B1-A1,1)))
> I am having a problem with calculating time. I can calculate the difference
> in hours over midnight, but what I can't do is not get a value to appear
[quoted text clipped - 6 lines]
>
> Thanks
Huston - 19 Apr 2007 19:17 GMT
If I want to add multiple columns? I am using A1 through D1. They want time
in morning, time out lunch, time back lunch, and time quitting.
> One way:
>
[quoted text clipped - 14 lines]
>>
>> Thanks
JE McGimpsey - 19 Apr 2007 19:41 GMT
One way:
=IF(A1="","",IF(COUNT(B1:D1)=3,MOD(D1-C1,1)+MOD(B1-A1,1),"Error"))
> If I want to add multiple columns? I am using A1 through D1. They want time
> in morning, time out lunch, time back lunch, and time quitting.
[quoted text clipped - 17 lines]
> >>
> >> Thanks
Huston - 19 Apr 2007 19:52 GMT
Much better than the way I did it.... Thanks again
> One way:
>
[quoted text clipped - 25 lines]
>> >>
>> >> Thanks
Huston - 19 Apr 2007 19:46 GMT
Figured it out.... Thank you for your help.
> One way:
>
[quoted text clipped - 14 lines]
>>
>> Thanks