Function Problems

Fix COUNTIFS Criteria and Create a Status PivotTable in Excel

Adam DavisAdam Davis Dec 2, 2026 869 views

Question details

Use matching COUNTIFS range and criterion pairs to count items by status, then summarize the data in a PivotTable.

Fix COUNTIFS Criteria and Create a Status PivotTable in Excel
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.
Before you start

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.

Solution 1Recommended

Correct the COUNTIFS Range and Criterion Pairs

Use this formula to count rows where an item and its status both match the specified criteria.

1
Select a result cell

In Excel, click an empty cell where you want the count to appear.

2
Enter the formula

Type =COUNTIFS('EMEA Launch'!$D$2:$D$5000,"Czech dub",'EMEA Launch'!$F$2:$F$5000,"downloaded") and press Enter.

3
Adjust the criteria

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.

Correct the COUNTIFS Range and Criterion Pairs
Include all data rows: Rows outside 2 through 5000 are not counted. Extend both ranges to the same final row if your data goes beyond row 5000.
Work with spreadsheet data in WPS

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. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 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. 3. Create the PivotTable: Select the source data with its headers, choose Insert > PivotTable, and confirm the source range and destination.
  4. 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.
Count rows that match both an item and a statusSummarize item and status counts in a PivotTableOpen and save Microsoft Excel XLSX filesUse familiar spreadsheet menus and formulas
microsoft office alternative - wps office

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.