6 Examples of Vlookup

This topic has been explained in great detail in the video shown below, to learn this topic just play the video and the notes are mentioned below the video.


6 Examples of Vlookup






6 Examples of Vlookup Formula

6 examples of vlookup formula helps in using vlookup in practical scenarios in your work. Once you have mastered these 6 techniques of using vlookup then you would be able to
1. Apply Vlookup to lookup data
2. Find the Highest value with Vlookup
3. Find the lowest value with Vlookup
4. Lookup any part of content within a cell
5. Vlookup multiple results once
6. Remove the # NA error from vlookup results

 

The information below is from Microsoft Excel Blog on howto use Vlookup

Use VLOOKUP, one of the lookup and reference functions, 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.

=VLOOKUP(Value you want to look up, range where you want to lookup the value, the column number in the range containing the return value, Exact Match or Approximate Match – indicated as 0/FALSE or 1/TRUE).

Use the VLOOKUP function to look up a value in a table.

Syntax

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

For example:

  • =VLOOKUP(105,A2:C7,2,TRUE)
  • =VLOOKUP(“Fontana”,B2:E7,2,FALSE)
Argument name Description
lookup_value    (required) The value you want to look up. The value you want to look up must be in the first column of the range of cells you specify in table-array .

For example, if table-array spans cells B2:D7, then your lookup_value must be in column B. See the graphic below. Lookup_value can be a value or a reference to a cell.

table_array    (required) The range of cells in which the VLOOKUP will search for the lookup_value and the return value.

The first column in the cell range must contain the lookup_value (for example, Last Name in the picture below.) The cell range also needs to include the return value (for example, First Name in the graphic below) you want to find.

Learn how to select ranges in a worksheet.

col_index_num    (required) The column number (starting with 1 for the left-most column of table-array) that contains the return value.
range_lookup   (optional) A logical value that specifies whether you want VLOOKUP to find an approximate or an exact match:

  • TRUE assumes the first column in the table is sorted either numerically or alphabetically, and will then search for the closest value. This is the default method if you don’t specify one.
  • FALSE searches for the exact value in the first column.

How to get started

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, optionally specify TRUE for approximate match or FALSE for an exact match).

The following picture shows how you’d set up your VLOOKUP to return the price of Brake rotors, which is85.73.

VLOOKUP example

  1. D13 is lookup_value, or the value you want to look up.
  2. B2 to E11 (highlighted in yellow in the table) is table_array, or the range where the lookup value is located.
  3. 3 is col_index_num, or the column number in table_array that contains the return value. In this example, the third column in the table array is Part Price, so the formula output will be a value from the Part Price column.
  4. FALSE is range_lookup, so the return value will be an exact match.
  5. Output of the VLOOKUP formula is 85.73, the price of Brake rotors.

Examples

Here are a few more examples of VLOOKUP:

Example 1

VLOOKUP Example 1

Example 2

VLOOKUP Example 2

Example 3

VLOOKUP Example 3

Example 4

VLOOKUP Example 4

Example 5

VLOOKUP Example 5

Common Problems while using Vlookup

Problem What went wrong
Wrong value returned If range_lookup is TRUE or left out, the first column needs to be sorted alphabetically or numerically. If the first column isn’t sorted, the return value might be something you don’t expect. Either sort the first column, or use FALSE for an exact match.
#N/A in cell
  • If range_lookup is TRUE, then if the value in the lookup_value is smaller than the smallest value in the first column of thetable_array, you’ll get the #N/A error value.
  • If range_lookup is FALSE, the #N/A error value indicates that the exact number isn’t found.

For more information on resolving #N/A errors in VLOOKUP, see How to correct a #N/A error in the VLOOKUP function.

#REF! in cell If col_index_num is greater than the number of columns in table-array, you’ll get the #REF! error value.

For more information on resolving #REF! errors in VLOOKUP, see How to correct a #REF! error.

#VALUE! in cell If the table_array is less than 1, you’ll get the #VALUE! error value.

For more information on resolving #VALUE! errors in VLOOKUP, see How to correct a #VALUE! error in the VLOOKUP function.

