USING VLOOKUP FUNCTION
-
Upload
ruffson-panganiban -
Category
Education
-
view
265 -
download
2
Transcript of USING VLOOKUP FUNCTION
![Page 1: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/1.jpg)
![Page 2: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/2.jpg)
PURPOSE
![Page 3: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/3.jpg)
VLOOKUP is an Excel
function that can pull data from one worksheet to another, based
on a primary key.
![Page 4: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/4.jpg)
Ex: given a spreadsheet of usage data and a spreadsheet of pricing
data, prices can be pulled into the usage spreadsheet using the
ISSN for each item.
![Page 5: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/5.jpg)
Definitions
![Page 6: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/6.jpg)
Source spreadsheet
![Page 7: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/7.jpg)
the spreadsheet from which
you will pull data (in our example, the pricing data)
![Page 8: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/8.jpg)
Destination spreadsheet
![Page 9: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/9.jpg)
the spreadsheet into
which you are adding data (the usage data)
![Page 10: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/10.jpg)
Primary key
![Page 11: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/11.jpg)
the column that uniquely identifies each row and is
present in both spreadsheets (the ISSN)
![Page 12: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/12.jpg)
Source table
![Page 13: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/13.jpg)
the subset of the spreadsheet
that contains both the primary key column and all columns from which you are pulling
information
![Page 14: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/14.jpg)
KEY POINTS
TO REMEMBER
![Page 15: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/15.jpg)
Decide what column you are going to use for your
primary key
![Page 16: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/16.jpg)
Identify your source table
![Page 17: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/17.jpg)
Make sure that your primary key column is the left-most column of your source table. This might involve moving
some columns around
![Page 18: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/18.jpg)
Source Table Primary Key Column
![Page 19: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/19.jpg)
Copy the column titles for your source table from the source spreadsheet to the destination spreadsheet.
![Page 20: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/20.jpg)
Using VLOOKUP
![Page 21: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/21.jpg)
Click on the first cell of the first column in your destination spreadsheet where you would like to insert data from your source spreadsheet.
![Page 22: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/22.jpg)
![Page 23: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/23.jpg)
From the Formulas tab, under Lookup & Reference, choose VLOOKUP
![Page 24: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/24.jpg)
![Page 25: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/25.jpg)
The Function Arguments
window opens. Click on the first input box
(lookup_value), then click the box in your DESTINATION
sheet that contains the PRIMARY KEY for that row.
![Page 26: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/26.jpg)
Primary
Key
![Page 27: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/27.jpg)
Click in the Table_array box,
then switch to the source worksheet and select the entire
source table. You can now hand-edit the
selection further if you need to in the box.
![Page 28: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/28.jpg)
![Page 29: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/29.jpg)
In the col_index_num box, put the column number that you want to
pull data from in the source spreadsheet, not the letter.
For example, if you want data from Column D, and your Primary Key
(first column of your source table) is in Column B, you’ll put in 3.
(column B is 1, C is 2, D is 3).
![Page 30: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/30.jpg)
For Range_lookup, enter “FALSE” to indicate that only exact matches for the primary key should be returned. Click OK.
![Page 31: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/31.jpg)
![Page 32: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/32.jpg)
Once the formula is entered once, you can use fill down to finish the column, but first you need to fix some variables. Put a $ before the column (letter) label indicating lookup value. Put a $ before the column (letter) AND row (number) labels indicating source table
![Page 33: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/33.jpg)
![Page 34: USING VLOOKUP FUNCTION](https://reader035.fdocuments.net/reader035/viewer/2022062412/587e8cc71a28ab672b8b4e2f/html5/thumbnails/34.jpg)
You can now use fill-down to pull in values for the rest of the column To use the formula for other columns, copy and paste the first row, changing only the col_index_num variable, then fill-down as necessary.