Back to examples

Multi-column match

Match by Two Columns: SKU and Warehouse

Noah, an ecommerce analyst, matches order rows by SKU plus Warehouse so the right regional product cost is added.

Problem

Noah prepares a margin report every Monday. The same SKU can have different costs in different warehouses, so matching by SKU alone would produce the wrong margin. He uses two matching columns together: SKU and Warehouse.

Demo Files

Main file: Store Orders

Order IDSKUWarehouseQuantitySale Price
S-501A-100West2$39
S-502A-100East1$42
S-503B-245West1$120

Lookup file: Warehouse Product Costs

SKUWarehouseProduct NameCategoryCost
A-100WestDesk LampHome$18
A-100EastDesk LampHome$21
B-245WestCarry BagTravel$62

Recommended Options

  • Trim extra spaces because exported SKUs often contain accidental whitespace.
  • Treat numbers and text as the same when SKUs may include leading zeros.

Result Preview

Result preview

Order IDSKUWarehouseQuantitySale PriceProduct NameCategoryCost
S-501A-100West2$39Desk LampHome$18
S-502A-100East1$42Desk LampHome$21
S-503B-245West1$120Carry BagTravel$62

What This Shows

  • Multi-column matching prevents false matches when one key is not unique enough.
  • Noah gets the correct regional product cost, which makes the margin report more reliable.

Related searches

vlookup multiple criteriamatch orders by sku and warehousemerge product catalog with orders

Need VLOOKUP with multiple criteria?

This example uses SKU + Warehouse as two matching criteria. See the dedicated guide and try a sample workflow built for multi-column matching.

Open multiple criteria guide

Try the same setup in SheetMatch

Upload your main file and lookup file, choose the matching columns shown above, then select the columns you want to bring into the result.

Open SheetMatch