Return a Result When Any Excel Cell Contains Specific Text in WPS Spreadsheets
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.

- 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.
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.
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.
Click the cell where you want the result, for example G5.
Type =IF(COUNTIF(F5:F11,"Not Effective")>0,"Not Effective","No") and press Enter.
Change one of the cells in F5:F11 to Not Effective and confirm the result cell updates to Not Effective.

Use OR Logic for Scattered Nonadjacent Cells
Use this when the cells to test are scattered and you do not want to include the intervening rows.
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. Open WPS Spreadsheets: Launch WPS Office and open the workbook that contains the cells you want to test.
- 2. Select the result cell: Click the cell where the status formula should appear.
- 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. Test with sample values: Change one checked cell to Not Effective and confirm the formula result updates immediately.
- 5. Save the workbook: Press Ctrl+S or click Menu and then Save to keep the completed workbook in WPS Spreadsheets.

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.




