![]() |
|
VlookupThe format of the Vlookup function is: =Vlookup(LookupValue,Table-Range,Column-Position) LookupValue is text, a value, or most often a cell reference of the item you are looking for and should be in the first column of the Lookup table. Table-Range is the reference to the cells containing the table in which the search is to be made. This can be a range reference or a range name. If the Vlookup function is going to be copied, be sure you make the Table-Range an absolute reference. Column-Position is the number of the column in the table which contains the result you are searching for. The far left column in the table has a position of 1; the second column has the number 2, the third column is numbered 3, etc. As an example, let's use the Commission worksheet. Suppose there are five different commission rates based on different sales amounts. Look at the assumptions in rows 14 through 18. Now look at the Lookup Table I created for these assumptions in columns F and G. Notice the Sales are in the left column because we will be looking up sales to find the commission rate. Notice that the lowest value for each range is enetered You don't have to type 0-3,000 or 8,000 -9,000, only the lowest value in the range. Notice also that the Sales are listed in ascending order. Values in the leftmost column MUST be listed in ascending order. And last, the result that you are looking to find is in the second column of the table.
The formula that will be written in cell C5 is =Vlookup(B5,$F$3:$G$7,2)*B5. The LookupValue is the amount of sales in cell B5. Next, the Table-Range F3:G7 is entered. Because this formula will be copied down column C, the table-range must be made absolute. Last, the Column-Position is entered. The value 2 is used to represent the second column in the table. Then the result of the Vlookup function is multiplied by the sales in cell B5 to obtain the commission amount. You try it. Download the commission file and enter the formula in cell C5. Your results should look like this:
Here's another file for practice. Download Vlookup. The instructions are on the worksheet. Your results should look like this:
Try one more example. This time you will have to create the table also. Please do this...it's good practice!! Download this Grades file and follow the instructions on the worksheet. Your answers should look like this:
If you are having trouble with this, please e-mail
me. If you've completed these practice exercises with no problem,
you're ready to go on to your assignments.
|