Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

How to compare two columns and return values from the third column in Excel?

doc compare two lists and return for third 1

For example, I have the following two columns, column A is some projects, and column B is the corresponding names. And here, I have some random projects in column D, now, I want to return the corresponding names from column B based on the projects in column D. How could you compare the two columns A and D and return the relative values from column B in Excel?

Compare two columns and return value form third column with formulas

Compare two columns and return value form third column Kutools for Excel


Vlookup and return matching values from the third column:

Kutools for Excel collects multiple useful formulas for Excel Users, by using them you can quickly solve many difficult problems, such as calculate ages, add months, years, days, weeks, vlookup and return values from third column and so on.

doc compare two lists and return for third 9

Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!



The following formulas can help you to compare two columns and extract the corresponding values from the third column, please do as follows:

1. Enter any of the below two formulas into a blank cell besides the compared column, E2 for this instance:

=IF(ISNA(MATCH(D2,$A$2:$A$16,0)),"",VLOOKUP(D2,$A$2:$B$16,2,FALSE))

=VLOOKUP(D2,$A$2:$B$16,2,FALSE)

2. Then press Enter key to get the first corresponding value, see screenshot:

doc compare two lists and return for third 2

3. And then select the cell and drag the fill handle down to the cells that you want to apply this formula, and all the corresponding values have been returned at once. See screenshot:

doc compare two lists and return for third 3

Note: In the above formulas: D2 is the criteria cell that you want to return the value based on, A2:A16 is the column including the criteria to be compared with, A2:B16 the data range that you want to use.


Kutools for Excel’s Look for a value in list also can help you to return the corresponding data from another data range.

Kutools for Excel : with more than 300 handy Excel add-ins, free to try with no limitation in 60 days

After installing Kutools for Excel, please do as follows:

1. Click a blank cell where you want to return the relative data.

2. Then click Kutools > Formulas > Look for a value in list, see screenshot:

doc compare two lists and return for third 4

3. In the Formula Helper dialog box, do the following operations:

(1.) Click doc compare two lists and return for third 6 button beside the Table_array to select the data range that you want to look from, and enter the $ character to the cell reference to make the relative reference to absolute reference;

(2.) Click doc compare two lists and return for third 6 button beside the Look_value to select the criteria value you need;

(3.) Click doc compare two lists and return for third 6 button beside the Column to select the column will be returned the corresponding values from.

doc compare two lists and return for third 5

4. Then click Ok button to close the dialog, and the first corresponding data has been displayed, see screenshot:

doc compare two lists and return for third 7

5. Then select the first matching cell and drag the fill handle down to the cells that you want to apply this formula, and all the relative values have been returned at once, see screenshot:

doc compare two lists and return for third 8

Download and free trial Kutools for Excel Now !


Kutools for Excel: with more than 200 handy Excel add-ins, free to try with no limitation in 60 days. Download and free trial Now!


Recommended Productivity Tools

Ribbon of Excel (with Kutools for Excel installed)

300+ Advanced Features Increase Your Productivity by 71%, and Help You To Stand Out From Crowd!

Would you like to complete your daily work quickly and perfectly? Kutools For Excel brings 300+ cool and powerful advanced features (Combine workbooks, sum by color, split cell contents, convert date, and so on...) for 1500+ work scenarios, helps you solve 82% Excel problems.

  •  Deal with all complicated tasks in seconds, help to enhance your work ability, get success from the fierce competition, and never worry about being fired.
  •  Save a lot of work time, leave much time for you to love and care the family and enjoy a comfortable life now.
  •  Reduce thousands of keyboard and mouse clicks every day, relieve your tired eyes and hands, and give you a healthy body.
  •  Become an Excel expert in 3 minutes, and get admiring glance from your colleagues or friends.
  •  No longer need to remember any painful formulas and VBA codes, have a relaxing and pleasant mind, give you a thrill you've never had before.
  •  Spend only $39, but worth than $4000 training of others. Being used by 110,000 elites and 300+ well-known companies.
  •  60-day unlimited free trial. 60-day money back guarantee. Free upgrade and support for 2 years. Buy once, use forever.
  •  Change the way you work now, and give you a better life immediately!

Office Tab Brings Efficient And Handy Tabs to Office (include Excel), Just Like Chrome, Firefox, And New IE

  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Open and create documents in new tabs of same window, rather than in new windows.
  • Help you work faster and easily stand out from the crowd! One second to switch between dozens of open documents!
Say something here...
symbols left.
You are guest ( Sign Up? )
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.
    pavan · 1 months ago
    what if i have repeated valued in d column i.e with same name Q!,Q2,Q3,Q4 now if i use your formula i get only Q1 value i need also the 2nd,3rd,4th,matches also
  • To post as a guest, your comment is unpublished.
    Jason McArthur · 2 months ago
    I want to compare 2 columns data on one sheet to a range on another sheet and return the data in the 3rd column from the 2nd sheet
  • To post as a guest, your comment is unpublished.
    A · 3 months ago
    I have 3 columns, A B C, i'd like to get the value of A where the value in Column C matches the value in column B is that possible?
    • To post as a guest, your comment is unpublished.
      skyyang · 3 months ago
      Hi, .
      Could you explain your problem more detailed, or you can insert a screenshot here?
      Thank you!
      • To post as a guest, your comment is unpublished.
        Shaikh Wasim · 25 days ago
        i'm facing the same issue,can u provide any formula for this type of calculation,i want result in another column.
        • To post as a guest, your comment is unpublished.
          skyyang · 24 days ago
          Hi, guys,
          Could you give your problem more detailed, or, you can insert a screenshot here?
      • To post as a guest, your comment is unpublished.
        Sk Wasim · 25 days ago
        Can u help me plz, i'm facing the same issue?
  • To post as a guest, your comment is unpublished.
    Andrea · 1 years ago
    I am struggling with this and just get blanks returning.

    Want to say if cell Shhet1!ED1 matches a cell in column Sheet2!C:C then provide data for adjacent cell in Sheet2!A:A
  • To post as a guest, your comment is unpublished.
    Tamara Leigh · 1 years ago
    Please could you assist me, I need to do an excel formula for a petty cash spreadsheet where it looks for an account number input in Col_C which must be looked for in a list of account numbers in Col_L and if FALSE needs to return the value input in COL_F

    Exampled below