How to Check If Cell Contains Specific Text in Excel | Adding the ISNUMBER Function

preview_player
Показать описание
In this video, we will teach you how to check if a cell contains a specific text in Excel.

For that, we will be using the Search function to determine whether a specific text is present in a range of cells. Over here, we have a contact sheet with the addresses in one column. Let’s say we want to identify which person in this sheet is located within Texas. For that, we will be using two functions to determine whether the abbreviation of Texas is located within any of these cells.

Let’s start by selecting the cell here and entering the if function. After that, we will enter the search function, followed by brackets open. In inverted commas lets enter T X.

Next, let’s enter comma and after that let’s select the cell in which we want to search the text.

The search function returns a number, which means that it has found the text we entered in inverted commas here, and in this example - that means the person is located in Texas.

So within the IF function, let’s add the IS NUMBER function in the beginning here. Now we can determine what the output would be if this argument is true or false.

If it’s true, then we want to return the values as YES. And if it is false, we want to return the value as NO. You can see over here, that we have entered each value in inverted commas, separated by a comma.

Let’s hit enter, and here you can see that the formula has found the value we had entered in the search function. Let’s copy and paste the formula in the entire sheet.

In this cell over here, you can see that the text T X is also present for another location, which is not Texas. Probably an error but your function should be able to handle that.

For that, a standard should be maintained within your data. For example, in this data you can see that the abbreviation of every state is followed by a comma.

So let’s move back to the formula here, and within the search function, let’s add a comma after T X.

Now let’s paste the formula to the remaining cells, and over here you can see that it is correctly determining whether the person is located within Texas or not.

That’s all!

❓💬 Is there any excel function you would like to know more about? Let us know in the comments below.

#HowTech #Excel
--------------------------------------------------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

Thank you. Very helpful guide. Easy to follow.

JinkyBuen
Автор

Exactly what I needed, much appreciated!

notjustcollectibles
Автор

What If I wanted column E to pull the state? So if it is TX, CA, or DE, column E would show which of those states is in column D and if not be blank or say none?

carmendianaberardesco
Автор

what if i wanted to do the same for multiple text in a same cell? For Eg: I wanted to find TX, AND ALSO TEXT USA in same cell!!

BenjaminTennysonjb
Автор

why we need Isnumber function, we talking about text, seem the way to do it but i don't understand the relation

Jack
Автор

hi
if I want the name of the person who is living in TX displayed instead of yes or no? how can I do that???

wehbenasser
Автор

What if I need to conditional format a range of digits within a text string. example text string 0, 2, 5, 0, 6

reyessilvas
Автор

Did you just call quotation marks - inverted that's a new one for me.

imbwildrd
Автор

I can't wrap my head around why "is number" is required - what is that accomplishing?

NathanielH
Автор

this no longer works, the search function now returns a number

FinancialAlchemy
Автор

You are awsm, and thank a lot for sharing your knowledge

niceboy
Автор

Help viewers out by including the function in the video description... =IF(ISNUMBER(SEARCH("TX", D6)), "YES", "NO")

brandonc.