4.1 VLOOKUP with Exact Match
=VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])
- lookup_value – what to find (e.g. the Store ID in the order row)
- table_array – the lookup table; the lookup value must be in its first column
- col_index_num – which column of the table to return (1 = first column)
- range_lookup –
FALSE(or 0) = exact match;TRUE(or omitted) = approximate
Steps in Excel – bring City into Orders
- In
Orders, Store ID is in column G. Click the first empty column, e.g. P2. - Type
=VLOOKUP(G2,then go toStores, select A2:F8, press F4 to lock it:Stores!$A$2:$F$8. - Type
,3,FALSE)(City is the 3rd column) › Enter. - Double-click the fill handle to copy down.
| Formula | Result |
|---|---|
=VLOOKUP("BLK-NSK-01",Stores!$A$2:$F$8,3,FALSE) |
Nashik |
=VLOOKUP("AMN-NGP-01",Stores!$A$2:$F$8,5,FALSE) |
Amir |
=VLOOKUP("BLK-PUN-09",Stores!$A$2:$F$8,3,FALSE) |
#N/A (not in master) |
Ravindra Bagale's Tip
The most common VLOOKUP mistake is not writing the final FALSE. Then Excel does an approximate match and gives a wrong answer that "looks right" – without any error! For an exact match, always write FALSE or 0, and put $ on the table_array.
Ravindra Bagale's Tip – मराठी
सगळ्यात common VLOOKUP चूक म्हणजे शेवटचा FALSE न लिहिणं. मग Excel approximate match करतो आणि चुकीचं पण "खरं वाटणारं" answer देतो – error पण येत नाही! Exact match साठी नेहमी FALSE किंवा 0 लिहा, आणि table_array ला $ लावा.
Ravindra Bagale's Tip – हिंदी
सबसे common VLOOKUP गलती है आख़िरी FALSE न लिखना. फिर Excel approximate match करता है और गलत पर "सही लगने वाला" answer देता है – error भी नहीं आता! Exact match के लिए हमेशा FALSE या 0 लिखो, और table_array पर $ लगाओ.
Practice task
Bring Area, City Manager and Manager Email into Orders with three VLOOKUPs. Add a Store ID that does not exist and observe the #N/A.