ozbeachbum
Board Regular
- Joined
- Jun 3, 2015
- Messages
- 237
- Office Version
- 2021
- Platform
- Windows
=IF(Y19="DST",(W19-U19)-TIMEVALUE("01:00"),IF(Y19="EST",(W19-U19)+TIMEVALUE("01:00"),
IF(AND(F19>D19,Y19="DST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)-TIMEVALUE("01:00"),
IF(AND(F19>D19,Y19="EST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)+TIMEVALUE("01:00"),
IF(F19>D19,(F19-D19)-DAY(1)+W19+DAY(1)-U19,W19-U19)))))
The formulae in BOLD work, I am having trouble getting multiple days and different time zones to work.
Any assistance greatly appreciated.
IF(AND(F19>D19,Y19="DST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)-TIMEVALUE("01:00"),
IF(AND(F19>D19,Y19="EST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)+TIMEVALUE("01:00"),
IF(F19>D19,(F19-D19)-DAY(1)+W19+DAY(1)-U19,W19-U19)))))
The formulae in BOLD work, I am having trouble getting multiple days and different time zones to work.
Any assistance greatly appreciated.
GG 24-25 C&S financials.xlsx | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
D | E | F | G | U | V | W | X | Y | Z | AA | AB | AC | AD | ||||||||||||||||
13 | Date | ||||||||||||||||||||||||||||
14 | Start | End | Depart | Arrive | Time Zone | [hh]:mm Duration | |||||||||||||||||||||||
15 | |||||||||||||||||||||||||||||
16 | |||||||||||||||||||||||||||||
17 | |||||||||||||||||||||||||||||
18 | |||||||||||||||||||||||||||||
19 | Thu 21-Nov-24 | Thu 21-Nov-24 | 07:20 | 10:40 | EST | 04:20 | |||||||||||||||||||||||
20 | Thu 21-Nov-24 | Fri 22-Nov-24 | 08:00 | 10:00 | 26:00 | CORRECT | 26:00 | ||||||||||||||||||||||
21 | Fri 22-Nov-24 | Sat 23-Nov-24 | 08:00 | 07:00 | 23:00 | CORRECT | 23:00 | ||||||||||||||||||||||
22 | Sun 24-Nov-24 | Tue 26-Nov-24 | 20:00 | 07:00 | 35:00 | CORRECT | 35:00 | ||||||||||||||||||||||
23 | Wed 27-Nov-24 | Fri 29-Nov-24 | 20:00 | 07:00 | DST | ########## | Would need to be | 34:00 | |||||||||||||||||||||
Blank (5) |
Cell Formulas | ||
---|---|---|
Range | Formula | |
AC20:AC23 | AC20 | =IF(AA20=AD20, "CORRECT","Would need to be") |
AD20:AD21 | AD20 | =W20-U20+DAY(1) |
AD22 | AD22 | =W22-U22+DAY(2) |
AD23 | AD23 | =(W23-U23-TIMEVALUE("01:00"))+DAY(2) |
AA19:AA23 | AA19 | =IF(Y19="DST",(W19-U19)-TIMEVALUE("01:00"),IF(Y19="EST",(W19-U19)+TIMEVALUE("01:00"), IF(AND(F19>D19,Y19="DST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)-TIMEVALUE("01:00"), IF(AND(F19>D19,Y19="EST",(F19-D19)-DAY(1)+W19+DAY(1)-U19)+TIMEVALUE("01:00"), IF(F19>D19,(F19-D19)-DAY(1)+W19+DAY(1)-U19,W19-U19))))) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
AA19:AB28 | Cell Value | =0 | text | YES |