Ravindra BagaleCourses & study guides मराठी Track your progress

4. Lookup Functions

Excel

4.4 INDEX and MATCH

A lookup can be divided into two small jobs: find a record's position, then retrieve a value from that position. MATCH does the first job and INDEX does the second. Understanding them separately makes the combined formula easier to build, explain and repair, including when the field you need sits to the left of the field you search.

We will use the course's fictional store directory and a small fictional student-results table. The Blinkit and Amazon Now names provide a familiar quick-commerce context; the records are teaching examples, not company data. Student names and marks are also made up. For a shorter revision after the full lesson, use the INDEX and MATCH guide.

Position first, value second: if MATCH says a code is the fifth item in the key list, INDEX retrieves the fifth item from an aligned result list. The two lists must describe the same records in the same order.

1. Start with the missing information

Connect a request with a maintained directory

An order sheet contains StoreID values. A directory contains each store's platform, city, area and manager. Your report needs the manager for each requested code. Searching manually works for one order, but it becomes repetitive when many orders arrive. A formula can express the relationship once and repeat it for each request.

You already used VLOOKUP to solve a similar problem. INDEX and MATCH lets you name the key list and the result list separately. This is useful when those fields are not conveniently arranged as the first and fifth columns of one block, or when the result is to the left of the search field. The relationship between records matters more than the physical direction of the columns.

Imagine finding a book in a numbered list. First you locate its position in a list of book codes. Then you read the title from the corresponding position in a title list. The method works only if the code and title lists have stayed aligned. Sorting one list independently would attach the wrong title to a code even though both lists still contain valid text.

Describe the source's row meaning

  • One directory row represents one store in this current teaching list.
  • StoreID identifies that store for the basic lookup.
  • A requested store may appear many times in an orders report.
  • The source directory should contain one authoritative row per StoreID for this exercise.
  • A manager, city or area can be a shared attribute rather than a unique identifier.
  • The lookup enriches the request; it does not remove unmatched requests or aggregate them.

This distinction becomes important when you reverse a lookup. Several stores can belong to the same city, and several people can share a name. A function can return the first qualifying result without proving that only one result exists. Before asking for one value, decide whether the question and source actually support one answer.

2. Prepare the seven-store source and request cells

Use the known course records

Create a worksheet named Stores with the following data in A1:F8. The first five fields match the earlier store exercises. This lesson's sixth field records a fictional opening year. The formulas initially return from column E, so each field's stated location matters.

Stores!A1:F8 — fictional directory
StoreIDPlatformCityAreaCityManagerOpenedYear
BLK-PUN-01BlinkitPuneKothrudAbhishek Shinde2022
BLK-PUN-02BlinkitPuneHinjewadiPriyanka Shinde2023
BLK-NSK-01BlinkitNashikCollege RoadZoya2023
AMN-NGP-01Amazon NowNagpurDharampethAmir2024
BLK-KOP-01BlinkitKolhapurRajarampuriRani2024
AMN-SLP-01Amazon NowSolapurMurarji PethSalman2025
BLK-SBN-01BlinkitSambhaji NagarCIDCORaja2025

Create another worksheet named Requests. Put StoreID in G1, Position in P1 and CityManager in Q1. Enter BLK-KOP-01 in G2, AMN-SLP-01 in G3 and BLK-SBN-01 in G4. The gap between the request and outputs leaves room for other fields in a larger report; you do not need to fill the unused cells.

Predict the result using the list positions

Count the data cells in Stores!A2:A8 starting with one at A2. BLK-KOP-01 is the fifth item, AMN-SLP-01 is the sixth and BLK-SBN-01 is the seventh. Their managers are Rani, Salman and Raja. Write those expected results in a note before entering a formula.

The fifth item happens to occupy worksheet row 6 because the source starts at row 2. This is the first important correction to the phrase “MATCH gives the row number”. MATCH gives a relative position in the selected list. You can use that position as an INDEX row argument, but it is not automatically the worksheet's row number.

Positions and worksheet addresses are different
Requested codePosition in A2:A8Worksheet cellExpected manager
BLK-KOP-015A6Rani
AMN-SLP-016A7Salman
BLK-SBN-017A8Raja

3. Test MATCH on its own

Find the request's position

In Requests!P2, enter the formula below. It should return 5 for the first requested code.

=MATCH(G2,Stores!$A$2:$A$8,0)

