Function Problems

Excel Formula: Check if Any Character Appears in a Range

Amos GikundaAmos Gikunda Oct 15, 2026 870 views

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.

How to Check Whether Any Character Appears in a Range Using Excel Formulas
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.
Before you start

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.

Solution 1Recommended

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.

1
Select the output cell

Click on the cell where you want to display the TRUE or FALSE result.

2
Input the array formula

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.

3
Evaluate the formula

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.

Use SUM and COUNTIF with Wildcards
How the Formula Works: The formula appends wildcard asterisks (*) to each character in A1:C1, counts how many times they appear in E1, and returns TRUE if the total sum of matches is greater than 0.

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. 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your data.
  2. 2. Select the destination cell: Click on the cell where you want the TRUE/FALSE result to appear.
  3. 3. Apply the formula: Input the `=SUM(COUNTIF(E1, "*"&A1:C1&"*"))>0` formula and press Enter. WPS Spreadsheet will automatically handle the array calculation.
100% compatible with Microsoft Excel formulas and wildcard syntaxNative support for dynamic arrays to process multi-cell references seamlesslyLightweight, fast, and completely free to use for your daily spreadsheet tasks
microsoft office alternative - wps office

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.