How can I match two columns in Excel and return a third column? 2

How can I match two columns in Excel and return a third column?

In Excel, there is a function called “VLOOKUP” that can be used to match two columns and return a third column. This function allows you to search for a specific value in one column and return a corresponding value from another column. By using this function, you can easily compare data from two columns and retrieve relevant information from a third column, making data analysis and management more efficient and accurate. Simply input the necessary parameters, such as the lookup value and the range of data, and the function will automatically return the desired value. This feature is particularly useful in organizing and comparing large sets of data in a spreadsheet.

Match Two Columns and Return a Third in Excel


Often you may want to match the values in two columns and output a third column in Excel.

Fortunately this is easy to do using the VLOOKUP() function, which uses the following syntax:

VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

where:

  • lookup_value: The value you want to look up.
  • table_array: The range of cells to look in.
  • col_index_num: The column number in the range that contains the return value.
  • range_lookup: Whether to find an approximate match (default) or exact match.

The following example shows how to use this function to match two columns and return a third in Excel.

Example: Match Two Columns and Return Third in Excel

Suppose we have the following datasets in Excel:

Suppose we would like to match the team values in column A and column D and return the points values in column B into column E.

We can use the following VLOOKUP syntax to match the first value in column A:

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

The following screenshot shows how to use this syntax in practice:

Notice that the ‘points’ value in column B that corresponds to ‘Suns’ is 96, which is why this value is returned in column E.

We can then drag this formula down to every remaining cell in column E:

The following tutorials explain how to perform other common operations in Excel:

Cite this article

stats writer (2024). How can I match two columns in Excel and return a third column?. PSYCHOLOGICAL SCALES. Retrieved from https://scales.arabpsychology.com/stats/how-can-i-match-two-columns-in-excel-and-return-a-third-column/

stats writer. "How can I match two columns in Excel and return a third column?." PSYCHOLOGICAL SCALES, 15 May. 2024, https://scales.arabpsychology.com/stats/how-can-i-match-two-columns-in-excel-and-return-a-third-column/.

stats writer. "How can I match two columns in Excel and return a third column?." PSYCHOLOGICAL SCALES, 2024. https://scales.arabpsychology.com/stats/how-can-i-match-two-columns-in-excel-and-return-a-third-column/.

stats writer (2024) 'How can I match two columns in Excel and return a third column?', PSYCHOLOGICAL SCALES. Available at: https://scales.arabpsychology.com/stats/how-can-i-match-two-columns-in-excel-and-return-a-third-column/.

[1] stats writer, "How can I match two columns in Excel and return a third column?," PSYCHOLOGICAL SCALES, vol. X, no. Y, ص Z-Z, May, 2024.

stats writer. How can I match two columns in Excel and return a third column?. PSYCHOLOGICAL SCALES. 2024;vol(issue):pages.

Download Post (.PDF)
Slide Up
x
PDF
Scroll to Top