This post will guide you how to compare two columns using VLOOKUP and return values from the third column in Excel. How do I match two columns in Excel and return a value in third column with a formula.
Compare Two Columns and Return value in Third Column
Assuming that you have two list of data in your worksheet, the first data (A1:B5) contain product names and its sale values. and the second data table (D1:E3) contain only product names, and you want to compare product name columns for these two data, and if matched, then return the corresponding sale value from the first data based on the product in the second data.
You can use a formula based on the VLOOKUP function. Like this:
=VLOOKUP(D2,$A$2:$B$5,2,FALSE)
Type this formula into a blank cell E2 and press Enter key on your keyboard. and drag the AutoFill Handle down to cell E3 to apply this formula.

Related Functions
-
Excel VLOOKUP function
The Excel VLOOKUP function lookup a value in the first column of the table and return the value in the same row based on index_num position.The syntax of the VLOOKUP function is as below:= VLOOKUP (lookup_value, table_array, column_index_num,[range_lookup])….
Related Posts
Build Hyperlink With VLOOKUP in Excel
You might have come across a task in which you were assigned to build hyperlinks, which seems very easy, and if you are new to excel or don't have enough experience with it, then you might wonder about doing this ...
Calculate Total Cost with Excel VLOOKUP Function
In today's article we will show you how to calculate the total cost for a given weight using the Excel VLOOKUP function. This function will help us to find the appropriate unit price for that weight and then we can ...
Basic Price Discount Calculation with Excel VLOOKUP Function
We often encounter product discounts in our shopping. Depending on the level of spending, the mall will offer different percentages of discounts. Usually, the more you spend, the bigger the discount, while the less you spend, the smaller the discount. ...
Calculate Grades With VLookup in Excel
Why Should You Calculate Grades With VLookup Excel? If you're looking for a simple way to find out a student's grades, VLOOKUP Excel can do the trick. This function uses a lookup table to find the values and sort them ...
Convert State Names To Abbreviations
Assume that you got a task to convert the full state's name into the abbreviations in MS Excel, and for doing this task, you might choose to do it manually, which is an acceptable way only if you don't have ...