How to Check If Value Is In List in Excel (2024)

How to Check If Value Is In List in Excel (1)

So, there are times when you would like to know that a value is in a list or not. We have done this using VLOOKUP. But we can do the same thing using COUNTIF function too. So in this article, we will learn how to check if a values is in a list or not using various ways.

Check If Value In Range Using COUNTIF Function

So as we know, using COUNTIF function in excel we can know how many times a specific value occurs in a range. So if we count for a specific value in a range and its greater than zero, it would mean that it is in the range. Isn’t it?

Generic Formula

=COUNTIF(range,value)>0

Range: The range in which you want to check if the value exist in range or not.

Value: The value that you want to check in the range.

Let’s see an example:

Excel Find Value is in Range Example

For this example, we have below sample data. We need a check-in the cell D2, if the given item in C2 exists in range A2:A9 or say item list. If it’s there then, print TRUE else FALSE.
How to Check If Value Is In List in Excel (2)
Write this formula in cell D2:

=COUNTIF(A2:A9,C2)>0

How to Check If Value Is In List in Excel (3)
Since C2 contains “scale” and it’s not in the item list, it shows FALSE. Exactly as we wanted. Now if you replace “scale” with “Pencil” in the formula above, it’ll show TRUE.
How to Check If Value Is In List in Excel (4)
Now, this TRUE and FALSE looks very back and white. How about customizing the output. I mean, how about we show, “found” or “not found” when value is in list and when it is not respectively.
Since this test gives us TRUE and FALSE, we can use it with IF function of excel.

Write this formula:

=IF(COUNTIF(A2:A9,C2)>0,"in List","Not in List")

You will have this as your output.
How to Check If Value Is In List in Excel (5)
What If you remove “>0” from this if formula?

=IF(COUNTIF(A2:A9,C2),"in List","Not in List")

It will work fine. You will have same result as above. Why? Because IF function in excel treats any value greater than 0 as TRUE.

How to check if a value is in Range with Wild Card Operators

Sometimes you would want to know if there is any match of your item in the list or not. I mean when you don’t want an exact match but any match.

For example, if in the above-given list, you want to check if there is anything with “red”. To do so, write this formula.

=IF(COUNTIF(A2:A9,"*red*"),"in List","Not in List")

This will return a TRUE since we have “red pen” in our list. If you replace red with pink it will return FALSE. Try it.
Now here I have hardcoded the value in list but if your value is in a cell, say in our favourite cell B2 then write this formula.

IF(COUNTIF(A2:A9,"*"&B2&"*"),"in List","Not in List")

How to Check If Value Is In List in Excel (6)
There’s one more way to do the same. We can use the MATCH function in excel to check if the column contains a value. Let’s see how.

Find if a Value is in a List Using MATCH Function

So as we all know that MATCH function in excel returns the index of a value if found, else returns #N/A error. So we can use the ISNUMBER to check if the function returns a number.
If it returns a number ISNUMBER will show TRUE, which means it’s found else FALSE, and you know what that means.

Write this formula in cell C2:

=ISNUMBER(MATCH(C2,A2:A9,0))

How to Check If Value Is In List in Excel (7)
The MATCH function looks for an exact match of value in cell C2 in range A2:A9. Since DESK is on the list, it shows a TRUE value and FALSE for SCALE.

So yeah, these are the ways, using which you can find if a value is in the list or not and then take action on them as you like using IF function. I explained how to find value in a range in the best way possible. Let me know if you have any thoughts. The comments section is all yours.

Related Articles:

How to Check If Cell Contains Specific Text in Excel

How to Check A list of Texts In String in Excel

How to take the Average Difference between lists in Excel

How to Get Every Nth Value From A list in Excel

Popular Articles:

50 Excel Shortcuts to Increase Your Productivity

How to use the VLOOKUP Function in Excel

How to use the COUNTIF function in Excel

How to use the SUMIF Function in Excel

How to Check If Value Is In List in Excel (2024)
Top Articles
Scents that Women Adore the Most! Women's Scent Preference
A man who spent 20 hours in the open ocean after going overboard on a cruise ship was only able to survive because a bunch of factors went 'perfectly,' coast guard rescuer says
How To Use Scarabs Poe
Solarmovies.te
7025825949
Hexanaut.io: Trucs et Astuces pour Notre Nouveau Jeu IO
Golf Wrx Forums
Varsity Tutors, a Nerdy Company hiring Hoboken Vietnamese Tutor in Hoboken, NJ | LinkedIn
Project Zomboid Dynamic Skybox
Smithfield Okta Login
Michelob Ultra Peace Treaty Commercial Cast
Kenton County Busted Magazine
New Scammer Pictures 2022 Female
Craigslist Akron Canton Ohio
Poe Reave
Amouranth's Abusive Husband Situation Explained
Ll94 Pill
Bj Alex Mangabuddy
F95Zone.toi
Louis Chauffroy
Nycda Login
Jessica Oldwyn Carroll Update
Roanoke Skipthegames Com
HLS Fetch Download tools - Chrome Web Store
Houses For Sale 180 000
Gobluecc Sports
8554262764
97226 Zip Code
Toro 21 Front Mount Dethatcher
Gabrielle Abbate Obituary
Guadalajara Taqueria Cisco Menu
Becky G Net Worth 2022 Forbes
Joliet Herald News Obituary
Chubby Mature Bbc
Ralphs Labor Day Hours
Ritz Carlton San Antonio Riverwalk
Itslunarliv Leaked Video
Beth Israel Farr Building Parking
23 Thrift Stores In TEXAS (Quirky, Vintage, & Distinctive)
Berks County Court Schedule
Integer Division Matlab
Remember the 'weatherstick'? Peoria's weather tower was visible for miles
Coffey Leaked
7.5/8 As A Percent
Craigslist Fort Madison Iowa
Syracuse Pets Craigslist
Where do the candidates stand? Thoughts from City Council at-large hopefuls
Fifty Shades Freed Putlocker
Automart Ladson
Restored Republic Jan 3 2023
Mals Crazy Crab
Latest Posts
Article information

Author: Dean Jakubowski Ret

Last Updated:

Views: 5804

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dean Jakubowski Ret

Birthday: 1996-05-10

Address: Apt. 425 4346 Santiago Islands, Shariside, AK 38830-1874

Phone: +96313309894162

Job: Legacy Sales Designer

Hobby: Baseball, Wood carving, Candle making, Jigsaw puzzles, Lacemaking, Parkour, Drawing

Introduction: My name is Dean Jakubowski Ret, I am a enthusiastic, friendly, homely, handsome, zealous, brainy, elegant person who loves writing and wants to share my knowledge and understanding with you.