Formula for attendance sheet

mayoub

New Member
Joined
Jun 17, 2014
Messages
20
Hi Guys,

I have the following attendance sheet report, i want to add in the comments section a display error when someone punch in and doesn't punch out, the issue is that i have multiple columns with time in and time out since they go for breaks during the working hours, so i just want to display the message "Missing punch out" whenever an employee forgets to punch out during anytime from a single day
Emp No.AC-No.No.DateClock In 1Clock Out 1Work Time 1Clock In 2Clock Out 2Work Time 2Clock In 3Clock Out 3Work Time 3Clock In 4Clock Out 4Work Time 4Clock In 5Clock Out 5Work Time 5Break TimeTotal in timeOTUnder TimeAbsentComments
0:00​
0:00​
0:00​
16:00​
17:44​
1:43​
17:59​
22:00​
4:00​
00:17:00
5:44​
1:15​
0:00​
0:00​
0:00​
9:30​
13:03​
3:33​
00:00:00
3:33​
3:26​
0:00​
0:00​
0:00​
15:58​
19:13​
3:15​
19:19​
22:00​
2:40​
00:07:00
5:56​
1:03​
0:00​
0:00​
0:00​
15:53​
22:00​
6:06​
00:01:00
6:06​
0:53​
0:00​
0:00​
0:00​
14:08​
15:08​
1:00​
15:10​
00:02:00
TRUE​

What formula should i use in Comments?

Thanks a lot,
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Maybe

=IF(COUNT(E2,H2,K2,N2,Q2)=COUNT(F2,I2,L2,O2,R2),"", "Missing punch out" )
 
Upvote 0
Assuming the table starts in Cell A1. Then in the comments cell add in this formula:

Book1
ABCDEFGHIJKLMNOPQRSTUVWXY
1p No.AC-No.No.DateClock In 1Clock Out 1Work Time 1Clock In 2Clock Out 2Work Time 2Clock In 3Clock Out 3Work Time 3Clock In 4Clock Out 4Work Time 4Clock In 5Clock Out 5Work Time 5Break TimeTotal in timeOTUnder TimeAbsentComments
20:000:000:0016:0017:441:4317:5922:004:0011100:17:005:441:15 
30:000:000:009:3013:033:3300:00:003:333:26
40:000:000:0015:5819:133:1519:1922:002:4000:07:005:561:03
50:000:000:0015:5322:006:0600:01:006:060:53
60:000:000:0014:0815:081:0015:1000:02:00TRUE
Sheet1
Cell Formulas
RangeFormula
Y2Y2=IF(F2="","Missing punch out",IF(I2="","Missing punch out",IF(L2="","Missing punch out",IF(O2="","Missing punch out",IF(R2="","Missing punch out","")))))
 
Upvote 0
The op has asked for Punch Out not Punch In. P.S I like your formula.(y)
 
Upvote 0

Forum statistics

Threads
1,215,249
Messages
6,123,882
Members
449,130
Latest member
lolasmith

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top