How to Calculate Peak Storage Area from Entry and Exit Dates in WPS Spreadsheets
Question details
The user needs to calculate the maximum total storage area required during a project from each material's entry date, exit date, and required area, rather than only counting the number of materials.

- Product
- WPS Office Spreadsheets
- Device & OS
- not provided
- Scenario
- Project planners have a list of materials with entry dates, exit dates, and area requirements and need to find the largest combined area in use on any single day.
- Observed behavior
- The existing calculation approaches only count materials, but the user needs a date-by-date total of material areas to identify the peak storage area.
Arrange the data with entry dates in B2:B51, exit dates in C2:C51, and material areas in D2:D51. Make sure the dates are recognized as dates and there are no blank rows inside the ranges.
Calculate peak storage area with one dynamic array formula in WPS Spreadsheets
Use this method when your project data is in B2:D51 and you need the maximum total area of materials present on any date.
The formula builds a continuous date sequence from the earliest entry date to the latest exit date. It then checks which materials are active on each date, multiplies that status by each material's area, and returns the largest daily total.
Launch WPS Office Spreadsheets and open the workbook that contains the material schedule.
Confirm that entry dates are in B2:B51, exit dates are in C2:C51, and area requirements are in D2:D51.
Select an empty cell and enter =LET(DateIn,B2:B51,DateOut,C2:C51,Area,D2:D51,FirstDate,MIN(DateIn),LastDate,MAX(DateOut),Dates,SEQUENCE(LastDate-FirstDate+1,,FirstDate),DailyArea,MMULT(--((DateIn<=TRANSPOSE(Dates))*(DateOut>=TRANSPOSE(Dates))),Area),MAX(DailyArea)).
Press Enter to calculate the peak storage area. The result is the largest total area of materials present on any single date.

Calculate Peak Storage Area in WPS Office Spreadsheets
Use a single dynamic array formula in WPS Office Spreadsheets to evaluate the total storage area in use on every date and return the peak value.
- 1. Open WPS Office Spreadsheets: Start WPS Office on your computer and create a new blank workbook or open an existing Excel file.
- 2. Enter your material schedule: Place entry dates in column B, exit dates in column C, and area requirements in column D, starting at row 2.
- 3. Insert the calculation formula: Click an empty cell and paste the LET formula from the solution above, adjusting the ranges if your data ends before row 51.
- 4. Press Enter and review the result: Press Enter to calculate the peak storage area. Copy or format the result for your project report.

Frequently Asked Questions
What does the peak storage area formula actually calculate?
It calculates the total area of all materials whose entry date is on or before each day and whose exit date is on or after that day, then returns the largest daily total.
Can I make the formula treat materials as unavailable on their exit date?
Yes. Replace DateOut>=TRANSPOSE(Dates) with DateOut>TRANSPOSE(Dates) in the formula so a material is excluded from the area total on the exit date itself.
Will this formula work in WPS Office and Microsoft Excel?
The formula uses dynamic array functions such as LET and SEQUENCE. It works in WPS Office Spreadsheets and Microsoft Excel 365; older Excel versions may require a helper-column approach.
What should I change if my dates and areas are not in B2:D51?
Update the DateIn, DateOut, and Area range references in the formula to match your actual data columns and rows.
Can I also identify the date when the peak occurs?
The solution returns the peak area. To identify the peak date, you can extend the formula with MATCH and INDEX to find the date associated with the maximum daily area.




