Why SUMIFS Uses Quotation Marks and Ampersands for Date Criteria in Excel
Question details
Understand the syntax rules for using comparison operators and dates as criteria in SUMIFS formulas, specifically why quotation marks and ampersands are necessary.

- Product
- Microsoft Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Constructing a SUMIFS formula to sum specific values based on a dynamic date range or condition.
- Observed behavior
- Comparison operators like greater than (>) must be enclosed in quotation marks and concatenated with a date function or cell reference using an ampersand (&) for the formula to calculate properly.
Ensure your date data is formatted as actual date values in your spreadsheet rather than text strings, as SUMIFS relies on numeric date values to perform accurate comparisons.
Applying the Correct Syntax for SUMIFS Date Criteria
Use double quotation marks to define the logical operator and an ampersand to join it with a dynamic cell reference or date function.
In spreadsheet applications like Excel and WPS Spreadsheet, functions in the 'IFS' family (SUMIFS, COUNTIFS, AVERAGEIFS) evaluate criteria expressions as text strings. This design means that mathematical comparison operators such as `>`, `<`, `>=`, and `<=` must be wrapped in double quotation marks. To combine these text-based operators with a dynamic date function (like DATE) or a cell reference containing a date, you must use the ampersand (`&`) as a concatenation operator to join the two parts together.
Click on the empty cell where you want the final sum result to be displayed.
Type `=SUMIFS(` and select the range of cells you want to sum, followed by a comma, and then select the range containing the dates you want to evaluate.
Type a comma to start your criteria argument, then enter your comparison operator enclosed in double quotation marks. For example, type `">"` to signify 'greater than'.
Immediately after the closing quotation mark, type an ampersand (`&`) to act as the joining link.
Type the date reference, such as `DATE(2023,4,23)` or a cell like `A1`. Your final criteria argument should look like `">"&DATE(2023,4,23)` or `">"&A1`. Close the parenthesis and press Enter.

Easily Calculate Data with SUMIFS in WPS Spreadsheet
WPS Spreadsheet fully supports advanced functions like SUMIFS, COUNTIFS, and complex criteria syntax. You can easily manage financial reports, calculate dynamic date ranges, and analyze data efficiently for free.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your data.
- 2. Access the function library: Select an empty cell and click the 'Insert Function' (fx) button located next to the formula bar.
- 3. Select SUMIFS: Search for 'SUMIFS' in the function dialog and click OK to open the function arguments window.
- 4. Input the exact criteria: Follow the intuitive dialog box to select your Sum_range and Criteria_range, then input your criteria using the quotes and ampersand syntax (e.g., ">"&A1) and click OK.

Frequently Asked Questions
Why can't I just put the cell reference inside the quotation marks?
If you place a cell reference inside quotation marks (e.g., ">A1"), the spreadsheet software will treat 'A1' as literal text rather than evaluating the actual date value stored in that cell. The ampersand is required to correctly join the text operator with the evaluated value of the cell.
Does this quotation mark and ampersand rule apply to COUNTIFS and AVERAGEIFS?
Yes, the exact same syntax rules apply. Any conditional function in the 'IFS' family (including COUNTIF, COUNTIFS, AVERAGEIF, and AVERAGEIFS) requires comparison operators to be enclosed in quotation marks and concatenated with cell references or nested functions using an ampersand.
What happens if I omit the quotation marks around the comparison operator?
If you omit the quotation marks around operators like > or <, the spreadsheet program will return a formula parse error or a #NAME? error. This happens because the software does not recognize the standalone operator as a valid part of the formula structure without the quotes.




