![]() |
Microsoft Excel 2007 - VLOOKUP statement |
Retrieving specific information from a spreadsheet using a Combo Box and the VLOOKUP Function You can click here to get an example starting spreadsheet. Step 1: Create a Combo Box which uses values from another worksheet Create a Combo box to select a name of a student whose details you want to bring up in the page. To do this
Sheet1!$B$8:$I$14 Sheet1! Identifies the link to the first worksheet, and $B$8:$I$14 is the range with absolute referencing.
Once this is completed, you should be able to click on the Combo box and see the list of all the names of the students. Notice that when a name is selected, a cell link value appears in cell E4 which corresponds to the student number (the left most column of the table).
Step 2: Use VLOOKUP to retrieve specific values from another worksheet Once a name has been selected from a drop down list, you want the grades for Test A, Test B and telephone details to automatically appear. To do this, you will use an Excel lookup function called VLOOKUP . This function is used to retrieve information stored in a worksheet elsewhere in the workbook. You can use this starting spreadsheet to practise this. When you use VLOOKUP, you need to enter 3 different cell ranges for it to work:
Your formula would look like this (you will need to replace the writing in the brackets with the real information from your spreadsheet). =VLOOKUP (lookup_value, table_array, col_index_num) In the example spreadsheet do the following:
When you choose “Fazal” as the student whose details you want to see, the following information should appear:
Tip: you can make the cell link value in E4 invisible by making it the same colour as the background.
|
Copyright
Microsoft, SchoolNet SA All Rights Reserved. |