G2 supplies the code to find. Stores!A2:A8 is the one-column key list. The final zero requests an exact match. The fixed source addresses keep the same directory rows selected when the formula is copied down. Copy P2 to P3 and P4, then confirm the outputs are 6 and 7.

MATCH returns a position rather than the code, city or manager. That number is useful because it identifies where the corresponding record sits in an aligned result list. If the first stage returns the wrong position, investigate the key and source before trying to repair INDEX.

Make the match mode explicit

MATCH has three traditional match modes. Zero requests the first exact match and does not require sorting. One, which is also the default when omitted, selects the greatest qualifying value no greater than the request from an ascending list. Minus one selects the smallest qualifying value no less than the request from a descending list.

The store codes are identifiers. Another code that sorts nearby is not an acceptable substitute. Use zero explicitly. A formula with a missing match-type argument may still return a position, but that result does not prove it found the requested store. Read the function's argument choices rather than assuming it shares another lookup function's defaults.

  • Use one key column for this MATCH expression.
  • Exclude the heading so the first data record has position one.
  • Fix both source endpoints before copying.
  • Use zero for the exact store identifier.
  • Check a first, middle and last source key.
  • Keep a missing key visible as an unresolved request.

Check a missing input without changing the rule

In a scratch request cell, use BLK-XXX-99, which does not appear in the source. The exact MATCH should return #N/A. Do not change zero to one to make a number appear. That would change the question from “find this identifier” to an approximate search with different requirements.

If a code that should exist returns #N/A, compare the actual input and source text, not only their appearance. Extra spaces, a text-versus-number mismatch in other datasets, an excluded last row or a different source file can cause the failure. Keep the original value available while investigating instead of silently rewriting identifiers.

4. Retrieve a value with INDEX

Read a known position before nesting functions

In a spare cell, enter =INDEX(Stores!$E$2:$E$8,5). This returns Rani, the fifth value of the selected manager list. INDEX does not search for BLK-KOP-01 in this expression. You have supplied a position directly, and INDEX retrieves the value at that position.

The manager list begins at E2, so its fifth item is E6. That aligns with the StoreID list beginning at A2, whose fifth item is A6. Both position-five cells belong to the same source row. This is the connection that makes the two-function lookup meaningful.

Use the visible MATCH result as the position

In Requests!Q2 enter the formula below, then fill through Q4. P2 already contains the MATCH result, so the formula is easy to inspect one stage at a time.

=INDEX(Stores!$E$2:$E$8,P2)

The outputs should be Rani, Salman and Raja. When copied down, P2 becomes P3 and P4, while the manager source stays fixed. If P3 is 6 but Q3 is not Salman, inspect the INDEX range and its order. The intermediate position gives you evidence about which stage needs attention.

Put the two stages into one formula

=INDEX(Stores!$E$2:$E$8,MATCH(G2,Stores!$A$2:$A$8,0))

Replace Q2 with this combined form if you want a single output formula, then copy it through Q4. The inner MATCH still computes a position. INDEX still retrieves the manager at that position. Combining the expressions changes where the intermediate result is written; it does not change the underlying logic.

Read the formula from the inside out while learning. First ask what MATCH will produce for G2. Then replace that inner expression mentally with the number five and read INDEX. This makes the parentheses useful structure instead of a string of punctuation to memorise.

MATCH locates BLK-KOP-01 at position five in A2:A8. INDEX retrieves Rani from position five in E2:E8. Both positions refer to source row six.
The shared position connects two aligned lists. It is not a permanent identifier for the store.

5. Keep the key list and result list aligned

Equal lengths alone are not enough

Suppose MATCH still searches A2:A8, but INDEX is accidentally changed to E3:E9. Both ranges contain seven cells, yet they start on different source records. Position five now points to E7, which contains Salman. BLK-KOP-01 can therefore return a plausible manager name belonging to another store.

The formula may not show an error because position five exists in both lists. Its failure is semantic: the fifth values no longer describe the same record. Check the start row, end row and record order of both ranges. Matching dimensions are necessary for the intended pairing, but they do not prove the pairing is correct.

Move whole records when sorting

Sorting the complete directory by City can change each store's position while preserving the relationships among its fields. MATCH recalculates the new position for the requested StoreID, and INDEX retrieves from the corresponding manager position. Sorting only the manager column destroys that relationship even though every manager name remains present.

