How to Create an Excel Time Series from Date Ranges by Region
Question details
The user needs to calculate the number of active requests per day for a specific region based on start and end dates, and plot this data as a time series.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Tracking active requests over time by specific regions using overlapping start and end dates.
- Observed behavior
- A dynamic list of dates needs to be generated and paired with the count of active requests on those dates to form a line chart or time series.
Ensure your start dates and end dates are formatted as valid Excel dates, not text. It is also helpful to verify that all end dates are greater than or equal to their corresponding start dates.
Use COUNTIFS and Dynamic Date Formulas to Generate a Time Series
This method dynamically lists all dates between the earliest start and latest end date, then counts active requests for a chosen region on each date.
This approach relies on generating a sequential list of dates based on the minimum start date and maximum end date in your dataset. It then uses the COUNTIFS function to check how many requests overlap with each date for a specified region.
In a blank cell, such as G1, type the exact name of the specific region you want to analyze.
In cell G2, enter the formula =IF(MIN(D:D)+ROW(A1)-1<=MAX(E:E),MIN(D:D)+ROW(A1)-1,""). This finds the earliest date in column D and increments it by one day per row until it reaches the latest date in column E.
In cell H2, enter the formula =IF(G2="","",COUNTIFS(D:D,"<="&G2,E:E,">="&G2,A:A,$G$1)). This counts requests where the start date is before or on the target date, the end date is after or on the target date, and the region matches G1.
Select cells G2 and H2, and drag the fill handle downward until the date column shows blank cells, indicating the maximum end date has been reached.
Select the newly generated data in columns G and H, go to the 'Insert' tab on the ribbon, and choose a Line Chart or Scatter Chart to visualize the active requests over time.

Use Power Query to Expand Dates for Advanced Time Series Analysis
If you have a large dataset or access to Excel 365, Power Query can unpivot date ranges into daily rows, which can then be easily summarized with a PivotChart.
Create Time Series and Advanced Charts Effortlessly in WPS Spreadsheet
WPS Spreadsheet fully supports advanced array formulas, COUNTIFS, and pivot tables to help you build complex time series analyses. With an intuitive interface, you can easily track request durations and visualize them with professional charts.
- 1. Open your dataset in WPS Spreadsheet: Launch WPS Spreadsheet and open your document containing the region and date ranges.
- 2. Apply dynamic formulas: Use the MIN/MAX formula combination in a new column to generate your daily timeline.
- 3. Calculate region overlaps: Use the COUNTIFS function to count overlapping date ranges matching your target region.
- 4. Insert a line chart: Highlight your generated timeline and counts, navigate to the Insert tab, and select a Line Chart to instantly visualize the time series data.

Frequently Asked Questions
Why is my COUNTIFS formula returning zero or blank?
This usually happens if your dates are formatted as text instead of numerical dates. Select your date columns, go to the Data tab, and use 'Text to Columns' to convert them to proper date formats. Also, ensure the region name in G1 exactly matches the spelling in your dataset.
Can I plot multiple regions on the same time series chart?
Yes. Instead of entering just one region in G1, enter your second region in I1. In I2, use the same COUNTIFS formula but reference I$1 for the region criteria. Fill the formula down, and include this new column when inserting your Line Chart.
How do I exclude weekends from the time series date sequence?
To exclude weekends, you can wrap the date generation formula in an IF(WEEKDAY()) logic check to output blank if the date lands on a Saturday or Sunday, or use the WORKDAY function to strictly generate a sequence of business days.




