Formula Errors

Return a Result When Any Excel Cell Contains Specific Text in WPS Spreadsheets

Phi Hung VoPhi Hung Vo Nov 13, 2026 869 views

Question details

The user needs a formula that checks selected cells for the text Not Effective and returns Not Effective when at least one checked cell contains that status.

Return a Result When Any Excel Cell Contains Specific Text in WPS Spreadsheets
Product
WPS Spreadsheets
Device & OS
not provided
Scenario
The user is building a status summary from several nonadjacent cells or a contiguous range that may contain No or Not Effective.
Observed behavior
The desired formula should return Not Effective when any checked cell has that status and No when none do.
Before you start

Confirm which cells you need to test and whether they form a contiguous range or nonadjacent selection. Open the workbook in WPS Spreadsheets so you can enter the formula in the target result cell.

Solution 1Recommended

Use COUNTIF to Test a Contiguous Range

Best for a regular range such as F5:F11; returns Not Effective if any cell in the range matches the text.

COUNTIF is the simplest formula when the cells to check are in one contiguous range. It counts exact text matches and ignores blank cells or cells containing other text.

1
Select the result cell

Click the cell where you want the result, for example G5.

2
Enter the COUNTIF formula

Type =IF(COUNTIF(F5:F11,"Not Effective")>0,"Not Effective","No") and press Enter.

3
Verify the returned status

Change one of the cells in F5:F11 to Not Effective and confirm the result cell updates to Not Effective.

Use COUNTIF to Test a Contiguous Range
Formula result: The formula returns Not Effective when at least one cell in F5:F11 equals the text; otherwise it returns No.
WPS Spreadsheets formula help

Build the Specific-Text Status Formula in WPS Spreadsheets

Open your workbook in WPS Spreadsheets and use COUNTIF or OR formulas to return Not Effective when any checked cell contains the target text. The formulas follow standard spreadsheet logic and keep your workbook compatible with Microsoft Excel .xlsx files.

  1. 1. Open WPS Spreadsheets: Launch WPS Office and open the workbook that contains the cells you want to test.
  2. 2. Select the result cell: Click the cell where the status formula should appear.
  3. 3. Enter the appropriate formula: Type =IF(COUNTIF(F5:F11,"Not Effective")>0,"Not Effective","No") for a contiguous range, or use an OR version for scattered cells, and press Enter.
  4. 4. Test with sample values: Change one checked cell to Not Effective and confirm the formula result updates immediately.
  5. 5. Save the workbook: Press Ctrl+S or click Menu and then Save to keep the completed workbook in WPS Spreadsheets.
Direct support for COUNTIF, OR, CHOOSE and SUM formulas in WPS SpreadsheetsFull compatibility with Microsoft Excel .xlsx formulas and workbooksFree, lightweight alternative to Microsoft Excel for everyday formula tasksFamiliar ribbon and formula bar so you can apply existing Excel skills immediately
microsoft office alternative - wps office

Frequently Asked Questions

Can I use this formula for nonadjacent cells in WPS Spreadsheets?

Yes. Use an OR formula such as =IF(OR(F5="Not Effective",F7="Not Effective",F9="Not Effective"),"Not Effective","No") or a CHOOSE and SUM version for the specific cells you want to test.

Does COUNTIF distinguish between Not Effective and No?

Yes. COUNTIF counts only the exact text you supply. If you need partial matches, use a wildcard such as "Not Effective*" in the criteria.

What happens if a checked cell is blank?

A blank cell does not equal Not Effective or No, so COUNTIF ignores it and an OR comparison evaluates as FALSE; the formula continues checking the other selected cells.

Can I return a different value instead of No?

Yes. Replace the final No argument in the IF formula with the text you want to display when none of the checked cells contain Not Effective.

Is this formula compatible with Microsoft Excel?

Yes. WPS Spreadsheets supports COUNTIF, IF, OR, CHOOSE and SUM, and the workbook can be saved as a Microsoft Excel .xlsx file without changing the formula logic.