Key Topics & Core Concepts

Assignment Overview & Deliverables

In this practice lab, you will configure dynamic matrix lookup models using INDEX nested with dual XMATCH functions to automate rate queries for Perfect Vacation Rentals.

Step-by-Step Instructions

Step 1: Open Starter & Review Rate Matrix

  1. Download and open PerfectRentals-06.xlsx in Excel (or continue from Practice 17).
  2. Click Enable Editing if opened in Protected View.
  3. Save the workbook as [your initials] Practice18_IndexXmatch.xlsx.
  4. Click the Matrix Rates tab.
  5. Inspect the two-dimensional rate grid in range B4:F10, where rows list Property Types (cells A4:A10) and columns list Seasons (cells B3:F3: Spring, Peak Summer, Late Summer, Autumn, Winter).

Step 2: Determine Relative Row Position with XMATCH

  1. Click the Rate Lookup tab.
  2. Review the query parameters in cells B4 (Target Property Type, e.g., "Cabin") and B5 (Target Season, e.g., "Peak Summer").
  3. In cell B7 (Row Index Finder), type: =XMATCH(B4, 'Matrix Rates'!$A$4:$A$10) and press Enter.
  4. Verify that XMATCH returns the integer index corresponding to the target property row.

Step 3: Determine Relative Column Position with XMATCH

  1. In cell B8 (Column Index Finder), type: =XMATCH(B5, 'Matrix Rates'!$B$3:$F$3) and press Enter.
  2. Verify that XMATCH returns the correct horizontal position index for the selected season.

Step 4: Combine into a Two-Way INDEX / XMATCH Formula

  1. Click cell B10 (Dynamic Nightly Rate).
  2. Enter the nested two-way lookup formula: =INDEX('Matrix Rates'!$B$4:$F$10, XMATCH(B4, 'Matrix Rates'!$A$4:$A$10), XMATCH(B5, 'Matrix Rates'!$B$3:$F$3))
  3. Press Enter.
  4. Test the dynamic lookup by changing cell B4 to "Lakeside Villa" and B5 to "Autumn" to confirm that the intersection rate updates accurately.

Step 5: Formatting, Error Shielding & Save Workbook

  1. Format cell B10 as Currency ($#,##0.00).
  2. Wrap the lookup in cell B10 with IFERROR: =IFERROR(INDEX('Matrix Rates'!$B$4:$F$10, XMATCH(B4, 'Matrix Rates'!$A$4:$A$10), XMATCH(B5, 'Matrix Rates'!$B$3:$F$3)), "Invalid Selection")
  3. Auto-fit columns to eliminate text truncation.
  4. Save your completed workbook.

Practice exercises are formative and prepare you for homework submissions. Refer to Canvas for official submission cutoff and penalty policies.

Key Skills Evaluated

Skill Area Verification Target
XMATCH Functionality Positional index calculations referencing vertical and horizontal headers.
Two-Way Matrix Retrieval =INDEX(..., XMATCH(...), XMATCH(...)) nested syntax returning exact intersection value.
Error Handling IFERROR shield preventing unhandled #N/A alerts.
Presentation Polish Clean currency formatting without column clipping or visual defects.