+ Reply to Thread
Results 1 to 31 of 31

Calculate aircraft parking time

  1. #1
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Calculate aircraft parking time

    Hi All

    I need help with excel to calculate automatically the time an aircraft has been parking.

    Data:
    Arriving Flight Data
    Date Flight Nr Flight Reg Time Landed
    30/11/2016 110 abc123 23:05
    30/11/2016 148 fff333 20:45
    01/12/2016 104 zzz909 16:40
    01/12/2016 138 rrr565 17:45
    01/12/2016 108 lll777 19:45

    Departing flight Data
    Date Flight Nr Flight Reg Time Depart
    01/12/2016 101 abc123 06:45
    01/12/2016 129 ffff333 07:50
    01/12/2016 107 zzz909 17:35
    01/12/2016 147 rrrr565 19:50
    01/12/2016 109 lll777 20:50

    I need excel to calculate the time on ground for each flight

    Thanks for help

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate aircraft parking time

    Assuming the tail numbers only appear once in the landing data (as in your example),

    A
    B
    C
    D
    E
    F
    1
    Date
    Flight Nr
    Flight Reg
    Land
    2
    11/30/2016
    110
    abc123
    23:05
    3
    11/30/2016
    148
    fff333
    20:45
    4
    12/1/2016
    104
    zzz909
    16:40
    5
    12/1/2016
    138
    rrr565
    17:45
    6
    12/1/2016
    108
    lll777
    19:45
    7
    8
    9
    Date
    Flight Nr
    Flight Reg
    Depart
    ToG
    10
    12/1/2016
    101
    abc123
    6:45
    7:40
    E10: =A10 + D10 - (INDEX($A$1:$A$6, MATCH(C10, C$1:C$6, 0)) + INDEX($D$1:$D$6, MATCH(C10, C$1:C$6, 0)))
    11
    12/1/2016
    129
    fff333
    7:50
    11:05
    12
    12/1/2016
    107
    zzz909
    17:35
    0:55
    13
    12/1/2016
    147
    rrr565
    19:50
    2:05
    14
    12/1/2016
    109
    lll777
    20:50
    1:05
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi Shg

    Anyway to allow for the early flight to come back again in the afternoon, so that the early flight leaves in the morning and returns as a different flight in the afternoon and then leaves again?

    Thanks

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate aircraft parking time

    I don't follow that, sorry.

    But the formula ignores flight numbers, it uses tail numbers.

  5. #5
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi shg

    example maybe makes it easier

    Arriving Flight Data
    Date Flight Nr Flight Reg Time Landed
    30/11/2016 110 abc123 23:05

    Departing flight Data
    Date Flight Nr Flight Reg Time Depart
    01/12/2016 101 abc123 06:45

    this was the original flight data. Now this aircraft comes back

    Arriving flight Data
    Date Flight Nr Flight Reg Time Depart
    01/12/2016 110 abc123 16:40

    Departing flight Data
    Date Flight Nr Flight Reg Time Depart
    01/12/2016 101 abc123 17:45

    so, in this case the flight has come twice on the same day.

    Thanks

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Calculate aircraft parking time

    Post a reasonable amount of data in the actual format you use, please, with the desired results, calculated manually. And please post a workbook rather than text.
    Last edited by shg; 11-24-2017 at 12:42 AM.

  7. #7
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi shg

    I have now created a larger sample data sheet. The query relates to the Yellow and Green flights that is the same aircraft Reg, just that it is departing in the morning and then comes back later in the day and then departs again.

    is there a way excel can differentiate between the two flights when calculating the parking time?

    Thanks

  8. #8
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,453

    Re: Calculate aircraft parking time

    First, try to change your date to real date. Currently it is text.
    Next, use this in J6
    Please Login or Register  to view this content.
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Drag down
    Quang PT

  9. #9
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Dear bebo021999

    Thank you for the formula and explanation.

    Have a good day.

    Regards.

  10. #10
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi bebo021999

    I forget to mention this criteria

    flights that land in the evening and depart in the morning are exempt from the parking, i.e. if they come after 10pm and leave before 05:59am. Only before 10pm and after 5:59am are they charged.
    Example
    If flight comes in at 23:05 and departs in the morning to 7:20 then
    1. the parking fee is exempt i.e 0 as it is in the free zone time. lands after 10pm
    2. as the flight departs at 7:20 then it is not exempt and so parking time is charged from 5:59 to 7:20

    is there a way of putting this criteria in the formula?

    Thanks

  11. #11
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,210

    Re: Calculate aircraft parking time

    A bit more information please

    so if the flight arrives at 21:00 and leaves as 5:00 what is the charge? 1 hr or 6 hrs?
    if the flight arrives at 19:00 and leaves at 7:00 what is the charge? 12 hrs or 6 hrs?

  12. #12
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi davsth

    If the flight arrives in the evening, say at 21:45 then the charge for parking is 15 mins (22:00 start of free parking). In the morning if the flight leaves at 7:15 then the charge for parking is 1:16 (7:15-5:59(end of free parking time)
    If the flight arrives in the evening, say at 23:05 then the charge for parking is 0 mins (22:00 start of free parking). In the morning if the flight leaves at 5:15 then the charge for parking is 0 (5:59 end of free parking time.)

    In your example then

    first answer is 1hr
    second answer is 6hrs

    Regards.
    Last edited by vba1234; 11-24-2017 at 01:21 PM.

  13. #13
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,453

    Re: Calculate aircraft parking time

    So, grounding time exempt from 10PM to 6AM?
    I suggest to treat time to count like this:
    1/ Land time:
    0-6AM ==> i.e: 5:30AM change to be 6AM
    6AM-10PM ==> i.e: 8AM leave as it be
    10PM-11:59PM==> i.e: 10:30PMchange to be 6AM next morning
    2/ Depart time: the same

    I use a table to calculate Parking time from Column K to P

  14. #14
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi bebo021999

    Thank you the reply. I will check and see if I can understand the way you have done this.

    I can see that you have aligned the arrival and depart on the same line, but my data is not in this form. Is there any way to calculate as per my original data as I need other people to use this solution.

    Regards

  15. #15
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    Try this.
    K is helper column (to make formula simple)

    ARRAY formula in K2 then drag down
    Please Login or Register  to view this content.
    In L6 then drag down.
    Please Login or Register  to view this content.
    For total landing time ARRAY formula in J2, then drag down.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  16. #16
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Dear kvsrinivasamurthy

    Thank you for this. I will definitely try to understand the formula and double check the answer with those calculated by the supplier.

    Regards

  17. #17
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    hi kvsrinivasamurthy

    I have looked at your formula and for the flights that come in and go out same day, the formula is okay. However, for the evening flights and then out on the following morning the time parked is not correct.

    Parking time is free from 22:00 to 05:59 (i.e. 10pm to 5:59am) only. Outside these times the flight time is charged.

    Do you mind to check?

    Thanks

  18. #18
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    UPload file showing the problem with the expected result.
    Is there any minimum time required between landind time and take off time.

  19. #19
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi Bebp0201999

    Is it possible to use the exact time ie 22:00 and 05:59 in your calculation as my calaculation needs to be more precise?

    Regards

  20. #20
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    ARRAY formula
    In L6 then drag down..
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by kvsrinivasamurthy; 11-29-2017 at 02:56 AM.

  21. #21
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi kvsrinivasamurthy

    is there any way I can 'force' excel to convert the data I copy paste into this excel so that all formats are correct and the values are calculated? otherwise, I will get #Value errors?

    Regards

  22. #22
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    Pl upload file showing the problem.

  23. #23
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi kvsrinivasamurthy

    Please find file attached. Here I have data that I want to work on in excel, but all the formula give errors. Is it also possible for excel cells to show blank when there is no data but become live when there is?

    Regards
    Attached Files Attached Files

  24. #24
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    Data columns are in text format.

    Select A10:A34
    Data (tab) --> Text to coloumns
    Delimited --> Next --> Next --> Date (DMY) --> finish
    Done

    Similarly repeat for F10:F34

    Nowall dates are in date format.

  25. #25
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi kvsrinivasamurthy

    is this the only way I can get the data copy pasted into the correct way? is there no way excel can be 'forced' to make the change automatically?

    thanks

  26. #26
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    Sorry,I don't know any other method.

  27. #27
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi All

    I have some calculations that involve working out how many 15 min units are in a time. I can then charge for each 15 mins unit. Example, if the time is
    1 hr 14 mins this equals 5 x 15 mins.(if the mins rollover into the next 15 mins it counts as 1 unit) so the answer should be 5. I can use the roundup function to make this 5, but if the time was 1 hr 15 mins this would be 5 exactly, but roundup gives me 6. I have attached my excel and highlighted in yellow the two cells that are incorrect. Any one know how to prevent roundup calculating the wrong answer.

    Thanks
    Attached Files Attached Files

  28. #28
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,577

    Re: Calculate aircraft parking time

    In T10, then drag down
    Please Login or Register  to view this content.

  29. #29
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Hi kvsrinivasamurthy

    Thank you very much.

    Best regards.

  30. #30
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Dear All

    I have attached a sample excel sheet of data. The problem I have is that I have the aircraft departing time okay, however I need to match this to the aircraft arriving time. The formula I have for reasons unknown gives me the incorrect result and doubles the aircraft time missing the actual arriving time. I would be grateful if someone would kindly have a look and provide a solution.
    Regards

    Vba1234
    Attached Files Attached Files

  31. #31
    Forum Contributor
    Join Date
    03-16-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    135

    Re: Calculate aircraft parking time

    Dear All

    I have re-submitted and attached an updated excel sheet (Sample Sheet)- attached. I am trying to use the formulae that were given to me by the forum members 'bebo021999',
    and 'kvsrinivasamurthy' and I would be very grateful if you could have a look to identify why the formula is not giving me the correct result. I have put the correct dates and time that should be displayed in RED colour.

    Regards

    Vba1234
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. adding aircraft flight time hours and minutes
    By silence1982 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-13-2018, 01:04 AM
  2. [SOLVED] Parking Schedule
    By warmanj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 07-28-2016, 04:42 PM
  3. FUN PROBLEM. Calculate the average percent of space available on a sidewalk parking spot.
    By clevergarrett in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2016, 09:35 PM
  4. Car Parking Schedule...
    By it02s28 in forum Excel General
    Replies: 1
    Last Post: 06-12-2015, 08:53 PM
  5. average flying aircraft monthly
    By guitarist00 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-10-2014, 08:48 AM
  6. Excel 2007 : date,aircraft,time previous 6 months
    By fl510 in forum Excel General
    Replies: 2
    Last Post: 02-04-2011, 11:32 AM
  7. Determining Aircraft arrival times
    By gregor49 in forum Excel General
    Replies: 1
    Last Post: 07-27-2006, 01:30 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1