Supplier Price Comparison Spreadsheet Using INDEX and MATCH

A supplier price comparison spreadsheet answers one question: for each item you buy, which supplier charges least, and by how much. INDEX and MATCH answers it by reading an item code, finding the matching row in each supplier’s price list, and returning the price from the column you choose.

This guide covers the workbook structure, the formulas, the errors that produce wrong answers without any warning, and a worked example with three suppliers and four products. The formulas work in Excel and Google Sheets.

How INDEX and MATCH Works

SOP 1.1: Read the Formula From the Inside Out

The standard pattern is:

=INDEX(return_array, MATCH(lookup_value, lookup_array, 0))

MATCH does the searching and INDEX does the returning. Work through it in this order:

  1. MATCH looks for the lookup value in the lookup array and returns its position, counting from 1 at the top.
  2. INDEX takes that position and returns the value at the same position in the return array.

Take a supplier list where PAP-A4-80 sits in row 2 of column A and its price sits in column C. MATCH finds it in position 1, and INDEX returns the first value of column C. If the code sat in row 9 instead, MATCH would return 8 and INDEX would return the eighth value of column C. The formula does not care where the row sits, which is the point.

SOP 1.2: Always Set the Match Type to 0

MATCH accepts a third argument. If it is omitted, the default is 1, which means approximate match. Approximate match assumes the lookup array is sorted in ascending order, and it returns the nearest value that is less than or equal to the lookup value.

With unsorted codes, that default returns a row that is not the item you asked for, and the formula gives no error. The spreadsheet will simply show a price for the wrong product. Setting the third argument to 0 forces an exact match, and a code that is not found returns an error that you can see and act on.

The one legitimate use of approximate match is covered in SOP 6.2.

SOP 1.3: Understand Why This Pairing Is Preferred

VLOOKUP is the function most people learn first, and it can do the same job in simple cases. INDEX and MATCH is preferred for supplier comparisons for three reasons:

  • VLOOKUP can only return a value from a column to the right of the lookup column. INDEX and MATCH can return from any column, so the supplier’s column order does not constrain the layout.
  • VLOOKUP uses a column number, such as 3, that stays fixed when someone inserts a column. The result is a wrong price with no warning. INDEX and MATCH references a range, which adjusts when columns are inserted.
  • The lookup and return ranges are separate arguments, so each can be audited independently.

The trade-off is that INDEX and MATCH uses two functions, and a newcomer needs a minute to read it. That cost is small and is paid once.

Binsight Inventory Spreadsheet

Skip the setup

Binsight Inventory Spreadsheet

Stock in, stock out and reorder alerts that turn red before you run out. Uses lookups and conditional formatting.

See it on Taskdale →

Workbook Structure

Before writing any formula, decide how the price data will be held. The structure determines how easy it is to update a supplier’s list and how many formulas need changing when a supplier is added.

SOP 2.1: Choose a Data Structure

The table below compares the three structures most often used.

StructureHow it worksStrengthsLimitations
One tab per supplierEach supplier’s list sits on its own tab, pasted as receivedSimple to replace a list; easy to audit a single supplierOne formula reference per supplier; adding a supplier means editing the matrix
Single combined listAll suppliers stacked in one table with a supplier columnOne lookup range covers everyone; no per-supplier referencesLookups must match on two keys; the list grows quickly and is harder to paste into
Consolidated queryPower Query stacks the supplier lists automatically on refreshHandles large lists well; refreshes with one actionLearning curve; the transformation steps are less visible to a reviewer

For most small and mid-sized operations, one tab per supplier is the right choice. It is the easiest to maintain and the easiest to check. The rest of this manual assumes it.

SOP 2.2: Keep Each Supplier Tab in Its Received Form

Each supplier tab should hold the list exactly as the supplier sent it, with a small set of standard columns:

  • Supplier item code
  • Description
  • Unit of measure (for example, ream, each, box of 12)
  • Unit price, ex-VAT
  • Valid from (the date the list takes effect)

Do not retype or reformat the supplier’s data. If a list needs cleaning, copy it to a working area or add helper columns beside it. Keeping the original intact makes it possible to show a buyer exactly what was quoted.

SOP 2.3: Build a Master SKU List