Positions are therefore temporary results of the current source arrangement. Do not copy a MATCH result as a permanent identifier and later reuse it after the source is reordered. Keep the formula linked to the current key list, or use a stable record identifier when you need a durable reference.

  • Start both ranges on the same source record.
  • End both ranges on the same source record.
  • Keep the record order consistent across all source fields.
  • Sort or filter the whole source table rather than one field alone.
  • Recalculate positions after a legitimate source reorder.
  • Verify the actual key and returned field for at least one known record.

When the lists come from different files, matching row numbers is not enough. The fifth row in one export may describe a different store from the fifth row in another. First establish a reliable shared-key relationship or prepare a reconciled table. INDEX and MATCH assumes the return list's position corresponds to the position found in the searched list.

6. Search one field and return another in either direction

Find a store code from an area

The Area field is in column D, while StoreID is in column A. To retrieve a code from a known area, search D2:D8 and return from A2:A8. The return column lies to the left of the searched column, but the two ranges still have the same row alignment.

=INDEX(Stores!$A$2:$A$8,MATCH("Dharampeth",Stores!$D$2:$D$8,0))

Dharampeth is the fourth area in the selected list, so the result is the fourth StoreID, AMN-NGP-01. INDEX does not need the return column to be on a particular side of the search column. You have explicitly supplied the return range instead of describing its column position inside one larger block.

Check whether the reverse search has one answer

In this small dataset, Dharampeth occurs once. A larger source could contain several stores in the same area. Before using an area as a single-result search key, count its occurrences or use a more specific identifier. A returned store code does not prove the area is unique.

The same issue applies to managers. A manager could oversee several stores, or two people could share a name. Searching for Rani returns BLK-KOP-01 in this teaching directory because that name appears once. It is a useful left-lookup exercise, not a universal recommendation to use a person's name as a unique business key.

=INDEX(Stores!$A$2:$A$8,MATCH("Rani",Stores!$E$2:$E$8,0))
  • Identify the field you know and the field you need.
  • Search only the known field's aligned data range.
  • Return from the needed field's corresponding range.
  • Check whether the known value uniquely identifies one source row.
  • Keep multiple-match situations available for review instead of silently choosing one.
  • Use a filtering or aggregation approach if the actual question asks for many records or a total.

7. Lab 1 — enrich three store requests and test the relationship

Return several fields from one checked position

Keep the three requested codes in G2:G4 and the independently visible MATCH formulas in P2:P4. Put Platform in R1, City in S1 and Area in T1. Use the following formulas in R2, S2 and T2 respectively, then fill each through row 4.

=INDEX(Stores!$B$2:$B$8,$P2)
=INDEX(Stores!$C$2:$C$8,$P2)
=INDEX(Stores!$D$2:$D$8,$P2)

The dollar sign in $P2 fixes the position column while allowing the row to change. Each output uses the same matched record but a different result field. This makes the report easier to audit: P2 tells you which source position all the first request's attributes should describe.

Expected enriched store requests
StoreIDPositionManagerPlatformCityArea
BLK-KOP-015RaniBlinkitKolhapurRajarampuri
AMN-SLP-016SalmanAmazon NowSolapurMurarji Peth
BLK-SBN-017RajaBlinkitSambhaji NagarCIDCO
  1. Verify that the three position values are 5, 6 and 7.
  2. Check every returned attribute against the corresponding complete source row.
  3. Change G2 temporarily to BLK-NSK-01.
  4. Predict position 3, manager Zoya, platform Blinkit, city Nashik and area College Road.
  5. Confirm all those outputs change together, while the other two request rows remain unchanged.
  6. Restore BLK-KOP-01 after recording the result.
  7. Put BLK-NSK-01 in J1 and return its Area in J2 using J1 as the input; expect College Road.
  8. Use a separate scratch formula to find the StoreID for manager Raja; expect BLK-SBN-01.

The requested Area formula for J2 is =INDEX(Stores!$D$2:$D$8,MATCH(J1,Stores!$A$2:$A$8,0)). The Task Hub may place its input selector in a different cell. Follow the addresses stated by the exercise you are using; the underlying key-position-result relationship is the same.

Check column insertion without claiming immunity to every edit

Save an experiment copy and insert a whole worksheet column before E on Stores. The manager field moves from E to F. Excel normally adjusts direct references to the moved cells during that insertion, so the INDEX manager range should become F2:F8 and the known results should remain correct. Inspect the formula rather than assuming the adjustment happened as intended.

This is a practical advantage over a hard-coded VLOOKUP return number, but it is not a promise that every source change is harmless. Deleting the referenced manager column can produce #REF!. Replacing a file, pasting fields into a different layout or sorting one range independently can still invalidate the relationship. Test the kind of edit your workflow actually performs.

