Excel Get a Column Value Corresponding to A Value Match in Another Column: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:


Use VLOOKUP(). VLOOKUP is useful when you need to find things in a table or a range by row. For example, look up a price of an automotive part by the part number, or find an employee name based on their employee ID.  
Use VLOOKUP(). VLOOKUP is useful when you need to find things in a table or a range by row. For example, look up a price of an automotive part by the part number, or find an employee name based on their employee ID.  
<font size=-1>
=VLOOKUP(What you want to look up,
          where you want to look for it,
          the column number in the range containing the value to return,
          return an Approximate or Exact match – indicated as 1/TRUE, or 0/FALSE).
</font>
"What you want to look up" can be a value or another cell reference:


<font size=-1>
<font size=-1>

Revision as of 02:54, 18 July 2023

External

Internal

Overview

In a bidimensional table, scan a column looking for a specific value and return the corresponding value from another column. A very common example is a table containing the price of a stock, recored at different distinct dates. Return the stock price for a given date.

Use VLOOKUP(). VLOOKUP is useful when you need to find things in a table or a range by row. For example, look up a price of an automotive part by the part number, or find an employee name based on their employee ID.

=VLOOKUP(What you want to look up, 
         where you want to look for it, 
         the column number in the range containing the value to return, 
         return an Approximate or Exact match – indicated as 1/TRUE, or 0/FALSE).


"What you want to look up" can be a value or another cell reference:

=VLOOKUP(What you want to look up, 
         where you want to look for it, 
         the column number in the range containing the value to return, 
         return an Approximate or Exact match – indicated as 1/TRUE, or 0/FALSE).