#NAME? in cell The #NAME? error value usually means that the formula is missing quotes. To look up a person’s name, make sure you use quotes around the name in the formula. For example, enter the name as “Fontana” in =VLOOKUP(“Fontana”,B2:E7,2,FALSE).

For more information, see How to correct a #NAME! error.

Best Practices to use Vlookup

Do this Why
Use absolute references forrange_lookup Using absolute references allows you to fill-down a formula so that it always looks at the same exact lookup range.

Learn how to use absolute cell references.

Don’t store number or date values as text. When searching number or date values, be sure the data in the first column of table_array isn’t stored as text values. Otherwise, VLOOKUP might return an incorrect or unexpected value.
Sort the first column Sort the first column of the table_array before using VLOOKUP when range_lookup is TRUE.
Use wildcard characters If range_lookup is FALSE and lookup_value is text, you can use the wildcard characters—the question mark (?) and asterisk (*)—in lookup_value. A question mark matches any single character. An asterisk matches any sequence of characters. If you want to find an actual question mark or asterisk, type a tilde (~) in front of the character.

For example, =VLOOKUP(“Fontan?”,B2:E7,2,FALSE) will search for all instances of Fontana with a last letter that could vary.

Make sure your data doesn’t contain erroneous characters. When searching text values in the first column, make sure the data in the first column doesn’t have leading spaces, trailing spaces, inconsistent use of straight ( ‘ or ” ) and curly ( ‘ or “) quotation marks, or nonprinting characters. In these cases, VLOOKUP might return an unexpected value.

To get accurate results, try using the CLEAN function or the TRIM function to remove trailing spaces after table values in a cell.








Our Other Services




Read Free Ebooks

myeboook.com

Myebook has 1000's of free ebooks for you. On productivity, health, online income, learning, music and many more, it's free of course!



Buy Excel Course

myelesson.org/product

Become an Excel Guru, Buy the best Excel course. Learn on your mobile, tv & laptop without internet. For COD, Call 9752003788



Create Best Looking Resume

http://www.makecv.org/

At Makecv.org you get to create a amazingly professional looking resume in just 3 steps with our intuitive resume builder!


Download Excel Crash Course


This Excel Crash Course contains the list of topics that cover the most important and used features and formula of Excel . This Excel Crash Course lists 43 major topics in Excel so that you can start using Excel like a pro in the shortest possible time.



Learn Photoshop Web Designing


You can Buy the Photoshop Course to learn Photoshop and start a career in Web Designing and Photo Editing. .



Learn HTML CSS


You can Buy the HTML CSS Course to learn HTML CSS and start a career in Web Designing and Photo Editing. .


Download Full list of Excel Shortcuts


This Excel Shortcuts Complete list is to help you become save time and use Excel like a Master level user. Excel is best used when you know the Keyboard shortcuts because the use of keyboard shortcuts in Excel helps you in completing tasks faster.

I have created a Excel Shortcuts complete list for you to use Excel better, this list has 242 excel keyboard shortcuts which means that it covers almost everything that can be done using shortcuts in Excel.




Full List of Excel Formulas

This is a complete alphabetical list of all the Formula in Excel with a description. You can learn all these formulas on www.Myelesson.org




Convert Numbers to Text in Excel

Now easily convert numbers to Text in Excel with this inbuilt sheet from myelesson.org .  Many times we need the amount in figures to be converted into words. This is a typical requirement for writing checks or any other financial reports. Microsoft Excel does not have standard function available for this requirement. Just download this sheet and then you can convert any number to text in Excel.




List of Most Commonly Asked Excel Questions in Interviews

Here is the list of most asked excel related questions in interviews.  Prepare for this excel questions and you would be able to most of the excel interviews. This list of excel questions covers excel formula, excel analysis, excel reporting, excel charts and more.





Myelesson © 2010 - 2014. All rights reserved.

Do You Want to Become a Expert in Excel ?
Buy The Full Excel Course Now
Enter Your Details & We Will Contact You
Great Choice
Thank You
Ok
Do You Want to Become a Expert in Excel ?
Buy The Full Excel Course Now
Enter Your Details & We Will Contact You
Great Choice
Thank You
Ok