How to Correct an Excel COUNTIFS Formula with Multiple Criteria
Question details
The user needs to correctly formulate a COUNTIFS function to count rows that satisfy three distinct criteria, including exact value matches and a numerical threshold.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Counting specific data rows in a spreadsheet based on multiple complex conditions, such as matching specific cell values and finding numbers greater than 1000.
- Observed behavior
- The goal is to achieve an accurate row count where the first column matches a specific cell value, the second column is greater than 1000, and the third column matches another cell value.
Verify that all your criteria ranges contain the exact same number of rows and columns, as mismatched ranges will always result in a #VALUE! error.
Use the Standard COUNTIFS Syntax with Proper Quotation Marks
Correctly structure your COUNTIFS function by pairing each range with its specific criterion and ensuring logical operators are properly formatted.
The COUNTIFS function applies criteria to cells across multiple ranges and counts the number of times all criteria are met. The key to preventing formula errors is to strictly follow the syntax: range1, criteria1, range2, criteria2.
Click on the cell where you want the final count result to be displayed.
Type =COUNTIFS( into the formula bar to initiate the function.
Select or type your first range followed by a comma, and then reference your first criterion cell (e.g., A28:A34, G28).
Input the second range, add a comma, and type your mathematical condition enclosed in double quotation marks (e.g., B28:B34, ">1000").
Input the third range and its matching criterion cell (e.g., C28:C34, H28).
Close the parentheses to complete the formula (e.g., =COUNTIFS(A28:A34,G28,B28:B34,">1000",C28:C34,H28)) and press Enter.

Calculate Multiple Criteria Seamlessly in WPS Spreadsheet
WPS Spreadsheet provides robust, free support for all advanced data analysis functions including COUNTIFS, allowing you to seamlessly process complex data sets without syntax errors.
- 1. Open your spreadsheet: Launch WPS Office and open your data file in WPS Spreadsheet.
- 2. Initiate the function: Click on your target cell and type =COUNTIFS( to start the formula.
- 3. Follow the syntax tooltip: Use the on-screen syntax tooltip to select your ranges and input criteria, remembering to use quotes for mathematical conditions like ">1000".
- 4. Get your result: Press Enter to instantly get your accurate multi-criteria row count.

Frequently Asked Questions
Why is my COUNTIFS formula returning a #VALUE! error?
This usually happens when the criteria ranges provided in the formula do not have the same dimensions. Ensure all ranges, such as A2:A10 and B2:B10, contain the exact same number of rows and columns.
Do I need quotation marks around cell references in COUNTIFS?
No, cell references like G28 should not be in quotation marks. Only text strings and logical operators combined with numbers (like ">1000") need to be enclosed in double quotes.
How do I use a cell reference with a greater-than symbol in COUNTIFS?
If your threshold number is stored in a cell (e.g., Z1) and you want to find values greater than that cell, enclose the greater-than symbol in quotes and use an ampersand to join the cell reference, like this: ">"&Z1.




