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
are you being offered a sign-on bonus? Read this first! · Career.io
What is the difference between an e-bike and an electric bike?
Fhlweb Account Funded Meaning
Newsweek Wordle Clues
Courierpress Obit
Gimkit Enter Pin
Getmnapp
Fantasy football 2024 rankings: Top model's NFL Week 3 QB, WR, RB, TE, kicker, defense picks
O e-faktúre sa na Slovensku hovorí takmer 2 roky - v akom stave je dnes a ako by mala fungovať?
Sunset Intimates Argyle
Perverzija.com
11301 Lakeline Blvd Parkline Plaza Ctr Ste 150
Great Spots To Take Someone Who's Never Been To Massachusetts
Nederland Police Department arrests and responses: Oct. 2-8 - Port Arthur News
El Croquis 111 - MVRDV 1997-2002.pdf - PDFCOFFEE.COM
Chester County Mugshots Busted
Mychart University Of Iowa Hospital
18002226885
Banner - Umc North Hills Clinic
Chrome Hearts Schmuck und Uhren – 15 im Angebot bei 1stDibs
Superhot Unblocked Games
Dreammarriage.com Login
Results from Form 1 of Page crazybutkool/crear_post.htm
Northern Panhandle West Virginia Craigslist
Sevier County Utah Court Calendar
Rubmaps Las Vegas
Yankee Candle Store Locator
Beauty Supply Store Clinton Nc
¿Cuándo se regalan flores amarillas y por qué se realiza este ritual en septiembre?
Angels Pet World Hudson Wi
Commercial Credit Cards for Business Expenses | J.P. Morgan
9816 Orchard Trail
Top 15 Easy Cold Appetizers
Thisassondeck
Preventice Learnworlds
Brent Yorgey - Solved Kattis problems
Evansville Craigslist Com
Fanfix Leaked
Chicktok App
Lake George Ny Craigslist
Stellaris Leader Cap
Wkbt News 8000
F92385 (FFT2385) Frontier Flight Tracking and History - FlightAware
Rapper Slimesito | Real Name, Age, Height, Girlfriend, Net Worth, & Wiki - Simply Who
Sis K12 Branson
Best used electric cars 2024: Top 10 second-hand EVs to buy
Myfreewebcam Org
Walmartjobs.com Career
Results & Winning Numbers for Last Year - Pick 3 Midday
Liberty University Live Bus Tracker
Craigslist Cars Lima Ohio
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.