Data Science Grade 10
Data Science Activity 1
Objective: To demonstrate the usage of VLOOKUP to find a corresponding value (Name and Salary) based
on a given ID from a table.
1. Open Microsoft Excel and create a new blank workbook.
2. Enter the following data into cells A1:D6:
3. In cell F2, type "ID to Search:".
4. In cell G2, type the ID you want to search for, e.g., 103.
5. In cell F4, type "Name Found:".
6. In cell G4, enter the following VLOOKUP formula:
=VLOOKUP(G2, A2:D6, 1, FALSE)
This formula will search for the ID in cell G2 in the table A2:D6 and return the corresponding Name.
7. In cell F6, type "Salary Found:".
8. In cell G6, enter the following VLOOKUP formula:
=VLOOKUP(G2, A2:D6, 4, FALSE)
This formula will search for the ID in cell G2 in the table A2:D6 and return the corresponding Salary.
9. Press Enter to calculate the results.
10. Now, if you change the ID in cell G2, the corresponding Name and Salary will update automatically.
Result: When an ID is entered in cell G2, the corresponding Name and Salary should be displayed in cells
G4 and G6, respectively.
***
Page 1 of 2
Data Science Grade 10
Data Science Activity 2
Objective: To illustrate the application of VLOOKUP with an approximate match to find a corresponding
value (Grade) based on a given score from a table.
1. Open Microsoft Excel and create a new blank workbook.
2. Enter the following data into cells A1:B6:
3. In cell D2, type "Score to Search:".
4. In cell E2, type the score you want to search for, e.g., 75.
5. In cell D4, type "Grade Found:".
6. In cell E4, enter the following VLOOKUP formula:
This formula will search for the score in cell E2 in the table A2:B6 and return the corresponding Grade. The
TRUE parameter indicates an approximate match.
7. Press Enter to calculate the result.
8. Now, if you change the score in cell E2, the corresponding Grade will update automatically.
Result: When a score is entered in cell E2, the corresponding Grade should be displayed in cell E4, based
on the ranges defined in the table. For example, if the score entered is 75, the Grade found should be 'C'.
***
Page 2 of 2