Need Help Plwase

dieselkhan

New member
Joined
Sep 6, 2014
Messages
1
Reaction score
0
Points
0
I need to calculate how many pairings can operate to contractual and regulatory requirements.



CAP rules are, a Pilot can be on duty at 0600 Local and be off duty by 2359 Local

Contract rules are, a Pilot can be on at 0800 Local and be off duty by 2100 Local.



A pilot is on duty 01:15 prior departure time off flight

A pilot is off duty 00:30 after arrival time off flight.



I need to break down the report as I only need departures out of Base, BHX|LTN|LGW|EMA|LBA|MAN and arrivals into the same baseView attachment Book1.xlsx
 
Either use pivot tables or countifs. However both methods have problems.

Your time is text not time, you can change this to time with the timevalue function. However the countif(timevalue(STA), ">=" &Cap_st) fails with this. I tried sumproduct and a host of others.

Likewise running a pivot table and using a calculated field to determine CAP/Control fails (returns 1 or 0).

What I suggest is adding two columns,
CAP =IF(TIMEVALUE(I12) >= Cap_s,IF(TIMEVALUE(I12) <= Cap_e,1,0),0) and
Control =IF(TIMEVALUE(I12) >= Contract_s,IF(TIMEVALUE(I12) <= Contract_e,1,0),0)

Then doing a normal pivot table to filter the departing and arriving stations
 
Back
Top