The right product but the wrong month
Use the month header position as the third INDEX argument. A fixed column number will not survive reordered headers.
Step-by-step guide · read-only ·
Loading your interactive spreadsheet…
Preparing the worksheet and formulas…
In G5, retrieve net units for the product in G2 and month in G3. Match text without regard to case, use the first occurrence of a repeated label, and return Not found if either label is absent. Preserve zero and negative results.
Follow the highlighted cells. Switch to Your turn to edit. Answer cell: G5. Browser calculations may differ from your Excel version.
Practice stays on this device. No worksheet data is uploaded.
Use two labels to retrieve net units from a small matrix, even after rows and month columns move.
One XMATCH locates the product row and another locates the month column. INDEX retrieves their intersection. IFNA supplies the missing-label message for #N/A and leaves other calculation errors visible.
=IFNA(INDEX(B2:D5,XMATCH(G2,A2:A5,0),XMATCH(G3,B1:D1,0)),"Not found")The formula uses the interactive worksheet above. Adjust ranges and criteria for your own data.
Each XMATCH returns a position within its own lookup range. Those positions must correspond to the rows and columns of the INDEX rectangle. Moving the lookup labels without moving their associated numeric values would change the data itself.
Repeated labels select the first matching row and first matching column. Spaces remain significant. This exercise requires nonempty text labels and numeric matrix values; blanks, text observations and booleans in the matrix are outside its supported inputs.
The variation datasets move both products and month headers. A formula hard-coded to a row or month number can succeed on the first table and fail the full check.
A2:A5 names the rows; B1:D1 names the columns. B2:D5 contains the numeric values. Keep the two position searches relative to this same rectangle.
XMATCH returns a one-based position in A2:A5. Exact mode 0 treats the query as a literal label. The first matching spelling wins, regardless of letter case.
Search the header row independently. A month that moves from the second column to the third should still be found by its label.
Pass the row position and column position to INDEX. A zero result is a real value. Negative net units can represent returns and stay negative.
Try a product or month outside the table. IFNA converts only #N/A to Not found. Other errors, including an unrecognized function or an invalid reference, remain visible for diagnosis.
Use the month header position as the third INDEX argument. A fixed column number will not survive reordered headers.
Do not use IF(result,...). Zero and negative numbers are valid results in this table.
Search A2:A5 for the row position, not A1:A5. The numeric rectangle also starts on row 2.
Not found means that XMATCH returned #N/A. A #NAME? or #REF! result needs investigation. Replacing IFNA with IFERROR can hide an unsupported function or broken reference.
Browser checks cover the supplied task rules, datasets, grading and downloads. On October 17, 2026, this Mac Excel opened the workbook without a repair prompt but did not recognize XMATCH; native recalculation has not passed. Excel editing and saving are unavailable until activation. Google Sheets remains unverified.
Content version 2. Practice checks compare calculated results across different datasets; they do not certify every possible formula.