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
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
</font>
</font>


"What you want to look up" can be a value or a reference to another cell that contains the value to look up.


"What you want to look up" can be a value or another cell reference:
The column numbers are 1-based.


<font size=-1>
::[[File:VLOOKUP.png|415px]]
=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>

Latest revision as of 02:59, 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 a reference to another cell that contains the value to look up.

The column numbers are 1-based.

VLOOKUP.png