Need help in counting time

jyots_piyu

New Member
Joined
Jun 15, 2016
Messages
2
HI FRIENDS I HAVE BELOW DATA WITH ME, NOW I WANT TO COUNT HOW MANY DAYS EMPLOYEE PUNCHED IN BEFORE 9 AND HOW MANY TIME THEY PUNCHED BETWEEN 09:15 TO 09:30 AM
[TABLE="width: 1185"]
<colgroup><col><col><col span="2"><col><col><col span="2"><col><col><col span="2"><col span="2"><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD][TABLE="width: 249"]
<colgroup><col><col><col span="2"></colgroup><tbody>[TR]
[TD="colspan: 4"]MS.Y[/TD]
[/TR]
[TR]
[TD]B1[/TD]
[TD]C1[/TD]
[TD]D1[/TD]
[TD]E1[/TD]
[/TR]
[TR]
[TD]Days[/TD]
[TD]Detail[/TD]
[TD]InTime[/TD]
[TD]OutTime[/TD]
[/TR]
[TR]
[TD]1 F[/TD]
[TD]P[/TD]
[TD="align: right"]09:00[/TD]
[TD="align: right"]17:56[/TD]
[/TR]
[TR]
[TD]2 St[/TD]
[TD]P[/TD]
[TD="align: right"]10:16[/TD]
[TD="align: right"]17:22[/TD]
[/TR]
[TR]
[TD]3 S[/TD]
[TD]WO[/TD]
[TD] [/TD]
[TD] [/TD]
[/TR]
[TR]
[TD]4 M[/TD]
[TD]P[/TD]
[TD="align: right"]09:41[/TD]
[TD="align: right"]18:05[/TD]
[/TR]
[TR]
[TD]5 T[/TD]
[TD]P[/TD]
[TD="align: right"]09:10[/TD]
[TD="align: right"]18:00[/TD]
[/TR]
[TR]
[TD]6 W[/TD]
[TD]P[/TD]
[TD="align: right"]09:23[/TD]
[TD="align: right"]18:01[/TD]
[/TR]
[TR]
[TD]7 Th[/TD]
[TD]P[/TD]
[TD="align: right"]09:14[/TD]
[TD="align: right"]16:15[/TD]
[/TR]
[TR]
[TD]8 F[/TD]
[TD]P[/TD]
[TD="align: right"]09:31[/TD]
[TD="align: right"]18:33[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Hi, welcome to the forum.

Here is one option you can try:


Excel 2013
BCDEFGH
1DaysDetailInTimeOutTime
21 FP09:0017:56Before 9am0
32 StP10:1617:22Between 09:15 and 09:304
43 SWO
54 MP09:4118:05
65 TP09:1018:00
76 WP09:2318:01
87 ThP09:1416:15
98 FP09:3118:33
Sheet1
Cell Formulas
RangeFormula
H2=COUNTIFS(D2:D9,"<09:00")
H3=COUNTIFS(D2:D9,">=09:00",D2:D9,"<=09:30")
 
Upvote 0
Great, good to hear :) hope you were able to spot where you went wrong with your attempts.
 
Upvote 0

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