Tracking Quarterly Total Hours

RandyD123

Active Member
Joined
Dec 4, 2013
Messages
296
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet with two tabs. Both seen below: What I need to do is calculate total hours each employee Shift Trades Off. The first sheet does that for each entry. What I need to do is show total hours per quarter on the Data Tab. So for example "Employee #1 puts in a lot of trades. As long as they don't give away more than 20% of there total hours per quarter they are fine. But if they go over I need to have that flagged as shown in my conditional formatting. (Those over hours are just showing what will happen if they go over the allotted amount. I'm not sure if I use VBA or a Formula on the Data Tab. I hope I've given enough info. Thank in advance for any help.


Book1 - Copy.xlsm
ABCDEFGHI
1
2
3STW (Person Working)STO (Person Not Working)Date Shift Trade Will OccurTime StartTime EndTotal Hours Traded OffPerson Who Made This EntryDate Person Made This Entry
4Name #08Name #0301/17/23040008004.0
5Name #03Name #0102/27/23120016304.5
6Name #04Name #0303/15/23130018305.5
7Name #06Name #0104/22/23043007303.0
8Name #02Name #0404/28/230730200012.5
9Name #08Name #0405/02/23113017306.0
10Name #05Name #0205/14/23033012008.5
11Name #01Name #0306/12/23180020002.0
12Name #07Name #0107/04/23170024007.0
13Name #71Name #0207/30/23033007304.0
14Name #08Name #0208/02/23033012008.5
15Name #110Name #0408/17/23130018005.0
16Name #119Name #0208/18/23130018005.0
17Name #06Name #0408/19/23033012008.5
18Name #22Name #0109/22/23080012004.0
19Name #114Name #0309/27/23120018006.0
200.0
Shift Trades
Cell Formulas
RangeFormula
G4:G20G4=(TEXT(F4,"00\:00")-TEXT(E4,"00\:00"))*24
Cells with Data Validation
CellAllowCriteria
B4:C20List=Data!$B$4:$B$149



Book1 - Copy.xlsm
ABCDEFGHI
1
220%
3NamesHours / PPHours / Quarter1/1/20234/1/20237/1/202310/1/2023
4Name #0140524.5311
5Name #02801048.512.55
6Name #03801047.524
7Name #048010418.58.5
8Name #0540524.5
9Name #064052
10Name #074052
11Name #08405253
12Name #09405254
13Name #1080104105
14Name #11405253
15Name #1280104
16Name #1380104
Data
Cell Formulas
RangeFormula
D4:D16D4=SUM(C4 * 6.5)*($D$2)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
H4:H149Expression=SUM(H4>D4)textNO
G4:G149Expression=SUM(G4>D4)textNO
F4:F149Expression=SUM(F4>D4)textNO
E4:E149Expression=SUM(E4>D4)textNO
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Just wanted to check in and see if anyone could help with this. Not sure if I explained it correctly or not. So the Data sheet needs to add up all the shift trade OFF's each employee takes per quarter. Once that quarter is over, then their hours should track in the next quarter column. Just not sure how to tie one sheet to the other. I'm assuming a lot of VBA or a formula that is beyond me. Thanks again for taking a look.
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,254
Members
452,623
Latest member
Techenthusiast

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