Create one tab holding the internal codes for every item you want to compare, with a description for each. Every row of the comparison is driven from this list, so an item that is missing here will not appear in the matrix, however many supplier lists contain it.

Internal codes are the bridge between suppliers. Their codes for the same product will often differ, and the mapping between them is covered in SOP 6.1.

SOP 2.4: Standardise Codes and Units Before Comparing

Two checks come before any formula.

First, make sure codes are stored the same way everywhere. A code stored as a number in one list and as text in another will not match, even when both look like 00125. Store all codes as text, and keep leading zeros.

Second, confirm the units of measure match. A price for a box of 12 pens cannot be compared with a price for a single pen. Either convert both to a single unit, or record the unit beside the price and compare only where the units agree. The worked example in this manual keeps units as listed in each supplier’s quote, and every compared item in it is priced on the same unit basis.

Building the Comparison Matrix

SOP 3.1: Set Out the Comparison Columns

Set up the comparison tab with the following columns, in this order:

  1. Column A: Master SKU, pulled from the master list.
  2. Column B: Description, pulled from the master list.
  3. Columns C to E: One column per supplier. The header in each cell must match the supplier’s name exactly, because SOP 3.3 returns the header as the supplier name.
  4. Column F: Lowest price in the row.
  5. Column G: Supplier holding the lowest price.

Leave a single header row at the top. The matrix is easier to filter and to paste into a report when it starts at row 1.

SOP 3.2: Enter the Supplier Price Formula

In cell C2, the formula for the first supplier reads as follows. The sheet name Brightline is an example and should match the tab name exactly, with quotes if the name contains spaces.

=IFNA(IF(INDEX(Brightline!$D$2:$D$500,MATCH($A2,Brightline!$A$2:$A$500,0))="","",INDEX(Brightline!$D$2:$D$500,MATCH($A2,Brightline!$A$2:$A$500,0))),"")

The formula does three things:

  • MATCH finds the master SKU in the supplier’s code column. If it is not found, IFNA returns a blank rather than an error.
  • The inner IF checks whether the matched price cell is empty. A blank source cell would otherwise return 0, which is handled in SOP 5.1.
  • The range runs to row 500, so the matrix survives a supplier list that grows.

The formula is long because it repeats the MATCH. This is deliberate. The alternative, a helper column, is covered in SOP 3.4.

Copy the formula across to columns D and E, changing only the sheet name for each supplier.

SOP 3.3: Return the Lowest Price and the Supplier Holding It

In cell F2, enter:

=IF(COUNT(C2:E2)=0,"",MIN(C2:E2))

COUNT checks whether any supplier quoted the item at all. If none did, the cell stays blank. Otherwise MIN returns the lowest number, ignoring the blank text values that SOP 3.2 produces.

In cell G2, enter:

=IF(F2="","",INDEX($C$1:$E$1,MATCH(F2,C2:E2,0)))

MATCH finds the position of the lowest price within the row, and INDEX returns the supplier name from the header row at that same position. Note that the header row is anchored with $ so the reference does not shift when the formula is copied down.

SOP 3.4: Fill Down to a Fixed Range

Once the formulas in row 2 are correct, select C2:G2 and fill down to the last item in the master list. Confirm the supplier range references in SOP 3.2 are anchored, so each copied row still reads the full supplier list.

If the master list will grow, extend the ranges in the supplier formulas, or set them to 500 rows from the start as shown above. The cost of a longer range is negligible for a comparison of this size.

Choosing a Lookup Method

INDEX and MATCH is not the only option. The right choice depends on who else opens the file and which software version they use.

MethodAvailabilityCan look leftSafe if columns are insertedBest useMain risk
INDEX and MATCHEvery current version of Excel and Google SheetsYesYesFixed comparison matrices shared across a teamTwo-function syntax is harder to read at first
VLOOKUPEvery versionNoNo, unless the column reference is updatedQuick one-off lookupsSilent wrong results after a column change
XLOOKUPExcel 2021, Microsoft 365 and Google SheetsYesYesNew workbooks built by users on current softwareFails for anyone on an older version who opens the file
SUMIFSEvery versionNot applicableYesTotals across matching rowsAdds values; cannot return a supplier name
Power QueryExcel with Get & Transform, and Power BINot applicableYesLarge or regularly refreshed supplier listsSetup time and less visible logic

