Power Query Problems

How to Calculate Overlapping Uptime and Downtime in WPS Office Excel

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 869 views

Question details

Calculate uptime, downtime, preparation, and no-data periods from overlapping date/time intervals without double-counting overlaps.

How to Calculate Overlapping Uptime and Downtime in WPS Office Excel
Product
WPS Office Excel / Power Query
Device & OS
not provided
Scenario
The user has equipment or job logs arranged into Category, Start Time, and Finish Time columns and needs to merge overlapping records before summarizing by day, week, or month.
Observed behavior
Overlapping intervals double-count or misclassify time when multiple categories overlap, so only one non-overlapping category interval should be counted at a time.
Before you start

Before building the query, confirm that all Start Time and Finish Time cells are recognized as valid date/time values in WPS Office Excel, and arrange the source data into separate Category, Start Time, and Finish Time columns.

Solution 1Recommended

Use Power Query to Merge Overlapping Intervals and Prepare Non-Overlapping Records

Use this method when you need to clean and correct overlapping records before summarizing uptime, downtime, preparation, and no-data periods in a moderate-sized dataset.

Power Query is suitable for preparing and correcting overlapping interval records. After the intervals are split or merged into non-overlapping blocks, a PivotTable can summarize the results by day, week, or month.

1
Format the source data as an Excel table

Open WPS Office Excel, select the Category, Start Time, and Finish Time columns, and press Ctrl+T to convert the range into a table.

2
Load the table into Power Query

Click the Data tab, choose From Table/Range to open the Power Query Editor, and sort the table by Category and Start Time.

3
Merge overlapping intervals

Add a custom column or use Group By logic to compare each Finish Time with the next Start Time; expand intervals when they overlap and keep only one category at a time.

4
Close, load, and summarize with a PivotTable

Click Close & Load, then insert a PivotTable and group the date/time field by day, week, or month to summarize uptime, downtime, preparation, and no-data.

Use Power Query to Merge Overlapping Intervals and Prepare Non-Overlapping Records
Easier auditing: Add minute duration columns such as (Finish - Start)*1440 so PivotTable totals are easier to audit.
WPS Office Excel

Calculate Overlapping Uptime and Downtime Intervals in WPS Office Excel

WPS Office Excel can load your time-interval table into Power Query to merge overlapping records, then use a PivotTable to summarize uptime, downtime, preparation, and no-data periods by day, week, or month.

  1. 1. Download and open WPS Office: Install WPS Office, open WPS Office Excel, and load the workbook containing Category, Start Time, and Finish Time columns.
  2. 2. Prepare the data table: Select the data range, press Ctrl+T to create a table, and confirm every time column is formatted as date/time.
  3. 3. Load to Power Query: Click Data > From Table/Range and sort the table by Category and Start Time in the Power Query Editor.
  4. 4. Merge overlapping intervals: Use custom columns or grouping logic to merge intervals that touch or overlap, keeping one category per non-overlapping block.
  5. 5. Load and summarize: Close & Load the result, insert a PivotTable, and group by day, week, or month to show uptime, downtime, preparation, and no-data totals.
Merges overlapping date/time intervals so each period is counted only once.Uses familiar Excel formulas and PivotTable grouping for daily, weekly, or monthly uptime reports.Opens and saves Microsoft Excel .xlsx workbooks without losing formulas or table structure.Free Office suite with built-in data preparation features for interval analysis.
microsoft office alternative - wps office

Frequently Asked Questions

Why do overlapping uptime and downtime rows double-count in a simple SUM?

Because each row contributes its full duration even when another category overlaps. Interval merging or helper logic must split or merge intervals before summing so only one category is counted at a time.

Can Power Query split overlapping intervals automatically?

Power Query does not have a single built-in overlap merge button, but you can sort by Start Time and create custom columns or group logic that adjusts Finish times when the next interval overlaps.

How do I summarize the cleaned intervals by day, week, or month?

Close & Load the cleaned intervals into WPS Office Excel, insert a PivotTable, add the date field to Rows, and group it by Days, Months, or Years as needed.

What should I do if my Start Time and Finish Time values are stored as text?

Convert the text values before merging. Use Data > Text to Columns with a date/time destination format, or wrap the values in DATEVALUE and TIMEVALUE formulas to create valid date/time values.

Is VBA better than Power Query for very large datasets?

For millions of rows or multi-year logs, VBA or SQL can be more efficient. Power Query works well for preparing and correcting moderate datasets before summarizing with a PivotTable.