S
srctr
I have a spreadsheet that keeps track of hours worked during the week. The
formula is =IF(OR(B23="",C23="",D23="",E23=""),"Day Off",(TEXT(B23,"h:mm
AM/PM")&" - "&TEXT(C23,"h:mm AM/PM")
&"
"&TEXT(D23,"h:mm AM/PM")&" - "&TEXT(E23,"h:mm AM/PM")))
The columns track the In and Out times, Column B is In, Column C is Out,
Column D is In, Column E is Out.
This works great when there are no hours worked or there is a time in all 4
columns. It will give me the result as the hours in and out or Day Off. But
if there is time in for only half a day, it gives me Day Off.
For example: Monday has In as 8:30 am, Out as 12:00 pm, In as 12:30 pm, Out
as 5:00 pm the results show as:
8:30 am - 12:00 pm
12:30 pm - 5:00 pm
But if Tuesday has In as 8:30 am, Out as 12:00 pm, In is blank, Out is blank
then the results shows as Day Off
Obviously if Wednesday has In is blank, Out is blank, In is blank, Out is
blank the the results shows as Day Off
How do I get it to show me the hours worked even if some of the cells are
blank?
formula is =IF(OR(B23="",C23="",D23="",E23=""),"Day Off",(TEXT(B23,"h:mm
AM/PM")&" - "&TEXT(C23,"h:mm AM/PM")
&"
"&TEXT(D23,"h:mm AM/PM")&" - "&TEXT(E23,"h:mm AM/PM")))
The columns track the In and Out times, Column B is In, Column C is Out,
Column D is In, Column E is Out.
This works great when there are no hours worked or there is a time in all 4
columns. It will give me the result as the hours in and out or Day Off. But
if there is time in for only half a day, it gives me Day Off.
For example: Monday has In as 8:30 am, Out as 12:00 pm, In as 12:30 pm, Out
as 5:00 pm the results show as:
8:30 am - 12:00 pm
12:30 pm - 5:00 pm
But if Tuesday has In as 8:30 am, Out as 12:00 pm, In is blank, Out is blank
then the results shows as Day Off
Obviously if Wednesday has In is blank, Out is blank, In is blank, Out is
blank the the results shows as Day Off
How do I get it to show me the hours worked even if some of the cells are
blank?