Decision rule: If the workbook will be opened by anyone on an older version of Excel, use INDEX and MATCH. If you control every copy and everyone is on Microsoft 365, XLOOKUP reads more clearly. If supplier lists are large and arrive monthly, consider Power Query for the consolidation step and keep INDEX and MATCH for the matrix.

Crumbcount Recipe Cost Calculator

Ready-made template

Crumbcount Recipe Cost Calculator

Cost every recipe down to the gram and set menu or bakery prices that cover ingredients and time.

See it on Taskdale →

Worked Example: Office Consumables From Three Suppliers

The following example uses four items and three suppliers. All prices are illustrative, in pounds sterling, ex-VAT, per unit as listed in each quote.

Step 1: Set Up the Supplier Tabs

Three tabs hold the lists: Brightline, Corva, and Northgate. Each has the same column layout, with the code in column A and the unit price in column D.

The stapler is not quoted by Corva. Its row exists in the list with the price cell left blank, which reflects how the supplier actually responded to the request.

Step 2: Build the Matrix

The comparison tab uses the formulas from Module 3. Column C refers to Brightline, column D to Corva, and column E to Northgate. The header cells read exactly as the tab names, with a space-free layout.

Step 3: Read the Results

ItemBrightlineCorvaNorthgateLowestLowest supplier
A4 paper, 80gsm, ream4.203.954.103.95Corva
Black toner cartridge38.5041.0036.9036.90Northgate
Blue pens, box of 123.103.402.852.85Northgate
Stapler, standard6.75(blank)6.206.20Northgate

The blank stapler cell from Corva shows nothing, not zero, because of the inner IF in SOP 3.2. Without that check, the stapler row would show Corva at £0.00 as the lowest price.

Step 4: Compare the Totals Correctly

Adding the columns gives three possible totals:

  • Split basket: Buy each item from its lowest supplier. That is Corva for paper, Northgate for toner, pens and staplers. The total is £3.95 + £36.90 + £2.85 + £6.20 = £49.90.
  • Northgate only: £4.10 + £36.90 + £2.85 + £6.20 = £50.05.
  • Brightline only: £4.20 + £38.50 + £3.10 + £6.75 = £52.55.

Corva cannot be totalled meaningfully. Its partial sum of £48.35 looks cheapest, but it excludes the stapler, and a partial total compared with complete totals misleads the reader. Corva’s total is only comparable once it quotes the stapler or the stapler is removed from every basket.

Step 5: Apply the Trade-Off

The split basket saves £0.15 against buying everything from Northgate. Splitting the order means two suppliers, two deliveries and two sets of terms to manage. If Corva charges a delivery fee above £0.15, the split basket costs more than the single-supplier basket once delivery is counted.

This is the decision the matrix exists to support. The formulas identify the lowest price per line. The landed cost, covered in SOP 6.5, decides whether acting on that price is worthwhile.

Checklist Before Relying on the Comparison

Work through the following before a buyer or manager acts on the output.

  1. Each supplier tab matches the list as received, and the date of receipt is recorded.
  2. Codes are stored as text, and a LEN check shows no unexpected lengths.
  3. Every compared item uses the same unit of measure across suppliers.
  4. All prices sit on the same VAT basis, and the basis is labelled.
  5. No formula returns 0.00 for a blank quote.
  6. Duplicate codes on each supplier tab have been resolved.
  7. Ties are flagged and reviewed before a decision.
  8. Any partial basket is marked as incomplete and not compared with full baskets.
  9. Net prices or landed costs are used where delivery or discounts differ.

The Practical Rule

Build the matrix with INDEX and MATCH and the exact match setting, keep each supplier’s list untouched, and treat the lowest price column as a starting point rather than an answer. The formulas are reliable when the inputs are clean. Most failed comparisons trace back to a blank cell, an unmapped code, a VAT mismatch or a stale list, and each of those can be checked before the number reaches a decision.

Profit Loom Pricing Calculator

Get the finished file

Profit Loom Pricing Calculator

Work out cost, markup, margin and platform fees for each product, so every price you set leaves a profit.

See it on Taskdale →

Scroll to Top