Introduce one misalignment on a disposable copy

With the original source layout restored, change only the manager return range in a scratch formula from E2:E8 to E3:E9. For BLK-KOP-01, MATCH still returns 5, but INDEX now returns Salman. Restore E2:E8 and confirm the result returns to Rani. This deliberate failure shows why a plausible name is insufficient evidence of a correct lookup.

8. Trace a lookup without hiding the intermediate result

Follow AMN-SLP-01 to its manager

  1. Read the requested key

    The request is AMN-SLP-01. The source key list is Stores!A2:A8 and describes seven store records in their current order.

  2. Find the relative position

    Exact MATCH finds the code at position six. Its worksheet address is A7, because the data list begins at row two.

  3. Use an aligned return list

    The manager range E2:E8 begins on the same first store and ends on the same last store. Its sixth position is E7.

  4. Read and verify the value

    E7 contains Salman. Check the full source row to confirm the code, Solapur city, Murarji Peth area and manager belong together.

Repeat this sequence for the first source store and the last source store. Those edge checks are useful because a range shifted by one row may still work for several middle records. The ability to explain both endpoints helps you catch a copy or range-extension mistake before it affects a larger report.

9. Lab 2 — retrieve fictional student results

Prepare a complete four-row result list

Create a worksheet named Students. Put the following table in A1:D5. Each data row represents one fictional student result in this single examination. RollNo is the stable identifier used by this exercise; names and marks are attributes, even though some practice requests deliberately search those attributes.

Students!A1:D5 — invented results for lookup practice
RollNoStudentClassMarks
101Isha Shinde9A91
102Shahrukh9B78
103Ravina9A85
104Salman9B69

First find Ravina's position with =MATCH("Ravina",Students!$B$2:$B$5,0). Expect 3. Then retrieve the second mark with =INDEX(Students!$D$2:$D$5,2). Expect 78. These two checks practise each function independently before combining them.

Build the requested result lookups

=INDEX(Students!$D$2:$D$5,MATCH("Salman",Students!$B$2:$B$5,0))
=INDEX(Students!$C$2:$C$5,MATCH("Shahrukh",Students!$B$2:$B$5,0))
=INDEX(Students!$A$2:$A$5,MATCH(85,Students!$D$2:$D$5,0))

The first returns Salman's marks, 69. The second returns Shahrukh's class, 9B. The third searches the Marks column and returns the RollNo to its left, 103. The third request has one answer in this sample because only one student scored 85. That uniqueness belongs to the data, not to the formula.

Student lookup controls
RequestExpected result
Position of Ravina in B2:B53
Second value in D2:D578
Marks of Salman69
Class of Shahrukh9B
RollNo of the 85 scorer103
Marks for RollNo 10191
  1. Check the four original records and confirm that each RollNo appears once.
  2. Run the two standalone position and value formulas.
  3. Run the three combined formulas and compare every answer with its source row.
  4. Build a RollNo-based marks lookup for numeric 101 and confirm 91.
  5. Add the four marks directly; the total is 323 and their average is 80.75.
  6. Temporarily change Salman's mark from 69 to 74 in an experiment copy.
  7. Confirm his lookup changes to 74, the total becomes 328 and the average becomes 82.
  8. Restore 69 and confirm all baseline results return.

The total and average are independent source checks, not values produced by the single-result lookup itself. Keep retrieval and aggregation separate. To ask for all marks in class 9A, you need to identify multiple qualifying records; a single exact MATCH does not return that complete set.

Introduce a duplicate name without overwriting a student

In a separate experiment copy, append a fifth record at row 6: RollNo 105, Student Ravina, Class 9C, Marks 88. Extend the relevant ranges to row 6. Now the name Ravina appears twice, while the two students have distinct identifiers. Exact MATCH on the name returns the first occurrence, so a name-based marks lookup can still return 85.

That answer describes one matching student, not both students. Count the occurrences of Ravina and confirm two. Then search numeric RollNo 105 in A2:A6 and return from D2:D6; the expected result is 88. This comparison demonstrates how a stable unique key resolves an ambiguity that a name alone cannot.

Two fictional students share the name Ravina: roll number 103 has 85 marks and roll number 105 has 88. A name search has two candidates; a unique roll number identifies one.
A successful first match can hide a second valid record. Choose a key that expresses the intended identity.

