Bird
Raised Fist0
Excelspreadsheet~8 mins

Why lookups connect related data in Excel - Dashboard Impact

Choose your learning style10 modes available
Dashboard Mode - Why lookups connect related data
Business Question

How can we connect sales data with product details to see product names and prices alongside sales?

Sample Data
Order IDProduct IDQuantity
1001P013
1002P035
1003P022
1004P041
1005P014

Product IDProduct NamePrice
P01Notebook2.5
P02Pen1.2
P03Eraser0.5
P04Ruler1.0
Dashboard Components
  • Sales Table with Product Details: Shows Order ID, Product ID, Quantity, Product Name, Price, and Total Price.
    Formula for Product Name (cell D2): =VLOOKUP(B2, $G$2:$I$5, 2, FALSE)
    Formula for Price (cell E2): =VLOOKUP(B2, $G$2:$I$5, 3, FALSE)
    Formula for Total Price (cell F2): =C2 * E2
  • Total Sales: Sum of all Total Price values.
    Formula: =SUM(F2:F6)
Dashboard Layout
+-----------------------------+
| Sales Table with Product     |
| Details (Order, Product, Qty,|
| Name, Price, Total Price)    |
|                             |
| +-------------------------+ |
| | Order | Prod | Qty | ... | |
| +-------------------------+ |
+-----------------------------+
+-----------------------------+
| Total Sales: $XX.XX          |
+-----------------------------+
Interactivity

Adding a filter by Product ID or Product Name will update the Sales Table and Total Sales to show only matching orders and their totals.

Self Check

If you add a filter to show only Product ID = 'P01', which orders and totals will update in the Sales Table and Total Sales?

Key Result
Connect sales orders with product details using VLOOKUP to show product names, prices, and calculate total sales.

Practice

(1/5)
1. What is the main purpose of using a lookup function like VLOOKUP in Excel?
easy
A. To format cells with colors
B. To create charts and graphs automatically
C. To sort data alphabetically
D. To find and connect related data from different tables or lists

Solution

  1. Step 1: Understand what lookup functions do

    Lookup functions like VLOOKUP search for a value in one table and return related data from another table.
  2. Step 2: Identify the purpose of VLOOKUP

    VLOOKUP connects related data by matching values, making it easier to combine information from different places.
  3. Final Answer:

    To find and connect related data from different tables or lists -> Option D
  4. Quick Check:

    Lookup connects data = A [OK]
Hint: Lookups match values to connect data quickly [OK]
Common Mistakes:
  • Thinking VLOOKUP creates charts
  • Confusing lookup with sorting
  • Assuming lookup changes cell colors
2. Which of the following is the correct syntax for a basic VLOOKUP formula to find a value in column 2 of a table located in A1:C10?
easy
A. =VLOOKUP(lookup_value, A1:C10, 2, FALSE)
B. =VLOOKUP(A1:C10, lookup_value, 2, TRUE)
C. =VLOOKUP(2, lookup_value, A1:C10, FALSE)
D. =VLOOKUP(lookup_value, 2, A1:C10, TRUE)

Solution

  1. Step 1: Recall VLOOKUP syntax

    The correct syntax is VLOOKUP(lookup_value, table_array, col_index_num, range_lookup).
  2. Step 2: Match syntax to options

    =VLOOKUP(lookup_value, A1:C10, 2, FALSE) correctly places lookup_value first, then the table range, column number 2, and FALSE for exact match.
  3. Final Answer:

    =VLOOKUP(lookup_value, A1:C10, 2, FALSE) -> Option A
  4. Quick Check:

    Correct VLOOKUP syntax = C [OK]
Hint: Remember VLOOKUP order: value, table, column, exact match [OK]
Common Mistakes:
  • Swapping lookup_value and table range
  • Using TRUE instead of FALSE for exact match
  • Putting column number in wrong place
3. Given the table below in cells A2:B5:

Name | Score
John | 85
Mary | 90
Alex | 78
Sara | 92


What will be the result of the formula =VLOOKUP("Mary", A2:B5, 2, FALSE)?
medium
A. 90
B. Mary
C. 85
D. #N/A

Solution

  1. Step 1: Locate the lookup value in the table

    The formula looks for "Mary" in the first column (A2:A5). Mary is found in A3.
  2. Step 2: Return the value from the 2nd column in the same row

    The 2nd column value in row 3 is 90, so the formula returns 90.
  3. Final Answer:

    90 -> Option A
  4. Quick Check:

    Mary's score = 90 [OK]
Hint: VLOOKUP returns value from specified column in matched row [OK]
Common Mistakes:
  • Returning the lookup value instead of related data
  • Using wrong column number
  • Getting #N/A by using approximate match
4. You wrote the formula =VLOOKUP(B2, A2:C10, 3, TRUE) but it returns incorrect data. What is the most likely problem?
medium
A. The column index number 3 is too large
B. The lookup table is not sorted, causing approximate match errors
C. The lookup value is missing from B2
D. The formula should use FALSE instead of TRUE for exact match

Solution

  1. Step 1: Understand the effect of TRUE in VLOOKUP

    TRUE means approximate match, which requires the first column of the table to be sorted ascending.
  2. Step 2: Identify common cause of wrong results

    If the table is unsorted, approximate match can return wrong or unexpected data.
  3. Final Answer:

    The lookup table is not sorted, causing approximate match errors -> Option B
  4. Quick Check:

    Approximate match needs sorted table = B [OK]
Hint: Use FALSE for exact match to avoid sorting issues [OK]
Common Mistakes:
  • Assuming TRUE always works without sorting
  • Ignoring the need for sorted data with approximate match
  • Confusing column index errors with match type
5. You have two tables: one with product IDs and names, and another with product IDs and prices. How can you use VLOOKUP to create a list showing product names with their prices?
hard
A. Use VLOOKUP to sum prices for each product
B. Use VLOOKUP to find product names by matching prices
C. Use VLOOKUP to find prices by matching product IDs in the price table
D. Use VLOOKUP to sort product names alphabetically

Solution

  1. Step 1: Identify the common key between tables

    Product IDs appear in both tables and can be used to connect names and prices.
  2. Step 2: Use VLOOKUP with product ID to get prices

    Apply VLOOKUP on the product ID from the name table to find matching prices in the price table.
  3. Final Answer:

    Use VLOOKUP to find prices by matching product IDs in the price table -> Option C
  4. Quick Check:

    Lookup by product ID connects names and prices = D [OK]
Hint: Match on product ID to combine related data [OK]
Common Mistakes:
  • Trying to lookup prices by name instead of ID
  • Using VLOOKUP to sort or sum data incorrectly
  • Ignoring the need for a common key to connect tables
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard