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

4. Lookup Functions

4.2 VLOOKUP Approximate Match and the Column-Index Trap

In short: Approximate match (TRUE) finds the largest value less than or equal to the lookup value.

Approximate match (TRUE) finds the largest value less than or equal to the lookup value. The first column must be sorted ascending. It is used for slabs and bands (4.9), never for IDs.

The column-index trap. col_index_num is a hard-coded number. If someone inserts a column in Stores (say Pincode after Area), column 5 is no longer City Manager – your formula silently returns the pincode.

Before insert After inserting "Pincode" as column E
=VLOOKUP(G2,Stores!$A$2:$F$8,5,FALSE) → Amir same formula → 440010 (wrong!)

About this data: Teaching sample for a fictional shop “Maple Bakery Co”. Figures and names (e.g. Neha Shah) are made up for this lesson on vlookup approximate match and the column index.

Ways to avoid it:

  1. Use MATCH for the column number: =VLOOKUP(G2,Stores!$A$2:$G$8,MATCH("City Manager",Stores!$A$1:$G$1,0),FALSE)
  2. Use INDEX + MATCH (4.4) or XLOOKUP (4.6), which point to the return column directly.

Other VLOOKUP limits: it cannot look left (return a column before the lookup column), it returns only the first match, and a col_index larger than the table width gives #REF!.

Ravindra Bagale's Tip

Many students count the columns on their fingers to write col_index_num – and when a new column is added to the table, all the reports go wrong, without any error. Instead of counting the column index by hand, find the header with MATCH, or use XLOOKUP. If an interviewer asks about "the limitations of VLOOKUP", make this your first point.

Practice task

Write a VLOOKUP that returns City Manager, insert a Pincode column in Stores, and watch it break. Rewrite it with MATCH so that it survives the insert.

Loading practice tasks...

  1. Manager with column 5 (Easy): Find the City Manager of AMN-NGP-01.
  2. FD: rate for 100 days (Easy): Find the FD rate for 100 days.
  3. FD: rate for 365 days (Easy): Find the FD rate for 365 days.
  4. Find the column number (Medium): Find the position of "City Manager" in A1:F1.
  5. Fee for ₹150 (Medium): Find the fee for an order of ₹150 from H2:I5.
  6. FD: rate for 500 days (Medium): Find the FD rate for 500 days.
  7. FD: rate for 1000 days (Medium): Find the FD rate for 1000 days.
  8. Safe lookup (Hard): Find the City Manager of BLK-KOP-01, using MATCH for the column number.
  9. Fee for ₹1,299 (Hard): Find the fee for ₹1299.
  10. FD: safe column number (Hard): Find the rate for 200 days. Find the column number by looking for the heading "FD rate %" in row 1.

Worked example — vlookup approximate match and the column index

Why

Sana Sheikh in Pune and James O'Neill abroad both need a clear, repeatable way to use vlookup approximate match and the column index on a HomeNest Supplies sheet without breaking totals.

What

Vlookup Approximate Match And The Column Index is the Excel idea this page teaches. We will walk one tiny example end to end.

How

  1. Open a blank sheet. In A1 type a short label for vlookup approximate match and the column index.
  2. Enter a small made-up value for Sana Sheikh using £ where money appears.
  3. Add a second value for James O'Neill using ₹ so you see mixed currencies stay numeric.
  4. Apply the method from this lesson step by step (menu or formula as shown above).
  5. Check the result still works inside SUM or a simple check cell.

Formula / action

Follow the formula or ribbon steps shown in this lesson (keep values numeric).
Result: The demo cell shows the expected result for HomeNest Supplies's sample row.
Meaning: Once vlookup approximate match and the column index is correct on one row, copy the same pattern down the column.

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 Approximate Match And The Column Index?
Card 1: What is Vlookup Approximate Match And The Column Index? · Download PNG
Revision card 2: Tiny example — Vlookup Approximate Match And The Column Index
Card 2: Tiny example — Vlookup Approximate Match And The Column Index · Download PNG
Revision card 3: Checklist — Vlookup Approximate Match And The Column Index
Card 3: Checklist — Vlookup Approximate Match And The Column Index · Download PNG