Hello,
I have been trying to combine 2 IF statements for 2 hours and have tried multiple variations and researched the board for answers but still can't get it to work.
Nested IF statement in cell F6. Times are in range D3:D6. If the times are not filled in then leave blank.
Scenario: Employees Time in and Timeout multiple times as the example below:
[TABLE="width: 220"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]
1st Example: Clocking Record[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]8:00 AM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]10:00 AM[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]2:00 PM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]6:00 PM[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 391"]
<tbody>[TR]
[TD]Total Hrs Worked[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
2nd Example: Employees Time in and Timeout once as the example below:
[TABLE="width: 220"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Clocking Record[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]8:00 AM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]6:00 PM[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 391"]
<tbody>[TR]
[TD]Total Hrs Worked[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
Start Time – End Time – Start Time – End Time
=IF(AND(COUNT(D3:D6)=4),MROUND((D4-D3+(D4<=D3))*24,0.25)+MROUND((D6-D5+(D6<=D5))*24,0.25),"")
Start Time – End Time
=IF(MROUND((D6-D3+(D6<=D3))*24,0.25),MROUND((D6-D3+(D6<=D3))*24,0.25),"")
Thank you so much for your support.
Elaine
I have been trying to combine 2 IF statements for 2 hours and have tried multiple variations and researched the board for answers but still can't get it to work.
Nested IF statement in cell F6. Times are in range D3:D6. If the times are not filled in then leave blank.
Scenario: Employees Time in and Timeout multiple times as the example below:
[TABLE="width: 220"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]
1st Example: Clocking Record[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]8:00 AM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]10:00 AM[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]2:00 PM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]6:00 PM[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 391"]
<tbody>[TR]
[TD]Total Hrs Worked[/TD]
[TD="align: right"]6[/TD]
[/TR]
</tbody>[/TABLE]
2nd Example: Employees Time in and Timeout once as the example below:
[TABLE="width: 220"]
<colgroup><col><col></colgroup><tbody>[TR]
[TD="colspan: 2"]Clocking Record[/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD="align: right"]8:00 AM[/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Time In[/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]Time Out[/TD]
[TD="align: right"]6:00 PM[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="width: 391"]
<tbody>[TR]
[TD]Total Hrs Worked[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
Start Time – End Time – Start Time – End Time
=IF(AND(COUNT(D3:D6)=4),MROUND((D4-D3+(D4<=D3))*24,0.25)+MROUND((D6-D5+(D6<=D5))*24,0.25),"")
Start Time – End Time
=IF(MROUND((D6-D3+(D6<=D3))*24,0.25),MROUND((D6-D3+(D6<=D3))*24,0.25),"")
Thank you so much for your support.
Elaine