Use VLOOKUP in Excel to Retrieve Classroom Assignment Data
Question details
The user needs to use VLOOKUP to retrieve a related value from a data table for a classroom assignment.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- The user has a lookup value, such as a student ID or item name, and wants Excel to return information from another column in the same table.
- Observed behavior
- The correct formula depends on the lookup value cell, the source table range, the return-column position, and whether an exact or approximate match is needed.
Place the lookup value in the first column of the source table, because VLOOKUP only searches the leftmost column of its selected table range. Confirm which column contains the value you want returned before counting the return-column number.
Create an exact-match VLOOKUP formula in Excel
Use this method when each lookup value, such as a student ID or assignment code, should match one specific row in the source table.
VLOOKUP uses the syntax =VLOOKUP(lookup_value, table_array, col_index_num, FALSE). The final FALSE argument requires an exact match and is usually the best choice for classroom lists, IDs, names, and codes.
Click the cell that contains the value to search for, such as A2 if A2 contains a student ID, name, or assignment code.
Identify the table that starts with the lookup column. For example, if IDs are in column E and the data extends through column H, use the range $E$2:$H$100.
Count columns from the first column in the selected table range. In $E$2:$H$100, column E is 1, F is 2, and G is 3, so use 3 to return data from column G.
Select the result cell and enter =VLOOKUP(A2,$E$2:$H$100,3,FALSE), then press Enter. Replace A2, the range, and 3 with the references that match your worksheet.
Select the cell containing the formula and drag the fill handle down to apply the VLOOKUP formula to additional rows.

Use approximate-match VLOOKUP only for sorted value ranges
Use approximate matching when the first table column contains sorted ranges, such as score thresholds used to assign letter grades.
Fix common VLOOKUP errors in Excel
Use these checks when the formula returns #N/A, an unexpected result, or a formula error.
Use VLOOKUP for Classroom Data in WPS Spreadsheets
WPS Spreadsheets lets you create the same VLOOKUP formulas used in Excel to match student IDs, assignment codes, scores, and other table data. Open an Excel workbook in WPS Office, enter the formula in a result cell, and fill it down for the rest of your class list.
- 1. Open the workbook in WPS Spreadsheets: Launch WPS Office, select Spreadsheets, and open the .xlsx or .xls assignment workbook.
- 2. Select the output cell: Click the cell where the returned result should appear, such as B2 next to the lookup value in A2.
- 3. Enter the VLOOKUP formula: Type =VLOOKUP(A2,$E$2:$H$100,3,FALSE) in the formula bar, adjusting the cell reference, table range, and return-column number for your data.
- 4. Apply the formula to other rows: Press Enter, then drag the fill handle from the selected formula cell down through the remaining assignment rows.

Frequently Asked Questions
What do the four arguments in a VLOOKUP formula mean?
In =VLOOKUP(A2,$E$2:$H$100,3,FALSE), A2 is the value to find, $E$2:$H$100 is the source table, 3 is the column to return within that table, and FALSE requires an exact match.
Why does my VLOOKUP formula return #N/A in Excel?
#N/A usually means Excel cannot find an exact match. Check spelling, extra spaces, number-versus-text formatting, and whether the lookup value exists in the first column of the selected table range.
Can VLOOKUP return a value from a column to the left?
No. VLOOKUP searches the first column of its table range and returns data only from columns to its right. Rearrange the table, use XLOOKUP where available, or use INDEX and MATCH for a left-side return.
When should I use FALSE instead of TRUE in VLOOKUP?
Use FALSE for exact values such as student IDs, names, assignment codes, and item numbers. Use TRUE only for sorted ranges such as grading thresholds or commission bands.
How do I keep the VLOOKUP table range from changing when I copy the formula?
Use dollar signs in the table range, such as $E$2:$H$100. You can click the range reference in the formula bar and press F4 to add absolute references in Excel.




