How to Count Excel Records by Date Range and Status Using COUNTIFS
Question details
The user needs a method to count the number of incidents or records created within a specific date range (such as a month) that also match a specific progress status.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Tracking project tasks, support tickets, or incidents by identifying how many fall within a certain timeframe and currently have a specific resolution status.
- Observed behavior
- Requires a formula capable of simultaneously evaluating multiple criteria, specifically start dates, end dates, and text-based status strings.
Ensure your dates are formatted as actual date values in your spreadsheet, rather than plain text, and clearly identify the cells containing your target start and end dates before writing the formula.
Use COUNTIFS with Specific Start and End Dates
Apply the COUNTIFS function using references to your start date, end date, and the specific status criteria to get an exact count.
The COUNTIFS function evaluates multiple conditions across different ranges. When working with dates, you need to combine comparison operators (like >= and <=) with your cell references using the ampersand (&) symbol.
Click on an empty cell where you want the final calculated count to appear.
Enter your target start date in cell A2 and your end date in cell B2.
Type the formula: =COUNTIFS('Issues Register'!C3:C1000, ">="&A2, 'Issues Register'!C3:C1000, "<="&B2, 'Issues Register'!M3:M1000, "04-Item Closed")
Press Enter. The cell will now display the total number of records that fall within the specified date range and match the "Item Closed" status.

Use COUNTIFS with First Day of Next Month
If your end date reference is the first day of the following month, adjust your comparison operator to be strictly less than (<).
Easily Manage Complex Data Formulas with WPS Spreadsheet
WPS Spreadsheet provides a powerful, free platform that supports all advanced functions like COUNTIFS. With its intuitive interface and built-in function helpers, analyzing multi-condition data, tracking incidents, and setting custom date ranges has never been easier.
- 1. Open your dataset: Launch WPS Spreadsheet and open the file containing your incidents or records.
- 2. Access the Function menu: Click on 'Formulas' in the top ribbon and select 'Insert Function'.
- 3. Search and select COUNTIFS: Type 'COUNTIFS' into the search bar, select it, and follow the intuitive dialog box to easily input your specific date ranges and status criteria.
- 4. Execute the calculation: Click 'OK' to instantly calculate and display your multi-condition record count.

Frequently Asked Questions
Why is my COUNTIFS formula returning a 0 even though there are matching records?
This typically occurs if the dates in your criteria range are formatted as text instead of actual date values, or if there are hidden trailing spaces in your status text. Ensure the dates are properly formatted as 'Date' and consider using the TRIM function to clean up text strings if necessary.
Do I have to use quotation marks around the comparison operators in COUNTIFS?
Yes. When using comparison operators like '>=' or '<=' alongside a cell reference in COUNTIFS, you must enclose the operator in quotation marks and use an ampersand (&) to join it to the cell reference (e.g., ">="&A2).
Can I use COUNTIFS to check for multiple statuses at the same time?
A single COUNTIFS function relies on 'AND' logic, meaning all conditions must be met simultaneously. To count records that match one status OR another status within the same date range, you should add two COUNTIFS formulas together, like so: =COUNTIFS(...) + COUNTIFS(...).
How do I handle blank cells when counting records by status?
If you want to count records where the status column is completely empty within your designated date range, you can use "" (two double quotes without a space) as the criteria for the status range in your COUNTIFS formula.




