Miuns Non Working Hours

vmjan02

Well-known Member
Joined
Aug 15, 2012
Messages
546
I have this problem, here.

Now in a column A I have the End time and in column C in have the start time.

Am bit confused with the non working hours

From Sun to Thu it is 13:00:00 hrs -- Non working hours
On Friday it is 15:00:00 hrs -- Non working hours
On Saturday it is 12:00:00 hrs -- Non working hours

now here an employee can Swipe in on Monday and can swipe out on Thursday
1 Case
1) Its easy to get the total time (A-C).
2) But here need to exclude the non working hrs (Tue and Wed --(13+13))


now here an employee can Swipe in on Sunday and can swipe out on Friday
2 Case
1) Its easy to get the total time (A-C).
2) But here need to exclude the non working hrs (Monday to Thursday --(65:00:00))



INCIDENT CREATION_dateINCIDENT CREATION_dayINCIDENT Creat Start Time
END_date

<tbody>
</tbody>
END_day

<tbody>
</tbody>
END_Time

<tbody>
</tbody>
Actual Non Working Hrs Sun to ThuActual Non Working Hrs FridayActual Non Working Hrs SaturdayFinal Time Excluding Non working Hrs
5
Thursday

<tbody>
</tbody>
13:11:44

<tbody>
</tbody>
5

<tbody>
</tbody>
Thursday

<tbody>
</tbody>
15:44:51

<tbody>
</tbody>
13:00:0015:00:0012:00:00
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
3:44:23

<tbody>
</tbody>
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
15:17:27

<tbody>
</tbody>
13:00:0015:00:0012:00:00
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
1:33:48

<tbody>
</tbody>
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
11:23:51

<tbody>
</tbody>
13:00:0015:00:0012:00:00
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
9:13:39

<tbody>
</tbody>
6

<tbody>
</tbody>
Friday

<tbody>
</tbody>
13:58:03

<tbody>
</tbody>
13:00:0015:00:0012:00:00
1

<tbody>
</tbody>
Sunday

<tbody>
</tbody>
0:16:51

<tbody>
</tbody>
2

<tbody>
</tbody>
Monday

<tbody>
</tbody>
13:22:19

<tbody>
</tbody>
13:00:0015:00:0012:00:00
3Tuesday11:48:227Saturday19:09:4513:00:0015:00:0012:00:00

<tbody>
</tbody>

Any Idea or formula as how this can be done, as the start and end can always vary. but final output will be excluding non working hrs.
 

Some videos you may like

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes

Forum statistics

Threads
1,089,428
Messages
5,408,166
Members
403,188
Latest member
Sanjana Ramesh

This Week's Hot Topics

  • help please
    SORRY NOT ANY GOOD AT EXCEL SO HELP WOULD BE MUCH APPRECIATED this formula is in a sheet called ignore...
  • two formulas needed
    Hello, I'll try my best to explain this: First formula needed in Sheet1 cell A2: If Sheet1 cell B2 = Sheet2 cell B2 then return a 1. If not then...
  • Dynamic Counts
    Good afternoon, we are tidying up some data & the data seems to be growing quicker than we are tidying it up! What we confirm (by reviewing it...
  • Help Excel formula eliminate duplicate values and keep only 2 identical rows.
    as picture below column A has a duplicate value. but the values are not the same as the rule. sometimes 4 rows, sometimes 10 rows or 7 or 9...
  • Macro Compile Error Sub or Function not defined
    Hello, I am trying to run macros from a validation list, all macros have been created and run perfectly on there own but I'm getting a compile...
  • Last row combined with Current Region VBA
    I'm generally happy finding the last row of data through something like Lastrow = Cells(Rows.Count, "D").End(xlUp) but I don't always receive data...
Top