Restore the four-record baseline after the duplicate experiment. If you repeat the exercise with two students scoring 85, the same ambiguity appears in a marks-based reverse lookup. A score is a measurement and is not normally a unique student identifier.

10. Diagnose missing, duplicated and incomplete results

Separate the number of matches from the returned value

For the plain StoreID values in this lesson, =COUNTIF(Stores!$A$2:$A$8,G2) can show how many source keys match the request. Zero means the relationship was not found; one is consistent with the directory's uniqueness rule; more than one needs investigation. Even one matching record can have an incomplete manager field, so check the requested attribute as well.

An empty manager cell can lead to a zero-looking INDEX result. That does not establish that the store's manager is literally zero. The key lookup succeeded, but the attribute is unavailable. Keep a review status and inspect the matched source record. A missing key and a matched row with a blank field are different problems.

Do not turn a missing position into zero

A tempting shortcut is to wrap MATCH in IFERROR and substitute zero, then feed that zero to INDEX. Zero has a special meaning in some INDEX forms: it can request an entire row or column rather than a single found item. It is not a safe general-purpose marker for “record not found”.

Handle the missing relationship explicitly before attempting the single-value retrieval, or apply a narrowly appropriate message to the completed lookup after verifying the source. IFNA can catch #N/A, but a broad message around a complex formula can still conceal which stage failed. During learning, keep the standalone MATCH result visible until you understand the cause.

Keep matching assumptions visible

Ordinary MATCH text comparisons do not distinguish uppercase from lowercase. Exact mode also recognises wildcard characters in text searches. For the simple codes here, neither behaviour creates ambiguity. If a real identifier is case-sensitive or contains literal asterisks and question marks, use an appropriate exact-character strategy and test it; do not assume the final zero guarantees that interpretation.

Dates and numbers also need compatible stored types. Numeric RollNo 101 and a text identifier containing the characters 101 should be reviewed under the source's identifier rules. Converting a code to a number can destroy significant leading zeros. Fix a type mismatch by understanding the field, not by stripping characters until the lookup returns something.

11. Make the lookup understandable as the workbook grows

Extend the related ranges together

A fixed range ending at row 8 excludes a new store pasted into row 9. If the report should include that store, extend both the key range and every corresponding return range. Extending only the key range can produce a position that lies beyond a shorter return list, while extending only the result range leaves the new key undiscoverable.

An Excel Table can help keep related fields together and include appended records in its structured references. It still needs a reviewed source schema and meaningful keys. After an append, check the row count, a known old record and the newly added record. Successful expansion means the intended records are included, not merely that the table acquired another coloured row.

Keep every request visible during review

Extend the Requests exercise by putting BLK-XXX-99 in G5, leaving the directory unchanged. Fill the position and result formulas into row 5. There are now four requests, three resolved store relationships and one missing relationship. The report should still contain four request rows. Removing the missing row would hide an input that someone still needs to investigate.

Count requests independently from successful lookups. A report can state “four requests received, three matched, one needs source review”. If the first three managers display correctly, that statement still prevents a reader from assuming every request was completed. Restore the original three-row baseline after this review exercise.

If the source key exists but its manager is blank, keep that as a separate condition. The relationship count may be one while the requested attribute remains incomplete. A useful report distinguishes unmatched keys, duplicated keys and incomplete fields because each condition requires a different repair. A single generic success count cannot describe all three.

Read the stored value before changing its appearance

Number formatting belongs to the destination cell and can change how a returned numeric value looks. If a retrieved opening year appears as a currency or date, inspect the raw result and destination format before rewriting the lookup. Conversely, giving an incorrect result an attractive format does not repair its source relationship. Keep labels, stored values and display choices as separate checks.

Reuse a position when it improves clarity

In the first lab, one MATCH result feeds manager, platform, city and area outputs. That avoids writing the same search expression separately in every output and gives the learner one visible intermediate result to inspect. It can reduce repeated search work, but it is not a universal performance guarantee for every Excel version and workbook design.

For larger files, use suitably bounded ranges or maintained Tables, inspect calculation time and avoid changing many variables at once. A workbook can be slow because of excessive ranges, volatile formulas, external connections or unrelated dependencies. Do not assume replacing every VLOOKUP with INDEX and MATCH automatically fixes those issues.

Recognise the next level without skipping the basics

INDEX can return from a two-dimensional block using both a row and a column position. A later lesson uses one MATCH for the entity and another for the field or period. The idea is the same as this lesson: find the required position, then retrieve from an aligned structure. Learn the single-column version first so each added position has a clear purpose.

