How to Use the COUNTIF Function in WPS on Windows

Last updated:July 20, 2026

This how-to guide includes 4 topics for using COUNTIF, covering function entry, argument input, cross-worksheet references, and nested formulas; 4 items are available without membership and 0 are membership-related.

How-to Index

How-to Guide

1. Enter the COUNTIF function

Entry point: Formulas tab → formula bar

  1. Open WPS Sheets and select the cell where you want the result to appear.
  2. Type = in the formula bar or directly in the cell.
  3. Continue by typing COUNTIF(.
  4. Review the syntax hint that appears automatically and confirm the function name and argument structure.

Success Criteria

  • UI state: The formula bar shows =COUNTIF(.
  • Next actions: You can continue entering the range and criterion arguments.

Tips While Using

  • Common mistakes: If you do not type = first, the content may be treated as plain text.

2. Fill in COUNTIF arguments and complete the count

Entry point: formula bar

  1. After COUNTIF(, enter the cell range you want to count.
  2. Type a comma, then enter the counting criterion.
  3. Check that the parentheses are paired correctly.
  4. Press Enter to confirm the formula.

Success Criteria

  • UI state: The target cell displays the counting result.
  • Next actions: If you change the range or criterion, the result recalculates.

Tips While Using

  • Common mistakes: Missing separators between arguments or entering the criterion in the wrong format.

3. Reference another worksheet in COUNTIF

Entry point: formula bar

  1. Select the result cell and type =COUNTIF(.
  2. Switch to the worksheet that contains the source data.
  3. Select the target range and return to formula entry.
  4. Add the criterion argument and press Enter to finish the calculation.

Success Criteria

  • UI state: The formula includes a range reference from another worksheet.
  • Next actions: When the source worksheet data changes, the result can update with it.

Tips While Using

  • Common mistakes: Selecting the wrong reference range can produce an incorrect result.

4. Combine COUNTIF with other functions

Entry point: formula bar

  1. Enter the combined formula in the target cell.
  2. Add COUNTIF as one counting part of the formula.
  3. Continue with other functions or operators as needed.
  4. Press Enter to view the final result.

Success Criteria

  • UI state: The cell returns the result of the combined calculation.
  • Next actions: You can keep editing the formula for more spreadsheet analysis.

Tips While Using

  • Common mistakes: With deeper nesting, mismatched parentheses become more likely.