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.

=SUM(B10;+8h)in cellE4, but you sayE5=SUM(B10;C16)— … (Cont’d) – Scott - Слава Україні Oct 05 '18 at 04:05B10is one of the cells that sayTill(which I guess is a constant string / label) and Row 16 is the totally blank row at the bottom, so I have no idea why you’re trying to add them. But you say “(outputfield b10) =SUM(B4;TIME(8;15;0))” and “B10 = the end time of Monday”, but you have=SUM(B4;TIME(8;15;0))in what looks like the 11th row (which does seem to be a Monday row). And if the (second) Monday row is row 10, then the totally blank row … (Cont’d) – Scott - Слава Україні Oct 05 '18 at 04:05input hare meant to be blank cells where you enter data, but you don’t explain that. You talk about inputting “14:45”, but you don’t say where you want to put it or what (specific) results you want to get from it. You say “I want to know when do I stop working … but also I want to know when I can start again after 8h”, but you also say “The only thing I can get to work … is printing the time with 8h difference”, … (Cont’d) – Scott - Слава Україні Oct 05 '18 at 04:06=SUM(B10;+8h), which is not correct.) And you’re now talking about adding 8:15 (instead of 8 hours), which is confusing. You’re talking about output fields turning blank if there is no input (see this), “a true false statement that turns green or red”, … (Cont’d) – Scott - Слава Україні Oct 05 '18 at 04:078H betweenornot 8H between, none of which was in the original question. OK, the original question talked about the 8 hour interval, but it sounded like you wanted a time, not a message. This is a puzzle: ifIis your input, andJ=I+8h, andK=J+8h, how can there not be 8 hours betweenJandK? If you’re comparingK(E5?) toZ(B5?), what isZ? Does it have something to do with the fixed shift schedules? (Why did you even tell us about the shift schedules? What do they have to do with your question? … (Cont’d) – Scott - Слава Україні Oct 05 '18 at 04:07