How to Use SUMIFS with Start and End Date Criteria in WPS Spreadsheet
Question details
The user needs to calculate product totals for a specific date, ensuring the selected date falls within a defined start and end date range.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Calculating sum totals based on overlapping date ranges and product categories using the SUMIFS formula.
- Observed behavior
- Requires a formula that conditionally sums values when a target date is greater than or equal to a start date, and less than or equal to an end date.
Ensure your date columns are formatted as 'Date' rather than 'Text' so the SUMIFS function can correctly evaluate the greater than or less than logical operators.
Use SUMIFS with Logical Operators and Cell References
Apply the SUMIFS function combining product criteria and logical operators (<=, >=) to evaluate the date range.
The SUMIFS function can check multiple conditions at once. By using the ampersand (&) to concatenate logical operators like '<=' and '>=' with your target date cell, you can easily filter records that fall within your active date range.
Assume Sheet1 contains your raw data: Column A (Product), Column B (Amount), Column C (Start Date), and Column D (End Date). In Sheet2, set up your summary table with Products in Column A and Target Dates across Row 1 (e.g., cell B1).
Select cell B2 in Sheet2 and input the following formula: =SUMIFS(Sheet1!$B$2:$B$11, Sheet1!$A$2:$A$11, $A2, Sheet1!$C$2:$C$11, "<="&B$1, Sheet1!$D$2:$D$11, ">="&B$1).
Press Enter to calculate the result for the first cell. Then, drag the fill handle (the small square at the bottom right of the cell) down and to the right to apply the formula across your entire summary table.

Calculate Complex Data Ranges Easily with WPS Spreadsheet
WPS Spreadsheet provides robust support for advanced statistical and mathematical functions, including SUMIFS. You can effortlessly manage large datasets, apply complex logical criteria, and analyze date ranges with high performance.
- 1. Download and Install: Get WPS Office for free from the official website and install it on your computer or mobile device.
- 2. Open Your Data: Launch WPS Spreadsheet and open your existing workbook containing the date ranges you want to analyze.
- 3. Insert the Function: Navigate to the Formulas tab, click 'Insert Function', and search for SUMIFS to use the visual formula builder.

Frequently Asked Questions
Why is my SUMIFS formula returning 0 for date criteria?
This usually happens if the dates in your dataset are stored as text instead of actual date values. Select your date columns, go to the Home tab, and change the Number Format to 'Short Date'. Also, ensure your logical operators are enclosed in quotes, like "<="&B1.
Can I hardcode a specific date into the SUMIFS formula instead of using a cell reference?
Yes. You can type the date directly into the formula by enclosing it in quotes along with the operator, for example: ">="&"2023-01-01" or ">=2023-01-01". However, using cell references is highly recommended for easier updates.
What is the difference between SUMIF and SUMIFS?
SUMIF is used when you only have one condition to check, whereas SUMIFS allows you to apply multiple criteria (like a start date, an end date, and a product name) across different ranges simultaneously.
How do I include blank end dates in my SUMIFS date range calculation?
If an end date might be blank (implying the item is still active), you can handle this by replacing blank cells with a far-future date like '2099-12-31' in your raw data so the "<=" criteria continues to work naturally.




