How to Count or Sum Values Within Specific Ranges in Excel
Question details
The user wants to count the number of occurrences or calculate the total sum of completed calls that fall within specific numerical boundaries (like 0-10 or 11-30) for a chosen market area.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Analyzing business or call center data to extract totals grouped by categorized regions and segregated into tiered numerical ranges.
- Observed behavior
- Structuring the COUNTIFS and SUMIFS functions to handle multiple criteria simultaneously, specifically combining an exact match category with greater-than and less-than threshold logic.
Verify that your dataset is formatted as an official Excel Table (e.g., named 'Table1') or that you are using absolute cell references to prevent your data ranges from shifting.
Count Values Within a Range Using COUNTIFS
Use the COUNTIFS function when you need to find the total number of rows (or occurrences) that meet multiple conditions, such as falling between two numbers.
The COUNTIFS function applies criteria to cells across multiple ranges and counts the number of times all criteria are met. To check if a value falls within a range like 0 to 10, you must set two separate criteria for the same data column: one for the lower limit (>=0) and one for the upper limit (<=10).
Click on the cell (for example, G4) where you want the calculated count to appear.
Type the formula: =COUNTIFS(Table1[Market Area], F4, Table1[Completed Calls], ">="&0, Table1[Completed Calls], "<="&10). In this formula, F4 is the cell containing the specific Market Area you want to filter by.
Press the Enter key. The cell will now display the total count of completed calls that are between 0 and 10 for the selected market.
To calculate the next tier (e.g., 11 to 30), copy the formula to a new cell and modify the limits: =COUNTIFS(Table1[Market Area], F4, Table1[Completed Calls], ">="&11, Table1[Completed Calls], "<="&30).

Sum Values Within a Range Using SUMIFS
Use the SUMIFS function when you need to calculate the actual total of the numerical values in a column rather than just counting the rows.
Easily Calculate Complex Data Ranges with WPS Spreadsheet
WPS Spreadsheet natively supports advanced statistical formulas like SUMIFS and COUNTIFS, empowering you to analyze categorized data, count within custom limits, and manage complex tables seamlessly.
- 1. Open your data in WPS Spreadsheet: Launch WPS Office and open your workbook containing the data tables.
- 2. Locate the Formulas tab: Navigate to the 'Formulas' tab on the top ribbon and select 'Insert Function'.
- 3. Search for the function: Search for COUNTIFS or SUMIFS, and let the dialog box guide you through entering the sum range and criteria parameters.
- 4. Apply logical operators: Input your boundaries (like ">=0" and "<=10") into the criteria fields and click OK to generate your data analysis.

Frequently Asked Questions
Why does my COUNTIFS or SUMIFS formula return a 0 instead of the correct value?
This commonly happens when logical operators are incorrectly formatted. Ensure that your greater-than or less-than symbols are enclosed in quotation marks (e.g., ">=10") or concatenated with an ampersand (e.g., ">="&10). Also check that your data doesn't contain hidden text formatting rather than actual numbers.
Can I use dynamic cell references instead of typing the numbers directly into the formula?
Yes. If your lower limit is stored in cell J1, you can link the formula to it by typing ">="&J1 in the criteria argument. This allows you to change the boundary numbers in the sheet without having to rewrite the formula.
What is the difference between SUMIF and SUMIFS?
The SUMIF function is designed to check only a single condition before adding values together. The SUMIFS function allows you to evaluate multiple conditions across different ranges at the same time, which is strictly required when testing if a number falls between a lower and upper limit.




