Interval Time Calculations

iosiflupis

New Member
Joined
Jan 26, 2022
Messages
39
Office Version
  1. 365
Platform
  1. Windows
Hello all,
I am working on a spreadsheet to determine flight windows. We are trying to make a spreadsheet calculate the time window between scheduled aircraft ARR (arrivals) & DEP (departures). I will be inputting the times in as 24-hr hours/minutes. When the aircraft is a departure we need the window to close (-) 15 minutes prior to departure time. If it is an arrival, we need the window to close 15 minutes before arrival. In either case we need the window to open back up 15 minutes after arrival or departure time. Basically, our drones need to be on the ground 15 prior to arrival & departure, and then can be back in the air 15 after departure and arrival.

I tried an IF statement {=IF(B3="DEP",C3-15,C3+15)} but all I got was -14.77 (formatted as a number).

I am attaching a screenshot of what I have so far. I do not need Column D, UAS Time.

Thank you all for your help!
 

Attachments

  • Flight window snip.png
    Flight window snip.png
    25.3 KB · Views: 37

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Try this:

Book1
ABCDEF
1
2Airline/Flight #Arr/DepTimeUAS TimeFlight Window
3WN-1190DEP05:2505:10
4
5WN-806DEP06:5506:40
6
7WN-2536ARR11:3511:50
8
9WN-1781ARR14:4014:55
10
11WN-1781DEP15:1515:00
Sheet6
Cell Formulas
RangeFormula
F3,F11,F9,F7,F5F3=IF(B3="DEP",C3-(15/(24*60)),C3+(15/(24*60)))
 
Upvote 0
How about
Excel Formula:
=IF(B3="DEP",C3-time(0,15,0),C3+time(0,15,0))
 
Upvote 0
Solution
awoohaw & Fluff, thank you for your quick response. Last night after I got home my wife listened to the problem and then proceeded to turn my world upside down.

She pointed out that I would need a 30-minute time frame around arrivals and departures. I tried to search the web for ideas on how to accomplish this. No joy. Do either of you know how I might accomplish this?
 
Upvote 0
just change the places where you see 15 to 30 in either of our formulas.

Excel Formula:
        =IF(B3="DEP",C3-time(0,30,0),C3+time(0,30,0))

Excel Formula:
=IF(B3="DEP",C3-(30/(24*60)),C3+(30/(24*60)))

Fluffs is much cleaner.
 
Upvote 0
What exactly do you want in col D, can you give some examples.
 
Upvote 0
Fluff & awoohaw,

I believe that I have it. I used the first answer that Fluff gave. What I did, shown in the picture, was add a row to all entries, giving each entry two times. Basically a stop and start time. Then I subtracted the next flight's 'first' time from the previous flight's 'last' time. The formula for the first time was changed to =(c3-time(0,15,0)) and the last time was changed to =(c3+time(0,15,0)). Got rid of the IF statement and the pointer clause in the IF statement. I checked it out and it works like a champ. Thank you both for your help in pointing out the path to follow!
 
Upvote 0
Glad you sorted it & thanks for the feedback.
 
Upvote 1

Forum statistics

Threads
1,223,893
Messages
6,175,244
Members
452,622
Latest member
Laura_PinksBTHFT

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top