How to Use the COUNTIF Function in WPS on Windows

Last updated:July 17, 2026

This how-to guide includes 4 operation topics, all available without membership, so you can jump from the index to the exact COUNTIF task you need.

How-to Index

How-to Guide

1. Enter the COUNTIF function

Entry point: Formulas tab → formula bar

  1. Open AirSheet 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. Check whether the function name and syntax prompt appear.

Success Criteria

  • UI state: The cell enters formula input mode and shows COUNTIF-related prompts.
  • Next actions: You can continue entering the range and criteria arguments.

Tips While Using

  • Common mistakes: If you do not start with =, the content may be treated as plain text.
  • Environment limits: The formula must be entered in a spreadsheet cell.

2. Fill in arguments with syntax prompts

Entry point: formula bar

  1. After COUNTIF(, enter the range you want to count.
  2. Use a comma to separate the arguments.
  3. Enter the counting condition, such as text, a number, or an expression.
  4. Type the closing parenthesis and press Enter.

Success Criteria

  • UI state: The cell displays the calculated result.
  • Next actions: You can copy the formula or continue editing the arguments.

Tips While Using

  • Common mistakes: Unmatched parentheses or missing separators between arguments can cause formula errors.
  • Environment limits: Text criteria usually need to follow formula syntax correctly.

3. Use cross-worksheet references and nested calculations

Entry point: formula bar

  1. In the range argument of COUNTIF, select data from the current worksheet or another worksheet.
  2. Enter a cross-worksheet reference as needed.
  3. If you need more complex statistics, combine COUNTIF with other formulas.
  4. Press Enter to confirm the result.

Success Criteria

  • UI state: The formula shows the reference relationship and returns a result.
  • Next actions: You can adjust the referenced range or combine other functions.

Tips While Using

  • Common mistakes: Selecting the wrong reference range can produce unexpected results.
  • Environment limits: When you build nested calculations, keep the formula structure complete.

4. Check automatic result updates

Entry point: the completed COUNTIF result cell

  1. Change the original data inside the counted range.
  2. Watch the COUNTIF result cell for changes.
  3. If the result does not change right away, confirm that the formula references the correct target range.
  4. If needed, trigger recalculation manually and check the result again.

Success Criteria

  • UI state: When the data changes, the result updates accordingly.
  • Next actions: You can continue using the result in reports or copy it to other cells.

Tips While Using

  • Common mistakes: If the counted range does not include newly added data, the result will not include it.
  • Environment limits: Manual calculation settings can affect immediate updates.