Fix COUNTIFS Criteria and Create a Status PivotTable in Excel
Question details
Use matching COUNTIFS range and criterion pairs to count items by status, then summarize the data in a PivotTable.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A worksheet contains items in one column and their download statuses in another, and the user wants counts for individual criteria and a status report.
- Observed behavior
- The user needs a COUNTIFS formula with correctly paired ranges and criteria and a PivotTable organized by item and status.
Check which columns contain the item and status, and make sure the data has a header row for the PivotTable. The example below assumes items are in column D and statuses are in column F on the EMEA Launch sheet.
Correct the COUNTIFS Range and Criterion Pairs
Use this formula to count rows where an item and its status both match the specified criteria.
In Excel, click an empty cell where you want the count to appear.
Type =COUNTIFS('EMEA Launch'!$D$2:$D$5000,"Czech dub",'EMEA Launch'!$F$2:$F$5000,"downloaded") and press Enter.
Edit the sheet name, column references, row limits, and text criteria in the formula bar to match your data. Keep each range immediately followed by its criterion and use ranges of the same size.

Create a PivotTable to Count Items by Status
Use a PivotTable to compare counts across all items and statuses without writing a separate formula for each combination.
Count Items by Status in WPS Spreadsheets
Use COUNTIFS to count matching item and status pairs, then create a PivotTable to summarize the same data in WPS Spreadsheets.
- 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
- 2. Enter the count formula: Click an empty cell and enter =COUNTIFS('EMEA Launch'!$D$2:$D$5000,"Czech dub",'EMEA Launch'!$F$2:$F$5000,"downloaded"), adjusting the references and criteria to match your data.
- 3. Create the PivotTable: Select the source data with its headers, choose Insert > PivotTable, and confirm the source range and destination.
- 4. Arrange the report: Drag the item field to Rows, the status field to Columns, and the status field to Values. Set the Values calculation to Count if needed.

Frequently Asked Questions
Why does COUNTIFS return an error for my criteria ranges?
Each criteria range must have the same dimensions. In the formula bar, check that the ranges cover matching rows, such as D2:D5000 and F2:F5000, and that each range is followed by its criterion.
Can I reference criteria in cells instead of typing the text?
Yes. For example, use =COUNTIFS('EMEA Launch'!$D$2:$D$5000,A2,'EMEA Launch'!$F$2:$F$5000,B2), where A2 contains the item and B2 contains the status.
Why are some rows missing from my status count?
Check that the rows fall within both COUNTIFS ranges and that the item and status text match your criteria. Extra spaces or different wording can prevent a match.
How do I update the PivotTable after adding data?
Right-click the PivotTable and select Refresh. If the added rows are outside its source range, use PivotTable Analyze > Change Data Source to include them, then refresh.




