Function Problems

How to Count Flights in Five-Minute Rolling Time Intervals in Spreadsheets

Nimra MalikNimra Malik Nov 10, 2026 868 views

Question details

The user needs to analyze flight departure and arrival data by counting occurrences within rolling five-minute intervals over a 24-hour schedule.

How to Count Flights in Five-Minute Rolling Time Intervals in Spreadsheets
Product
Spreadsheet
Device & OS
not provided
Scenario
Analyzing time-stamped flight schedules or general log data grouped by continuous 5-minute periods, including handling periods with zero flights.
Observed behavior
The goal is to accurately count flights for each defined interval, ensuring time formats match underlying spreadsheet values to prevent miscalculations.
Before you start

Ensure your flight departure and arrival times are formatted as standard time values, not just text strings masquerading as time, as functions calculate frequencies based on underlying numeric decimal values.

Solution 1Recommended

Calculate Interval Frequencies Using the COUNTIFS Function

COUNTIFS is the most reliable method to count records that fall between a specific start and end time, allowing for seamless rolling interval analysis.

This method creates a structured 24-hour bin schedule and checks the original flight data against the lower and upper bounds of each five-minute window. It inherently supports displaying '0' for periods with no departures.

1
Create a Time Schedule Column

In a new column, enter your starting time (e.g., 00:00) in the first cell. In the cell below it, add 5 minutes (e.g., 00:05). Select both cells and drag the fill handle down to generate a complete 24-hour schedule list.

2
Apply the COUNTIFS Formula

In the adjacent cell, enter a formula like =COUNTIFS(A:A, ">="&C2, A:A, "<"&C3). In this formula, A:A contains your raw flight times, C2 is the current interval's start time, and C3 represents the start of the next interval (acting as the upper limit).

3
Drag to Fill the Results

Press Enter, then copy the formula down alongside your interval column. The function will dynamically calculate the number of flights that occurred within every five-minute block.

Calculate Interval Frequencies Using the COUNTIFS Function
Formatting Tip: Verify your source data by temporarily formatting the time column as General. If the times turn into decimal numbers (like 0.5 for 12:00 PM), they are valid time values that COUNTIFS can process.
Efficient Spreadsheet Data Analysis

Analyze Rolling Time Intervals Seamlessly in WPS Spreadsheet

WPS Spreadsheet provides powerful built-in functions like COUNTIFS, FILTER, and PivotTables to handle complex time-series data analysis with ease.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open your flight schedule dataset.
  2. 2. Generate time intervals: Use the Fill handle feature to quickly generate your 5-minute interval time bins down a new column.
  3. 3. Apply formulas: Insert the COUNTIFS formula from the Formula tab to aggregate your data instantly.
100% compatible with Microsoft Excel formulas and time formattingAdvanced data processing capabilities for large flight datasetsFree, lightweight, and easy to use across all devices
microsoft office alternative - wps office

Frequently Asked Questions

Why does my COUNTIFS formula return 0 for all time intervals?

This usually happens when the source flight times are stored as text rather than actual time values. Select your data, use the 'Text to Columns' tool to convert them, or copy a blank cell containing '1', use Paste Special, and select 'Multiply' to force a numeric format.

How can I group the interval counts by specific airlines?

You can add an additional criteria range to your COUNTIFS formula. For example, use =COUNTIFS(TimeRange, ">="&StartTime, TimeRange, "<"&EndTime, AirlineRange, "AirlineName") to count flights only for a specified carrier within that 5-minute window.

Can I use PivotTables to group data into five-minute intervals?

Yes, you can insert a PivotTable, place the time field in the Rows area, right-click a time value, and select 'Group'. While standard grouping supports minutes and hours, achieving strict rolling 5-minute blocks usually requires creating a helper column first with formulas like =FLOOR(TimeCell, "0:05") to standardize the times before pivoting.