How do I compare two columns and return values in Excel 3rd column?

Learn Microsoft Excel Online FreeMenuExcel HomeExcel BasicsExcel FunctionsExcel TemplatesExcel Pivot TableExcel ChartsExcel VBAExcel ExamplesExcel VLOOKUP Example600+ Basic Excel F

How do I compare two columns and return values in Excel 3rd column?

Learn Microsoft Excel Online FreeMenu

  • Excel Home
  • Excel Basics
  • Excel Functions
  • Excel Templates
  • Excel Pivot Table
  • Excel Charts
  • Excel VBA
  • Excel Examples
  • Excel VLOOKUP Example
  • 600+ Basic Excel Formulas & Functions with Examples
  • Google Sheets
  • Google Sheets Functions
  • Contact Us


How to Compare Two Columns and Return Values in Third Column in Excelscott[emailprotected]January 10, 2019Excel Examples

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.

  • 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 VLOOKUPfunction 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 ...Find and Replace Multiple Values

This post will guide you how to find and replace multiple values at once with VBA macro or using formula in Excel. How do I make multiple find and replace in Excel. Suppose that you have a few cells containing ...Excel XLOOKUP Function

Excel XLOOKUP Function was added into Excel as a beta feature in August 2019 and is now accessible exclusively in Microsoft 365. (as of July 2021). However, if you fall into this category and often deal with big sets of ...VLOOKUP Formula | Faster Trick with 2 VLOOKUPS

This post will guide you how to use 2 VLOOKUPS function to looking up data entries from a given range of cells in Microsoft Excel. VLOOKUP with 2 lookups can be faster than a single VLOOKUP in certain scenarios. The ...VBA Macro For VLOOKUP From Another Sheet

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you how to use VBA code to vlookup data ...VLOOKUP From Another Sheet Not Working

In the previous post, you should know that how to fix or remove the #N/A error when using VLOOKUP formula to lookup value from another sheet. And this post will show you reasons why your VLOOKUP formula is not working ...

Other postsHow to Get Text before or after Dash Character in Excel «» How to Average a Range and Ignore Zero in ExcelSidebar

Recent Posts

  • Sort Data by Last Character in google sheets
  • Rank Data with Multiple Criteria in google sheets
  • Calculate Years Between Dates In Ms Excel
  • Rank Based on Specific Value in google sheets
  • Sort Dynamic Data in google sheets
  • Reverse Rank Order in google sheets
  • Rand Data by the Number of Occurrences in Google sheets
  • Rank Numbers without Repetitive Ranks in google sheets
  • Rank Numeric Values with Duplicate in Google Sheets
  • Google Sheets COUNTIF Function
  • Google Sheets Rank Function
  • Calculate Number of Hours between Two Times
  • Calculate Loan Interest in Given Year
  • Calculate Interest Rate for Loan
  • Calculate Interest for Given Period

report this ad

©Copyright 2017-2021Excel How All Rights Reserved.|  Privacy Policy  |  Term Of Service  |  RSSxx

Video liên quan