How to Fix SUMIFS Formula for Fiscal Year-to-Date (YTD) Totals
Question details
The user needs to correct a prior-year SUMIFS formula so that it calculates totals matching the current year-to-date fiscal periods instead of summing the entire fiscal year.

- Product
- Spreadsheets
- Device & OS
- not provided
- Scenario
- Calculating fiscal year-to-date (YTD) totals to accurately compare prior year financial data to the current year.
- Observed behavior
- The current SUMIFS formula totals all fiscal periods for the prior year instead of limiting the sum to the specific matching year-to-date period range.
Ensure your raw data table includes dedicated columns for both the fiscal year (e.g., 'FY Year') and the fiscal period or month (e.g., 'FY Period') to allow for accurate criterion filtering.
Add a Fiscal Period Criterion to the SUMIFS Formula
Restrict the calculation to specific fiscal periods by adding an additional criteria range and logical condition to your existing SUMIFS function.
By default, a SUMIFS function checking only for the previous year will sum all data for that year. To get a Year-to-Date (YTD) total, you must append a rule that restricts the calculation to periods less than or equal to your current period.
Locate the column in your data that represents the fiscal period, such as RawData[FY Period].
Append the fiscal period range and your threshold to the formula. For example, to sum data up to period 3, use: =SUMIFS(RawData[Foot count], RawData[Property], "Accra Mall", RawData[FY Year], 2023, RawData[FY Period], "<=3").
Press Enter to calculate the exact year-to-date total for the specified property and year.

Use Dynamic Thresholds with Named Ranges
Make your formula automatically adjust to the current reporting period by linking the fiscal period criterion to a dynamic named range or cell reference.
Calculate Year-to-Date Totals Effortlessly in WPS Spreadsheet
WPS Spreadsheet provides a robust and user-friendly environment for managing complex financial data, including dynamic SUMIFS formulas. You can seamlessly calculate fiscal year-to-date totals with full support for advanced Excel functions and named ranges.
- 1. Open your data: Launch WPS Spreadsheet and open your financial data workbook.
- 2. Start the formula: Select the cell where you want the YTD total to appear and type =SUMIFS( to trigger the formula tooltip.
- 3. Input parameters: Follow the on-screen prompts to input your sum range, followed by your criteria ranges (like FY Year and FY Period) and their respective criteria.
- 4. Calculate: Press Enter to instantly calculate your precise year-to-date figures without manual filtering.

Frequently Asked Questions
Why is my SUMIFS formula returning zero?
This usually happens if the criteria do not exactly match the data in your ranges, or if numeric values (like fiscal periods or years) are formatted as text. Ensure data types are consistent across your raw data and criteria cells.
Can I use multiple criteria for the same column in a SUMIFS formula?
Yes, you can evaluate the same criteria range multiple times with different conditions. For example, to sum data between periods 4 and 6, include the range twice: RawData[FY Period], ">=4", RawData[FY Period], "<=6".
How do I reference another workbook in my SUMIFS formula?
You can reference external data by including the workbook name in square brackets before the sheet name (e.g., '[FinancialData.xlsx]Sheet1'!$A$1:$A$100). Note that the source workbook generally needs to remain open for SUMIFS to calculate correctly.




