Log in  \/ 
x
or
x
x
Register  \/ 
x

or

How to vlookup value and return true or false / yes or no in Excel?

In many cases, you may need to look for values in a column and just return true or false (yes or no) if the value was found or not in another column. In this article, we are going to show you methods to achieve it.

Vlookupand return true or false / yes or no with formula
Highlight values in a column if they are found in another column with an amazing tool

More tutorials for VLOOKUP...


Easily highlight values in a column if they are found in another column:

The Select Same & Different Cells utility of Kutools for Excel can help you easily highlight values in a column if they are found in another column as the below demo shown. Download the full feature 30-day free trail of Kutools for Excel now!


Vlookupand return true or false / yes or no with formula

Supposing you have a list of data in range A2:A18 as shown in following screenshot. To search the values in A2:A18 according to the value in D2:D4 and display the result True or false / Yes or No, please do as follows.

1. Select a blank cell to output the result. Here I select B2.

2. Enter the below formula into it and press the Enter key.

=IF(ISNA(VLOOKUP(A2,$D$2:$D$4,1,FALSE)), "No", "Yes")

3. Select the result cell, and then drag the Fill Handle to apply the formula to other cells (In this case, I drag the Fill Handle down until it reaches B18). See screenshot:

Note: For returning True or False, please replace the “Yes” and “No” in the formula with “True” and “False”:
=IF(ISNA(VLOOKUP(A2,$D$2:$D$4,1,FALSE)), "False", "True")


Highlight values in a column if they are found in another column with an amazing tool

If you want to stand out values (such as highlighting them with background color) in a column if they are found in another column, here highly recommended the Select Same & Different Cells utility of Kutools for Excel. With this utility, you can easily achieve it by clicks.

Before applying Kutools for Excel, please download and install it firstly.

1. After installing Kutools for Excel, click Kutools > Select > Select Same & Different Cells to enable the utility.

2. In the Select Same & Different Cells dialog box, please configure as follows.

  • 2.1) In the Find values in box, select the range which you will highlight values in;
  • 2.2) In the According to box, select the range you will highlight values based on;
  • 2.3) In the Based on section, check the Single cell option;
  • 2.4) In the Find section, choose the Same values option;
  • 2.5) In the Processing of results section, check the Fill backcolor or Fill font color as you need, specify a highlight color;
  • 2.6) Click the OK button. See screenshot:

Then, if values in range A2:A18 was found in C2:C4, they will be highlighted and selected immediately as the below screenshot shown.

  If you want to have a free trial ( 30-day) of this utility, please click to download it, and then go to apply the operation according above steps.


related articles

Vlookup values across multiple worksheets
You can apply the vlookup function to return the matching values in a table of a worksheet. However, if you need to vlookup value across multiple worksheets, how can you do? This article provides detailed steps to help you easily solve the problem.

Vlookup and return matched values in multiple columns
Normally, applying the Vlookup function can only return the matched value from one column. Sometimes, you may need to extract matched values from multiple columns based on the criteria. Here is the solution for you.

Vlookup to return multiple values in one cell
Normally, when applying the VLOOKUP function, if there are multiple values that match the criteria, you can only get the result of the first one. If you want to return all matched results and display them all in a single cell, how can you achieve?

Vlookup and return entire row of a matched value
Normally, using the vlookup function can only return a result from a certain column in the same row. This article is going to show you how to return the whole row of data based on specific criteria.

Backwards Vlookup or in reverse order
In general, the VLOOKUP function searches values from left to right in the array table, and it requires the lookup value must stay in the left side of target value. But, sometimes you may know the target value and want to find out the lookup value in reverse. Therefore, you need to vlookup backwards in Excel. There are several ways in this article to deal with this problem easily!

More tutorials for VLOOKUP...


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    c · 3 months ago
    ..........
  • To post as a guest, your comment is unpublished.
    eyshbakar@gmail.com · 1 years ago
    Hello there,
    Kindly help me with function/command that will arrange same vaue in the two columns given below:
  • To post as a guest, your comment is unpublished.
    Satir · 3 years ago
    I need help using vlookup with if function for yes or no but this time the result we be as value not as Yes / NO or True or False, the oppsite of the above example.
    • To post as a guest, your comment is unpublished.
      Bailey · 3 years ago
      Satir, late message but I just did the exact job that you are tasked with.

      Original Version
      =IF(ISNA(VLOOKUP(A2,$D$2:$D$185,1,FALSE)), "False", "True").

      My Version:
      =IF(A2="","",(IF(ISNA(HLOOKUP(A2,'1. Round One'!$C$2:$Q$2,1,FALSE)),"",'1. Round One'!$H$5&" "&'1. Round One'!$H$6&" "&'1. Round One'!$H$7)))

      The difference is mine will return 3 values that are related to the value I just looked up.. aswell as it wont display anything unless the value was found.. to simply it for your use, ive provided one below.


      =IF(ISNA(VLOOKUP(A2,$D$2:$D$185,1,FALSE)), "B1", "B2").
      [b](B1 AND B2 BEING THE CELLS WITH VALUES YOU WANT IT TO DISPLAY INSTEAD OF YES/NO)[/b]
      • To post as a guest, your comment is unpublished.
        daus munshi · 7 months ago
        I got the simpler one, use this ,, =IFERROR(VLOOKUP(A2,$D$2:$D$185,1,FALSE)),"Not available"
        • To post as a guest, your comment is unpublished.
          Sheryl Pilege · 4 months ago
          This formula worked for my situation. Thank you!
  • To post as a guest, your comment is unpublished.
    Satir · 3 years ago
    can i use Yes / NO in vlookup to return a result to number or value. all the exmple gives result of Yes / NO or True/ False i need oppsite to it.