Formula Errors

How to Fix SUMIFS Formulas with Text Criteria and Date Ranges in Spreadsheets

Huda QurayshiHuda Qurayshi Nov 10, 2026 869 views

Question details

The user needs to correct a SUMIFS formula to calculate total transaction amounts for a specific text category within a designated start and end date.

How to Fix SUMIFS with a Text Criterion and Monthly Date Range
Product
Spreadsheet
Device & OS
not provided
Scenario
Summarizing financial transaction data across a specific monthly date range while filtering for a specific text category.
Observed behavior
The formula fails to calculate the sum, returns an error, or displays as raw text inside the cell instead of evaluating the result.
Before you start

Before modifying your formula, ensure that all dates in your transaction dataset are formatted as valid date values rather than text. Additionally, verify that the cell where you are typing the formula is formatted as 'General'.

Solution 1Recommended

Apply the Correct SUMIFS Syntax with Quotation Marks and Concatenation

Fix the formula by enclosing the text criteria in double quotes and correctly concatenating the logical operators with the date cell references.

When using the SUMIFS function, any hardcoded text conditions must be wrapped in double quotation marks (e.g., "Gifts"). When applying conditions involving cell references (such as start and end dates), comparison operators like >= and <= must also be enclosed in quotes and joined to the cell reference using the ampersand (&) symbol.

1
Select the target cell

Click on the cell where you want the calculated total amount to appear.

2
Enter the corrected formula

Type the following formula: =SUMIFS('Transactions'!E:E,'Transactions'!C:C,"Gifts",'Transactions'!A:A,">="&'1'!G2,'Transactions'!A:A,"<="&'1'!H2) and press Enter.

3
Fix formula displaying as text

If the cell displays the formula text instead of the calculated number, right-click the cell, select 'Format Cells', and change the category to 'General'. Then, double-click the cell (or press F2) and press Enter again to force the calculation.

Apply the Correct SUMIFS Syntax with Quotation Marks and Concatenation
Verify Date Formatting: Ensure your transaction dates are recognized as real serial dates by the spreadsheet. If they are left-aligned by default, they might be stored as text, which will prevent the SUMIFS date range logic from working.
Efficient Data Management

Calculate Complex Data Easily with WPS Spreadsheet

WPS Spreadsheet provides robust support for advanced functions like SUMIFS, making it incredibly easy to summarize financial data, analyze date ranges, and build automated reports.

  1. 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your transaction data.
  2. 2. Use the Function Wizard: Click 'Formulas' > 'Insert Function' in the top ribbon and search for SUMIFS to open the step-by-step criteria dialog.
  3. 3. Input the arguments: Fill in the Sum_range, Criteria_range, and Criteria fields. The wizard automatically handles most of the quotation mark syntax for you, reducing manual typing errors.
100% compatible with Microsoft Excel formulas and .xlsx filesBuilt-in function syntax tooltips to prevent SUMIFS structural errorsFunction Wizard simplifies complex criteria and operator concatenationFree and lightweight alternative for seamless data analysis
microsoft office alternative - wps office

Frequently Asked Questions

Why is my SUMIFS formula returning 0?

A result of 0 usually means that no rows match all of your criteria simultaneously. This happens if the text criterion has hidden trailing spaces in the source data, or if the date range logic is reversed (e.g., swapping the start and end date cells in the formula).

Why does my formula display as raw text instead of calculating?

This occurs if the cell is formatted as 'Text' before you enter the formula. To fix it, select the cell, change the number format to 'General' from the Home tab, double-click the cell to enter edit mode, and press Enter.

How do I use a cell reference instead of typing the text 'Gifts'?

You can replace the hardcoded "Gifts" text with a standard cell reference. For example, if the word 'Gifts' is written in cell B2, simply put B2 in the criteria argument without any quotation marks.

Do I always need to use the ampersand (&) for date conditions?

Yes, if you are referencing another cell that contains the date. The syntax ">="&G2 tells the spreadsheet to treat the comparison operators as text and combine them with the date value stored in cell G2 to form a complete mathematical condition.