INDEX and MATCH are documented across many current and older desktop editions and Excel for the web. Their ordinary single-result use here does not require a dynamic-array formula or a special array-entry shortcut. More advanced constructions can behave differently across versions. Check the exact formula you plan to share rather than claiming that every possible INDEX construction works identically everywhere.

12. Test the decisions before opening the answers

1. MATCH returns 5 for a key in A2:A8. Which worksheet cell matched?

A6 matched. A2 is position one, so the fifth item is four rows below it. MATCH returns a position relative to the searched range, not an absolute worksheet row number. INDEX can use that five to retrieve the corresponding fifth item from an aligned return list.

2. Why can A2:A8 and E3:E9 produce a wrong result despite equal lengths?

They begin on different records. Position five in the key list refers to source row six, while position five in the manager list refers to source row seven. Both positions exist, so a plausible value can be returned without an error. Align the actual records as well as the range sizes.

3. Which argument should MATCH use for an exact StoreID?

Use zero as the third argument. Omitting it defaults to approximate matching with an ascending-order requirement. The code is an identifier, so a nearby-sorting code is not a valid substitute. Confirm a known, missing and edge-position request when checking the formula.

4. Can this pattern return a StoreID from a manager field to its right?

Yes. MATCH can search the manager range E2:E8 while INDEX returns from the aligned StoreID range A2:A8. Physical left-versus-right direction does not prevent the lookup. You still need to confirm that the manager value identifies one intended record; multiple stores under one manager would require another approach or a more specific key.

5. After adding the second Ravina, does the returned 85 prove there is only one match?

No. Exact MATCH returns the first matching position, so a second Ravina can remain hidden from the single-value output. The name count is two in the experiment. Searching the unique numeric RollNo 105 identifies the new student and returns 88 instead.

6. Is zero a safe replacement for a failed MATCH inside INDEX?

No. Zero can have an array-selection meaning for INDEX and is not simply a harmless “not found” position. Keep the missing-key state explicit and investigate it before retrieving a value. Avoid converting a meaningful lookup failure into an unrelated row or column result.

13. Practise a clear interview explanation

1. Explain INDEX and MATCH without starting with the syntax.

I split the task into finding a record's position and reading an attribute from the corresponding position. In the store example, exact MATCH locates BLK-KOP-01 as the fifth key, then INDEX reads Rani from the fifth manager cell. The key and manager ranges must describe the same records in the same order.

2. Describe a benefit over a hard-coded VLOOKUP return index.

I can identify the return field directly and search a different aligned field, including one to its right. A normal worksheet-column insertion can adjust the direct return reference rather than leaving a literal column number attached to a different field. I still inspect formulas and known outputs after structural edits, because deletion or source misalignment can break the relationship.

3. How would you troubleshoot a believable but incorrect manager?

I would inspect MATCH alone, compare its position with the source key and then inspect the same position in the INDEX range. I would check range starts, ends and ordering, plus any recent partial-column sort or paste. A believable name is not evidence that it belongs to the requested store.

4. How would you retrieve several fields for the same request?

I can keep one exact MATCH result in a helper column and use it in separate INDEX expressions for manager, platform, city and area. That makes the shared source position visible and avoids repeating the search expression. Each return range still needs the same record alignment, and the report should expose missing or duplicated keys.

5. When would a single INDEX and MATCH lookup be insufficient?

It is insufficient when the question needs all matching records, a total across matches or a choice among several versions of the same key. I would first define the intended row meaning and selection rule, then use an appropriate filter, aggregation or multi-criteria design. A first match should not silently replace a requirement for a complete result set.

14. Keep six ideas ready for recall

  • MATCH locates

    It returns the relative position of the requested item in one searched list.

  • INDEX retrieves

    It returns a value from a supplied position in the selected result structure.

  • Exact mode

    Use zero for the store codes and simple student lookups in this lesson.

  • Aligned records

    Equal lengths do not help if corresponding positions describe different records.

  • One result

    A returned value does not prove uniqueness or field completeness.

  • Change checks

    Test source edits, range growth and structural changes with predicted outputs.

For a final recall exercise, explain why AMN-SLP-01 returns position six but occupies worksheet row seven. Then explain why that six retrieves Salman only when the manager range begins with the same first store as the key range. Those two explanations capture the central mechanism and its most common hidden failure.

Official references and further practice