This is the setup:
1. work days Mo Tu Wed Thu, Fri different hours
2. shifts daily MO to THU:
- early 5:15 - 13:30 = 8:15
- Late 13:30 - 21:30 = 8:00
- night 21:30 - 5:15 = 7:45
3. Friday hours
- early 5:15 - 12:15 = 7:00
- late 12:15 - 19:00 = 6:45
- night 19:00 - 3:00 = 7:45
4. Flexible work
I have a flexible work schedule. Let's say if I input 14:45 I want to know when do I stop working (not counting overtime) but also I want to know when I can start again after 8h because I only need 8h between two shifts (not every day but it happens) so I want to only input my starting hours every day and let Excel do the rest. It almost works but I'm stuck.
╔════╦════════╦═══════════════════════╦═══════════╦═══════════╦═══════════════════════╦══════════════════════════════════════════╗
║ ║ A ║ B ║ C ║ D ║ E ║ F ║
╠════╬════════╬═══════════════════════╩═══════════╩═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 1 ║ ║ HOUR MON - THU ║ 8 hours between ║ TRUE/FALSE ║
╠════╬════════╬═══════════════════════╦═══════════╦═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 2 ║ ║ Early ║ Late ║ Night ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 3 ║ MON ║ 10:30 ║ input ║ input ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 4 ║ TU ║ 1:00 ║ input ║ input ║ =SUM(B9;TIME(8;00;0)) ║ =IF(B4<E4;"not 8H between";"8H between") ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 5 ║ WED ║ input ║ input ║ input ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 6 ║ THU ║ input ║ input ║ input ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 7 ║ fri ║ input ║ input ║ input ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 8 ║ ║ until ║ until ║ until ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 9 ║ MO ║ =SUM(B3;TIME(8;15;0)) ║ Formula ║ Formula ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 10 ║ TU ║ =SUM(B4;TIME(8;15;0)) ║ formula ║ Formula ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 11 ║ WED ║ Formula ║ Formula ║ Formula ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 12 ║ THU ║ Formula ║ Formula ║ Formula ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 13 ║ FRI ║ Formula ║ Formula ║ Formula ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 14 ║ MO-THU ║ 5:15-13:30 ║ H-Info ║ H-info ║ ║ ║
╠════╣ ╠═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 15 ║ ║ 8:15 ║ H to work ║ H to work ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 16 ║ FRI ║ 5:15-12:15 ║ H-Info ║ H-Info ║ ║ ║
╠════╣ ╠═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ 17 ║ ║ 7:00 ║ H to work ║ H to work ║ ║ ║
╠════╬════════╬═══════════════════════╬═══════════╬═══════════╬═══════════════════════╬══════════════════════════════════════════╣
║ ║ ║ ║ ║ ║ ║ ║
╚════╩════════╩═══════════════════════╩═══════════╩═══════════╩═══════════════════════╩══════════════════════════════════════════╝
So i learned allot already, the input fields are the fields i put the hours in, the output are formulas that generate the hours to work, the 8h between work, but instead of just saying the 8 hours between shifts i would like to see it saying it's not 8h between and that IF formula is not working, it only prints 1 of the options true or false, mostly it says its false even if its true. Still i think my formula for the True/False statement should be =IF(B4>=E4;"8H between";"not 8H between") Because if the difference = 8H it's true
before i used things like =SUM(b3:B16) where B3 would be the input hours and B16 would have the time 8:15. if i can get 1 column to work i can do al fields for 3 persons working 3 shifts. is this more clear? btw count the ABC and 123 i put in.
