How to Generate Monthly Dates and Costs Using Excel Dynamic Arrays
Question details
Create a dynamic monthly schedule that automatically generates dates and corresponding equal monthly costs based on a manually entered start date and duration.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Setting up a dynamic financial table or project schedule where the number of months can vary, requiring the dates and costs to spill automatically across rows or columns.
- Observed behavior
- Users need to use dynamic array formulas to spill dates vertically or horizontally and display the divided total cost aligned with the generated months.
Ensure you are using a spreadsheet application that supports modern dynamic array functions, specifically SEQUENCE and EDATE, as older versions may require manual formula dragging.
Use EDATE and SEQUENCE to Generate Dates and Costs
Combine the EDATE and SEQUENCE functions to automatically spill months and divide the total cost evenly across the specified duration.
The SEQUENCE function generates an array of numbers, while EDATE returns the serial number that represents the date a specified number of months before or after a start date. Combined, they create a powerful dynamic schedule.
Enter your Start Date in cell B1, your Duration (number of months) in cell B2, and your Total Cost in cell B3.
In the cell where you want the dates to start, enter the formula =EDATE(B1,SEQUENCE(B2,,0)). This will automatically spill the dates down the column for the number of months specified in B2.
Select the newly generated spilled cells, right-click, select 'Format Cells', and choose a 'Date' format to ensure they display as months rather than serial numbers.
To display the equal monthly cost next to each date, select the adjacent cell and enter the formula =SEQUENCE(B2,,B3/B2,0). This will divide the total cost by the number of months and spill the equal amounts down the column.

Create Dynamic Schedules Easily with WPS Spreadsheet
WPS Office offers full support for advanced dynamic array functions like SEQUENCE and EDATE, allowing you to build automated monthly schedules and financial tables with ease.
- 1. Open WPS Spreadsheet: Launch WPS Office and open a new or existing spreadsheet to start building your dynamic schedule.
- 2. Input Your Parameters: Enter your start date, project duration, and total cost in dedicated reference cells.
- 3. Apply Dynamic Array Formulas: Use the =EDATE() and SEQUENCE() functions exactly as you would in Excel to instantly spill your dates and calculate your monthly cost distribution.

Frequently Asked Questions
How do I assign custom percentages of the total cost to specific months instead of an equal split?
Instead of dividing the total cost equally, you can create an adjacent helper column or row with your specific percentages (e.g., 20% in month 1, 30% in month 2). You can then multiply your total cost cell (using an absolute reference, like $B$3) by the percentage array to distribute the custom amounts.
Why are my generated dates appearing as five-digit numbers?
Spreadsheet software stores dates as sequential serial numbers for calculation purposes. You simply need to select the spilled cells, right-click, choose 'Format Cells', and apply a 'Date' format to display them correctly.
Why is my SEQUENCE formula returning a #NAME? error?
The #NAME? error occurs if your spreadsheet version does not support dynamic array functions. Ensure you are using a modern version of your office suite, such as Microsoft 365, Excel 2021, or the latest version of WPS Office.




