If Value Exists in Column Then TRUE in Excel

In this article, we will discuss receiving ‘TRUE’ as output if one cell value in Excel exists in another column. Basically, when we work with spreadsheets, it is not possible to find a particular cell value in a large array one by one. Fortunately, there are various ways in Excel that can help us to do this lookup and match the task. Besides that, we can use simple formulas or combinations of functions depending on the type and volume of the data.

excel if value exists in column then true


Download Practice Workbook

You can download the practice workbook that we have used to prepare this article.


5 Methods to Return TRUE If Value Exists in a Column in Excel

1. Use Simple Formula to Find TRUE If Excel Column Consists a Value

This is one of the easiest methods to match data between columns and return TRUE. So, here are the steps:

Steps:

  • First, type the following formula in the first cell of the result column (here, Cell D5).
=B5=C5

Use Simple Formula to Find TRUE If Excel Column Consists a Value

  • After Entering the formula, you will get TRUE as output if both column values match, otherwise FALSE. Then, use autofill (+) to drag down the formula to the rest of the column.


2. Return TRUE Using EXACT Function If a Value Exists in Excel Column

Sometimes, we want to match case-sensitive data between columns and get the matched results. In such cases, the EXACT function can be a great help. The EXACT function checks whether two text strings are exactly the same, and returns TRUE or FALSE. This function is case-sensitive. The steps we have followed for this method are:

Steps:

  • First, type the following formula:
=EXACT(B5,C5)

Return TRUE Using EXACT Function If a Value Exists in Excel Column

  • If you enter the formula correctly, the following will be the output.

AutoFill the EXACT function


3. Use Combination of MATCH, ISERROR and NOT Functions to Get TRUE If Value Exists in Excel Column

Earlier in this article, we were talking about using combinations of functions to match a particular cell value in a range of data. Interestingly, there are several combinations to do the task. For example, we can use MATCH, ISERROR, and NOT functions altogether. In the current example, we have a fruit dataset, and we will look for a particular fruit name in a column containing a list of other fruits.

Steps:

  • To get the expected result, type the following formula:
=NOT(ISERROR(MATCH(B5,$C$5:$C$13,0)))

Use Combination of MATCH, ISERROR and NOT Functions to Get TRUE If Value Exists in Excel Column

Breakdown of the Formula

➤ MATCH(B5,$C$5:$C$13,0)

Here, the MATCH function returns the relative position of an item in an array that matches a specified value in a specified order.

➤ ISERROR(MATCH(B5,$C$5:$C$13,0))

Now, the ISERROR function checks whether a value is an error, and returns TRUE or FALSE.

➤ NOT(ISERROR(MATCH(B5,$C$5:$C$13,0)))

Finally, the NOT function changes FALSE to TRUE or FALSE to TRUE.

  • You will get the following result if the formula is entered correctly.


4. Return TRUE If a Value Present in an Excel Column Using the Combination of IF, ISERROR and VLOOKUP Functions

Likewise in the previous example, we will use another combination of functions to get the TRUE output if a particular value is available in another column. Now, we will use the combination of the IF, ISERROR and VLOOKUP functions. For instance, we want to know if any number in a cell of column B is available in column C or not. Here are the steps we will follow:

Steps:

  • First, type the below formula:
=IF(ISERROR(VLOOKUP(B5,$C$5:$C$13,1,FALSE)),FALSE,TRUE)

Return TRUE If a Value Present in an Excel Column Using the Combination of IF, ISERROR and VLOOKUP Functions

Breakdown of the Formula

➤ VLOOKUP(B5,$C$5:$C$13,1,FALSE)

Here, the VLOOKUP function looks for a value in the leftmost column of a table and then returns a value in the same row from a column you specify. The function will look for the value of Cell B5 in range C5:C13.

➤ ISERROR(VLOOKUP(B5,$C$5:$C$13,1,FALSE))

Now, the ISERROR function checks whether a value is an error, and returns TRUE or FALSE. Finally,

➤ IF(ISERROR(VLOOKUP(B5,$C$5:$C$13,1,FALSE)),FALSE,TRUE)

The IF function checks whether a condition is met, and returns one value if TRUE, and another value if FALSE.

  • As a consequence of entering the formula, you will get the following result:


5. Use the Combination of ISNUMBER and MATCH Functions to Find TRUE If Value Remain in a Column in Excel

Similar to methods 3 and 4, now we will apply another combination of functions to search a particular cell value in a column. Such as we will combine the ISNUMBER and MATCH function to search the value and get ‘TRUE’ as output. Like, we want to find any month of column B in the month list of column C. So, the steps we have followed here are:

Steps:

  • To get the desired result, type the below formula at first:
=ISNUMBER(MATCH(B5,$C$5:$C$13,0))

Use the Combination of ISNUMBER and MATCH Functions to Find TRUE If Value Remain in a Column in Excel

Here, the MATCH function will look and match the value of Cell B5 in the range C5:C13, and the ISNUMBER function checks whether a value is a number, and returns TRUE or FALSE.

  • In the end, you will get the result as follows.


Conclusion

In the above-mentioned article, I have tried to explain lookup and match methods elaborately. These methods are very easy and take less time. Especially, when you will work with big data, the methods mentioned above will save a lot of your time and energy. If you have any queries regarding these methods, let me know.

Get FREE Advanced Excel Exercises with Solutions!

Tags:

Hosne Ara
Hosne Ara

Hosne Ara is a materials and metallurgical engineer who loves exploring Excel and VBA programming. To her, programming is like a time-saving superhero for dealing with data, files, and the internet. She's skilled in Rhino3D, Maxsurf C++, MS Office, AutoCAD, and Excel & VBA, going beyond the basics. With a B. Sc. in Materials and Metallurgical Engineering from Bangladesh University of Engineering and Technology, she's shifted gears and now works as a content developer. In this role, she... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo