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

4. Lookup Functions

4.1 VLOOKUP with Exact Match

VLOOKUP exact match with example — in 30 seconds

What: VLOOKUP finds a value in the first column of a table and returns a value from another column of the same row.

Why: Orders only carry a Store ID. The report needs the City. VLOOKUP brings it across without copy-paste.

Tiny example: For Store ID BLK-NSK-01, =VLOOKUP(G2,Stores!$A$2:$F$8,3,FALSE) returns Nashik (City is column 3 of the Stores table).

First look at the data (before → after):

VLOOKUP exact match with example: before and after tables, fictional FreshGo Maharashtra data

Expected result — City brought into Orders

G: Store ID P: City
BLK-NSK-01 Nashik
AMN-NGP-01 Nagpur
BLK-PUN-02 Pune

About this data: Teaching sample for a fictional shop “Maple Bakery Co”. Figures and names (e.g. Aarti Kulkarni) are made up for this lesson on vlookup with exact match.

Before table and formula as text

Before — Stores sheet (A: Store ID … E: City Manager)

A: Store ID C: City D: Area E: City Manager
BLK-PUN-01 Pune Kothrud Ravindra Bagale
BLK-PUN-02 Pune Hinjewadi Shraddha Bagale
BLK-NSK-01 Nashik College Road Zoya
AMN-NGP-01 Nagpur Dharampeth Amir
BLK-KOP-01 Kolhapur Rajarampuri Rani
AMN-SLP-01 Solapur Murarji Peth Salman
BLK-SBN-01 Sambhaji Nagar CIDCO Raja

About this data: Demo table only — not real customer or company data. Built to practise vlookup with exact match.

Formula / click path

Orders!P2: =VLOOKUP(G2,Stores!$A$2:$F$8,3,FALSE)
FALSE = exact match · 3 = third column of A:F

Do it step by step:

  1. In the Orders sheet, click P2.
  2. Type =VLOOKUP(G2, and then select Stores!A2:F8.
  3. Press F4 so the range becomes Stores!$A$2:$F$8.
  4. Type ,3,FALSE) and press Enter.
  5. Double-click the fill handle to copy down.

=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

  1. In Orders, Store ID is in column G. Click the first empty column, e.g. P2.
  2. Type =VLOOKUP(G2, then go to Stores, select A2:F8, press F4 to lock it: Stores!$A$2:$F$8.
  3. Type ,3,FALSE) (City is the 3rd column) › Enter.
  4. 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)

About this data: Made-up rows so you can copy the pattern for vlookup with exact match. Currencies may use ₹, £, € or $.

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.

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.

Loading practice tasks...

  1. City of a store (Easy): Find the City (column 3) of BLK-NSK-01.
  2. Manager of a store (Easy): Find the City Manager of AMN-NGP-01.
  3. Pharmacy: medicine name (Easy): Find the Medicine (column 2) of MED-102.
  4. Pharmacy: price (Easy): Find the price of MED-104.
  5. Use a cell (Medium): Find the Area (column 4) of the store in H2.
  6. Platform of a store (Medium): Find the Platform of AMN-SLP-01.
  7. Pharmacy: stock (Medium): Find the Stock of MED-103.
  8. Pharmacy: pack size (Medium): Find the Pack of MED-101.
  9. Year opened (Hard): Find the year (column 6) the store in H2 opened.
  10. Pharmacy: bill for 3 packs (Hard): Find the cost of 3 packs of MED-101.

Quick revision cards

Three standalone cards. Each one explains the idea with its own example. Scan the QR to open this lesson.

Revision card 1: What is Vlookup With Exact Match?
Card 1: What is Vlookup With Exact Match? · Download PNG
Revision card 2: Tiny example — Vlookup With Exact Match
Card 2: Tiny example — Vlookup With Exact Match · Download PNG
Revision card 3: Checklist — Vlookup With Exact Match
Card 3: Checklist — Vlookup With Exact Match · Download PNG