+ Reply to Thread
Results 1 to 4 of 4

Average and Mean Leadtime flight data

  1. #1
    Registered User
    Join Date
    08-17-2016
    Location
    Sweden
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    Average and Mean Leadtime flight data

    I need to calculate the average days before departure my travellers are booking. Also need the mean number of days before departure they book. Attached is sample data.
    How do I calculate this for Flight 1 and Flight 2?

    thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Average and Mean Leadtime flight data

    Average and Mean are effectively the same, so I'm guessing you want one of the averages to be weighted.

    A smaller sample, with the expected results manually calculated would provide us with a better chance of understanding what you need.

    See if this gets you on the right track.

    =SUMPRODUCT(A2:A102,B2:B102)/SUM(B2:B102)
    Last edited by jason.b75; 08-17-2016 at 08:48 AM.

  3. #3
    Registered User
    Join Date
    08-17-2016
    Location
    Sweden
    MS-Off Ver
    Professional Plus 2010
    Posts
    2

    Re: Average and Mean Leadtime flight data

    Hi

    the sumproduct worked fine. thank you.
    I also see that I asked for the wrong value with the second question.
    I meant the booking made in the middle (as many bookings made before as after). Median not mean

    how do I calculate the median?

    thanks for all help

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Average and Mean Leadtime flight data

    Try

    =LOOKUP(SUM($B$2:$B$102)/2,SUBTOTAL(9,OFFSET($B$2,0,0,ROW($B$2:$B$102)-ROW($B$2)+1,1)),$A$2:$A$102)

    This returns whole days rounded down, if you want decimal accuracy with this then it will get a bit more complicated.

+ 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. Flight Schedule
    By henry.t.chandler in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-28-2014, 10:18 PM
  2. calculate leadtime
    By nieuwwerk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 01:01 PM
  3. [SOLVED] Flight Log Fix - Multithread
    By ask4help in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-12-2012, 12:45 AM
  4. [SOLVED] Excel Formula to Calculate Leadtime minus Weekend
    By Nu2Java in forum Excel General
    Replies: 4
    Last Post: 05-29-2012, 09:48 PM
  5. Flight distances
    By Sibrulotte in forum Excel General
    Replies: 4
    Last Post: 01-16-2012, 05:43 PM
  6. Leadtime
    By luis87 in forum Excel General
    Replies: 9
    Last Post: 12-11-2009, 08:01 PM
  7. Replies: 2
    Last Post: 01-29-2007, 06:37 PM

Tags for this Thread

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