military timeとなっているので24時間表示かと思ったらAM、PM表示の12間表示なんですよね。
私の感覚とは違う。
IF( OR(
SchedStartTime< DATETIMEVALUE(DATE(YEAR(DATEVALUE(SchedStartTime)),3,14)
-(WEEKDAY(DATE(YEAR(DATEVALUE(SchedStartTime)),3,14))-1))+11/24,
SchedStartTime> DATETIMEVALUE(DATE(YEAR(DATEVALUE(SchedStartTime)),11,7)
-(WEEKDAY(DATE(YEAR(DATEVALUE(SchedStartTime)),11,7))-1))+11/24
),
TEXT(
HOUR(TIMEVALUE(SchedStartTime-5/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-5/24))>23,24,0)-
IF(HOUR(TIMEVALUE(SchedStartTime-5/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-5/24))>23,24,0)>12, 12,0))+":"+
LPAD(TEXT(MINUTE( TIMEVALUE(SchedStartTime ))),2, "0")+
IF(HOUR(TIMEVALUE(SchedStartTime-5/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-5/24))>23,24,0)>11, " P"," A")
,
TEXT(
HOUR(TIMEVALUE(SchedStartTime-4/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-4/24))>23,24,0)-
IF(HOUR(TIMEVALUE(SchedStartTime-4/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-4/24))>23,24,0)>12,12,0))
+":"+
LPAD(TEXT(MINUTE( TIMEVALUE(SchedStartTime ))),2, "0")+
IF(HOUR(TIMEVALUE(SchedStartTime-4/24))
-IF(HOUR(TIMEVALUE(SchedStartTime-4/24))>23,24,0)>11, " P"," A")
)
+"M"