Function Problems

Why SUMIFS Uses Quotation Marks and Ampersands for Date Criteria in Excel

Camila MilosovichCamila Milosovich Oct 8, 2026 870 views

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.

Why SUMIFS Uses Quotation Marks and Ampersands for Date Criteria in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the result cell

Click on the empty cell where you want the final sum result to be displayed.

2
Begin the SUMIFS formula

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.

3
Add the operator in quotes

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'.

4
Add the ampersand

Immediately after the closing quotation mark, type an ampersand (`&`) to act as the joining link.

5
Append the date function or cell reference

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.

Applying the Correct Syntax for SUMIFS Date Criteria
Hardcoded Dates: If you prefer to hardcode a specific date string rather than using a cell reference or DATE function, you can enclose the entire expression in quotes (e.g., ">4/23/2023"). However, using the DATE function or a cell reference is highly recommended to prevent errors caused by different regional date formats.

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. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your data.
  2. 2. Access the function library: Select an empty cell and click the 'Insert Function' (fx) button located next to the formula bar.
  3. 3. Select SUMIFS: Search for 'SUMIFS' in the function dialog and click OK to open the function arguments window.
  4. 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.
100% compatibility with Microsoft Excel formulas and date functionsFamiliar user interface with zero learning curve requiredAdvanced data analysis and formula calculation tools built-inLightweight software that runs smoothly on Windows, Mac, and Linux
microsoft office alternative - wps office

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.