Excel Formula: Check if Any Character Appears in a Range
Question details
The user needs a formula to verify if any individual character from a specific source range exists within another target cell, rather than matching the entire cell value.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Performing data validation or advanced text searching where partial matches of multiple distinct characters need to be identified within a target string.
- Observed behavior
- The standard COUNTIF formula only checks if the entire contents of a cell appear in the range, failing to automatically test each individual character separately.
Ensure your source range contains the individual characters you want to search for, and verify that your spreadsheet supports array calculations if you are referencing multiple cells at once.
Use SUM and COUNTIF with Wildcards
Reverse the search direction using wildcards to evaluate the single characters as an array and check if they exist in the target cell.
A standard wildcard search checks if the entire content of a cell appears in a given range. To test each character separately, you can evaluate the characters as an array. By summing the result of a COUNTIF function wrapped with wildcard characters, you can determine if any of the target characters are present.
Click on the cell where you want to display the TRUE or FALSE result.
Type the formula `=SUM(COUNTIF(E1, "*"&A1:C1&"*"))>0` into the formula bar. In this example, E1 is the target cell to search within, and A1:C1 contains the individual characters you are looking for.
Press Enter to apply the formula. If you are using an older version of Excel that does not support dynamic arrays, you may need to press Ctrl+Shift+Enter.

Easily Manage Complex Array Formulas with WPS Office
WPS Spreadsheet fully supports advanced array formulas, dynamic arrays, and wildcard functions like SUM and COUNTIF, making it incredibly easy to perform complex data analysis and text manipulation.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your data.
- 2. Select the destination cell: Click on the cell where you want the TRUE/FALSE result to appear.
- 3. Apply the formula: Input the `=SUM(COUNTIF(E1, "*"&A1:C1&"*"))>0` formula and press Enter. WPS Spreadsheet will automatically handle the array calculation.

Frequently Asked Questions
Why does my standard COUNTIF formula return FALSE even when characters match?
If you use COUNTIF without wildcards, it looks for an exact, full-cell match. You must use asterisks (*) around your cell references, like `"*"&A1&"*"`, to allow the formula to find partial matches within a text string.
Do I need to press Ctrl+Shift+Enter for this formula to work?
In newer versions of Excel and WPS Spreadsheet that support dynamic arrays, simply pressing Enter is sufficient. For older spreadsheet versions, you must use Ctrl+Shift+Enter to evaluate the array formula correctly.
Can I use this formula to check if any full word from a list appears in a cell?
Yes, the exact same logic applies. If your source range (e.g., A1:C1) contains full words instead of single characters, the formula will return TRUE if any of those specific words are found within the target cell.
How can I extract the matching character instead of just returning TRUE or FALSE?
Extracting the specific matching character requires more advanced array formulas. You will need to combine functions like FILTER, INDEX, MATCH, and SEARCH, as a simple COUNTIF can only count occurrences, not return the matched text.




