formulas Help in determining the number of working hours and extracting additional hours from them

abdelfattah

Well-known Member
Joined
May 3, 2019
Messages
1,507
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
i have file is equipped table to determine the number of working hours (two terms) and extract them additional hours
I would like to help fill the cells with the appropriate formula with the following notes
1. Official working hours are 8 hours and what has increased is the extra time, and numbers entered at the time of entry and exit system for the two periods are 24 hours
2- Any Friday in which the time is completely extra
3. Vertical cells added in another table and is a names of days, may help in the equation to determine if the calculated full day in the case of a cell "Today the name of" Gomaa or otherwise
(And this column in each month will be different based on the order of days in each month and will be arranged to change every time)
4. There is in another cell total hours Het extra time for the entire

Work Time Sheet.xlsx
ABCDEFGHIJ
1
2Time Card
3
426 XX.2020 To 25 XX.2020
5
6MorninigAfter Noon
7Log inLog OutLog inLog OutHrs workedOverTime HoursDay Name
8267:5712:0012:3016:02Tuesday
9277:5011:5912:3816:08Wednesday
10287:5412:0212:4917:45Thursday
112910:5611:5612:5115:44Friday
12307:4012:0012:3015:30Saturday
13318:0012:0012:3016:06Sunday
14
1517:5712:0012:3016:02Monday
1627:5011:5912:3816:08Tuesday
1737:5412:0212:4917:45Wednesday
1847:5311:5412:5218:32Thursday
19513:0015:00Friday
2067:5512:0112:3218:37Saturday
2177:5611:5612:5118:44Sunday
2288:0211:5812:5018:04Monday
2398:0811:5912:2618:02Tuesday
24107:0012:0912:5016:31Wednesday
25117:5511:5912:5017:01Thursday
26127:0012:0912:5016:31Friday
27137:4712:0214:3916:31Saturday
28147:2912:0314:0117:52Sunday
29156:5612:1914:3917:07Monday
30167:5511:5912:5017:01Tuesday
31177:0012:0912:5016:31Wednesday
32187:4712:0214:3916:31Thursday
33197:2912:0314:0117:52Friday
34206:5612:1914:3917:07Saturday
35217:2912:0314:0117:52Sunday
36226:5612:1914:3917:07Monday
37237:5511:5912:5017:01Tuesday
38247:0012:0912:5016:31Wednesday
39257:4712:0214:3916:31Thursday
40
41
42Total OverTime (Hours)
43
44
45
26_XX 2020 To 26_XX 2020
 
If you just need the total for overtime, you can use a formula.
I included an option with a helper column and an option without the helper column.

T202006a.xlsm
ABCDEFG
7Log inLog OutLog inLog OutHrs worked
8Tue May-26-2007:5712:0012:3016:027.580
7aa
Cell Formulas
RangeFormula
F8F8=((C8-B8)+(E8-D8))*24
G8G8=--(OR(WEEKDAY(A8,16)=7,ISNUMBER(MATCH(A8,$M$2:$M$97,0))))


T202006a.xlsm
BCDEFGH
43OT With helper column G45.32
44OT Without helper column45.32
7aa
Cell Formulas
RangeFormula
H43H43=SUMPRODUCT(--(F8:F38>8),--(G8:G38=0),(F8:F38-8))+SUMPRODUCT(--(G8:G38=1),(F8:F38))
H44H44=SUMPRODUCT(--(WEEKDAY(A8:A38,16)=7)+ISNUMBER(MATCH(A8:A38,M2:M8,0)),(H8:H38))-SUMPRODUCT(--(WEEKDAY(A8:A38,16)=7),--(F8:F38>8),(F8:F38-8))+SUMPRODUCT(--(F8:F38>8),(F8:F38-8))
 
Upvote 0

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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