Count overlapping times on a moving 30 min window


New Member
May 29, 2016
I searched the forums for a similar question and did not see one that helped with this question.

I need to know on average how many airplanes are on the ground at the same time during the day.

To get an accurate number it needs to look 30 minutes ahead of and behind the departure time and then count how many other departure times fall in that window. Here is a sample set for two different days.

DayEquipDept TimeTotal DepartureDept HourStaffing

<colgroup span="3" width="137"></colgroup> <colgroup width="154"></colgroup> <colgroup span="2" width="137"></colgroup> <tbody>

<colgroup span="3" width="137"></colgroup> <colgroup width="154"></colgroup> <colgroup span="2" width="137"></colgroup> <tbody>

<colgroup span="3" width="137"></colgroup> <colgroup width="154"></colgroup> <colgroup span="2" width="137"></colgroup> <tbody>

So for the first item I should get a value of 2 because nothing exists before 6:43 and there is only one other departure by 7:13 (30 min after 6:43). Now for example sake look at the fourth line. This should return a value of 4 because there is one departure within :30 min prior of 8:05 and one within :30 after 8:05 (there are two departures at 8:05).

So when then first aircraft is on the ground there is a total of two but when the 4th is on the ground there is a total of 3.

I then would need it to reset for the next calendar day. I will then take the average for every day for the entire month to say "at any given time there are xx aircraft on the ground at the same time"

The data set i have is a few thousand large.


Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...