0
0
Excelspreadsheet~10 mins

Merging queries (joins) in Excel - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the formula to merge two tables by matching IDs using VLOOKUP.

Excel
=VLOOKUP(A2, [1], 2, FALSE)
Drag options to blanks, or click blank then click option'
ATable2!A:B
BTable1!A:B
CSheet1!C:D
DData!B:C
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong table range that does not contain the lookup values.
Forgetting to set the last argument to FALSE for exact match.
2fill in blank
medium

Complete the formula to merge two tables using INDEX and MATCH to find the price for a product ID.

Excel
=INDEX(Table2!B:B, MATCH([1], Table2!A:A, 0))
Drag options to blanks, or click blank then click option'
AC2
BA2
CB2
DD2
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong cell reference for the lookup value.
Not using 0 as the third argument in MATCH for exact match.
3fill in blank
hard

Fix the error in the formula to merge two tables by correcting the range reference.

Excel
=VLOOKUP(A2, [1], 3, FALSE)
Drag options to blanks, or click blank then click option'
ATable2!A:C
BTable2!B:C
CTable1!A:C
DSheet1!B:D
Attempts:
3 left
💡 Hint
Common Mistakes
Starting the range from column B excludes the lookup column.
Using a range from the wrong sheet or table.
4fill in blank
hard

Fill both blanks to create a formula that merges two tables and returns the product name for a matching ID.

Excel
=INDEX([1], MATCH(A2, [2], 0))
Drag options to blanks, or click blank then click option'
ATable2!B:B
BTable2!A:A
CTable1!A:A
DTable1!B:B
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the INDEX and MATCH ranges.
Using ranges from the wrong table.
5fill in blank
hard

Fill all three blanks to create a formula that merges two tables and returns the price if the quantity is greater than 10.

Excel
=IF(B2 [1] 10, INDEX([2], MATCH(A2, [3], 0)), "")
Drag options to blanks, or click blank then click option'
A>
BTable2!B:B
CTable2!A:A
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong comparison operator.
Mixing up the INDEX and MATCH ranges.
Forgetting to handle the false condition in IF.