How to Calculate Overlapping Uptime and Downtime in WPS Office Excel
Question details
Calculate uptime, downtime, preparation, and no-data periods from overlapping date/time intervals without double-counting overlaps.

- 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 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.
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.
Open WPS Office Excel, select the Category, Start Time, and Finish Time columns, and press Ctrl+T to convert the range into a table.
Click the Data tab, choose From Table/Range to open the Power Query Editor, and sort the table by Category and Start Time.
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.
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 Excel Formulas for Quick Uptime and Downtime Checks on Small Datasets
Use this formula approach for small datasets or quick checks when you do not want to build a Power Query workflow.
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. 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. 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. Load to Power Query: Click Data > From Table/Range and sort the table by Category and Start Time in the Power Query Editor.
- 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. 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.

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.




