Dates & time
Merge date ranges
Combine overlapping inclusive date ranges without double-counting covered days.
A clear answer. Here’s how.
Sorts up to 10,000 inclusive date ranges and merges overlaps. Optionally merges ranges ending immediately before the next range starts. Reports merged boundaries, each inclusive day count and total distinct coverage. Requires exact Start,End headings and valid ordered dates. Your input order is not retained.
See a worked example
Worked example
A fixed demonstration, separate from the values you enter above.
- CSV: Start,End
Start,End 2026-10-01,2026-10-05 2026-10-04,2026-10-08 2026-10-12,2026-10-14
- Adjacent ranges
- Combine consecutive dates too
Example result
| Start | End (included) | Covered days |
|---|---|---|
| 2026-10-01 | 2026-10-08 | 8 |
| 2026-10-12 | 2026-10-14 | 3 |
3 input ranges → 2 merged ranges.