Formula to identify by workhours multiple days

dannwid

New Member
Joined
Jul 26, 2017
Messages
19
Office Version
  1. 365
Platform
  1. Windows
Hello everyone,
I'm stuck on some issue about time formula.

Here is the case,
I have 7 main column, with 2 sub column each. Main column contain day, sub-columns contain In and Out. In means arrival time, and Out means leave time. Check the picture below.

5cG02w1.jpg



Like i wrote on the image, how do i identify how many day(s) the employee get full time, not-full time, and not present (formula on blue fill area) ??

Above, on yellow fill (row 6), is the example of conditions, and the blue fill is the result (i identify 'em manually).

Starting hour is 8:30
End hours is 17:30
The conditions is shown on row 14,15,16

Heres the file of this case: DOWNLOAD

I hope i explained my question properly :)
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
You could try to write a single formula to enter in R6, S6 & T6, but that will be cumbersome and difficult to debug - so it's better practice to build some helper cells/columns (x 7 either between Q & R and then use Grouping/Outlines to collapse them under the Full column (now Z), or add them to the right of T, in say V:AB) to calculate the hours worked in each day.

Clarification required:

Is starting time a key to your test of Full vs Not Full (e.g. Full = start before 8:31 AND complete 9 hours), or is No. of hours worked the only critical value (i.e. does working 9 hours no matter when the employee started or ended = Full?)

If Full is a simple test of Hours worked >= 9, then formulas using the COUNTIFS function should return the values required in R6, S6 & T6
Full: R6 =COUNTIFS( $V6:$AB6, ">=" & 9 )
Not Full: S6 =COUNTIFS( $V6:$AB6, ">" & 0, $V6:$AB6, "<" & 9 )
N/A: T6 =COUNTIFS( $V6:$AB6, 0 )


This may not be your entire solution, but hopefully gives you something to work on.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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