How to Find Text in Cell in Excel: 2 Suitable Examples

Method 1 – Combine SEARCH, ISNUMBER, and IF Functions to Find Text in Cell

Steps:

  • Select cell C5.
  • Write down the following formula in the cell.

=IF(ISNUMBER(SEARCH("Gmail",B5)),"Yes","No")

  • Press Enter.

Combine SEARCH, ISNUMBER, and IF Functions to Find Text in Cell

  • As the word Gmail is present in the data of cell B5, the formula returned Yes in cell C5.
  • Drag the AutoFill Handle icon to copy the formula up to cell C14.

  • See that our formula will show the result for all the data.

The result of find text in a cell

Breakdown of the Formula

We are breaking down the formula for cell C5.

SEARCH(“Gmail”,B5): The SEARCH function will search for our desired character and show the character number. Here, the function will return 12.

ISNUMBER(SEARCH(“Gmail”,B5)): The ISNUMBER function will check whether the result of the SEARCH function is a number or not. If the result is a number, it will return TRUE. It will show FALSE. The function will return TRUE.

IF(ISNUMBER(SEARCH(“Gmail”,B5)),”Yes”,”No”): The IF function checks the value of the ISNUMBER function is true or false. If the result is true the IF function will return Yes. On the other hand, it will return No. The function will return Yes.


Method 2 – Merge FIND and ISNUMBER Functions to Find Text in Cell

Steps:

  • Select cell C5.
  • Write down the following formula in the cell.

=IF(ISNUMBER(FIND("Gmail",B4)),"Yes","No")

  • Press Enter.

Merge FIND and ISNUMBER Functions to Find Text in Cell

  • The exact word Gmail is absent in the text of cell B5; the formula returned No in cell C5.
  • Drag the AutoFill Handle icon to copy the formula up to cell C14.

  • You will see that our formula will show the result for all the data. There is no domain with Gmail, all the results will be No.

The output of our used formula to find text in a cell

Breakdown of the Formula

We are breaking down the formula for cell C5.

FIND(“Gmail”,B4): The FIND function will check for the exact character and show the character number. The function will return a #VALUE error if the word is absent in our text.

ISNUMBER(FIND(“Gmail”,B4)): The ISNUMBER function will check whether the result of the FIND function is a number or not. If the result is a number, it will return TRUE. It will show FALSE. Here, the function will return FALSE.

IF(ISNUMBER(FIND(“Gmail”,B4)),”Yes”,”No”): In the end, the IF function checks the value of the ISNUMBER function is true or false. If the result is true the IF function will return Yes. It will return No. The function will return No.


Download Practice Workbook

Download this practice workbook while you are reading this article.


Related Articles


<< Go Back to Find in String | String Manipulation | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Rifat Hassan
Rifat Hassan

Rifat Hassan, BSc, Electrical and Electronic Engineering, Bangladesh University of Engineering and Technology, has worked with the ExcelDemy project for almost 2 years. Within these 2 years, he has written over 250 articles. He has also conducted a few Boot Camp sessions on effective coding, especially Visual Basic for Applications (VBA). Currently, he is working as a Software Developer to develop and deploy additional add-ins to enhance the customers with a more sophisticated experience with Microsoft Office Suits,... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo