Showing posts with label Excel. Show all posts
Showing posts with label Excel. Show all posts

Thursday, March 5, 2020

What is VLOOKUP function in excel?

Use VLOOKUP 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 student name based on their student ID.

How to work VLOOKUP function.

There are four pieces of information that you will need in order to build the VLOOKUP syntax:

1. The value you want to look up, also called the lookup value.

2. The range where the lookup value is located. Remember that the lookup value should always be in the first column in the range for VLOOKUP to work correctly. For example, if your lookup value is in cell C2 then your range should start with C.

3. The column number in the range that contains the return value. For example, if you specify B2:D11 as the range, you should count B as the first column, C as the second, and so on.

4. Optionally, you can specify TRUE if you want an approximate match or FALSE if you want an exact match of the return value. If you don't specify anything, the default value will always be TRUE or approximate match.

Now put all of the above together as follows:

=VLOOKUP(lookup value,
range containing the lookup value,
the column number in the range containing the return value,
Approximate match (TRUE) or Exact match (FALSE)).

Example: 

 Here we have use the sample data of student record.


we want get the phone number by id using vlookup function

=VLOOKUP(A10,A2:D6,4,FALSE)




Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...