Go Back

Range contains specific text

Figure 1. of Range Contains Specific Text in Excel.

In the event that we are required to test if a column or row contains specific information/text (partial text or a specific substring), we are going to utilize the COUNTIF Function. The Excel COUNTIF Function counts the number of cells that meet our specified criteria, supplying each of the found occurrences.

Generic Formula

=COUNTIF(rng,"*"&value&"*")>0

How to Check if a Range Contains Specific Text in Excel

Let’s say we have a wide range of cells and each cell contains a large amount of data. How do we run a quick check to see if it indeed contains some specific items or values?

In the illustration below we a making use of the following COUNTIF operation syntax.

=COUNTIF($A$2:$A$6,"*"&B2&"*")>0

Figure 2. of the COUNTIF Function in Excel.

The COUNTIF operation syntax we have entered into cell C2 was able to generate a String of RESULTS in column C. Copying the COUNTIF operation syntax down the cells in column C gives us the desired results.

In our example’s formula syntax, $A$2:$A$6 is the cell range we wish to use, and cell B2 is the value we wish to check to see if it appears in the cell range.

Figure 3. of Final Result.

Instant Connection to an Expert through our Excelchat Service

Our live Excelchat Service is here for you. We have Excel Experts available 24/7 to answer any Excel questions you may have. Guaranteed connection within 30 seconds and a customized solution for you within 20 minutes

Did this post not answer your question? Get a solution from connecting with the expert.

Another blog reader asked this question today on Excelchat:
Here are some problems that our users have asked and received explanations on

Need to count a Specific text for specific name in a range
Solved by V. B. in 11 mins
Need to get text from cell C from a table (or range) if cell A contains " " and if cell B contains " "
Solved by D. Y. in 15 mins
need to count text from a range if it contains my test or not
Solved by G. Q. in 24 mins

Leave a Comment

avatar