Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
All articles Miscellaneous Range contains specific text

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:

Leave a Comment

avatar

Subscribe to Excelchat.co

Get updates on helpful Excel topics

Subscribe to Excelchat.co

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

Another blog reader asked this question today on Excelchat:

Post your problem and you’ll get expert help in seconds.

Your message must be at least 40 characters
Our professional experts are available now. Your privacy is guaranteed.
Trusted by people who work at
Amazon.com, Inc
Facebook, Inc
Accenture PLC
Siemens AG
Macy's
The Allstate Corporation
United Parcel Service
Dell Inc