Why product matching comes before every price comparison
If you run an online shop, buy for a retailer or manage a brand, you have probably looked at a competitor's page and thought: "they are cheaper again". Competitor price monitoring turns that feeling into numbers: a price index, a position against the market, alerts when a rival changes a price, and a repricing rule. But every one of those numbers rests on a quiet first step that most tutorials skip: knowing that two listings are the same product.
This free first lesson is for anyone who has a spreadsheet of their own products and a list of scraped or copied competitor listings and wants to compare them properly in Excel. We use Copperleaf Outdoor, a fictional outdoor shop with eight products, and twelve listings from three fictional competitors, A, B and C. The data is exactly what you see in the lab above, including its flaws: lower-case brand names, trailing spaces, a double space inside a model name and a "20 L" that our catalogue writes as "20L".
Why does this matter so much? Because a comparison of the wrong pair is worse than no comparison at all. If shop A's 30-litre backpack is matched to our 45-litre one, your report will claim the competitor is about 24 % cheaper when the products simply differ. A repricing rule built on that error would lower your price for no reason. Good matching is not glamorous, but it is what makes the rest of a price monitoring system trustworthy.
The core idea: a normalised match key
The best possible key is a code that both shops publish: a GTIN or EAN barcode, or the manufacturer part number (MPN). If a competitor shows the barcode, match on it and you are done. In practice many listings show only a brand and a product name, written however the shop's staff or its feed happened to write them. For those listings you build a normalised match key: a text string that comes out identical for both shops whenever the product is the same.
Normalising means removing the differences that do not matter. Two functions do most of the work. TRIM removes spaces at the start and the end of a text and shrinks every run of inner spaces to a single space, so "Camp Mug 400" becomes "Camp Mug 400". UPPER converts everything to capital letters, so "trailpeak", "Trailpeak" and "TRAILPEAK" become the same word. You could equally use LOWER, the point is that both sides use the same rule.
Then you join brand and model with a separator: =UPPER(TRIM(B2))&"|"&UPPER(TRIM(C2)) gives TRAILPEAK|RIDGE 30. The separator is not decoration. Without it, brand "AB" with model "C" and brand "A" with model "BC" would both give "ABC". The pipe character "|" is a good choice because it almost never appears in product names.
Once both lists have keys, linking them is an ordinary lookup: =XLOOKUP(E12,$E$2:$E$9,$A$2:$A$9,"No match") searches the listing's key in our key column and returns our SKU, or the text "No match" when the key is not found. Finally, the match rate = matched listings ÷ all listings tells you how much of the competitor data you can actually use.
Worked example: Copperleaf Outdoor's catalogue
Start with our own side. Rows 2 to 9 of the lab hold the catalogue: SKU, brand, model and our price. In E2 enter =UPPER(TRIM(B2))&"|"&UPPER(TRIM(C2)) and copy it down to E9. Our own data is clean, so the keys look almost like the original text in capitals, but we still apply the same rule. Matching only works when both sides go through exactly the same transformation.
| SKU (A) | Brand (B) | Model (C) | Our price (D) | Match key (E) |
|---|---|---|---|---|
| CO-101 | Trailpeak | Ridge 30 | 129.00 | TRAILPEAK|RIDGE 30 |
| CO-102 | Trailpeak | Ridge 45 | 164.00 | TRAILPEAK|RIDGE 45 |
| CO-103 | Northvane | Summit Shell | 249.00 | NORTHVANE|SUMMIT SHELL |
| CO-104 | Northvane | Breeze Fleece | 89.00 | NORTHVANE|BREEZE FLEECE |
| CO-105 | Fellrock | Venture 2P Tent | 329.00 | FELLROCK|VENTURE 2P TENT |
| CO-106 | Fellrock | Trek Pole Pair | 74.00 | FELLROCK|TREK POLE PAIR |
| CO-107 | Stoneriver | Camp Mug 400 | 19.90 | STONERIVER|CAMP MUG 400 |
| CO-108 | Stoneriver | Dry Bag 20L | 24.50 | STONERIVER|DRY BAG 20L |
Worked example: the twelve competitor listings
Now the scraped side. In E12 enter the same formula pattern, =UPPER(TRIM(B12))&"|"&UPPER(TRIM(C12)), and copy it down to E23. In F12 enter =XLOOKUP(E12,$E$2:$E$9,$A$2:$A$9,"No match") and copy it down to F23. The dollar signs keep the lookup range fixed while the formula moves down. The last column below is a preview of the next lesson: once a listing is matched, you can compare its price with ours as =D12/XLOOKUP(F12,$A$2:$A$9,$D$2:$D$9)-1.
| Row | Shop | Brand (as scraped) | Model (as scraped) | Price | Match key (E) | Our SKU (F) | Gap vs our price |
|---|---|---|---|---|---|---|---|
| 12 | A | trailpeak | Ridge 30 | 124.90 | TRAILPEAK|RIDGE 30 | CO-101 | −3.2 % |
| 13 | A | "Northvane " | SUMMIT SHELL | 239.00 | NORTHVANE|SUMMIT SHELL | CO-103 | −4.0 % |
| 14 | A | Fellrock | Venture 2P Tent | 319.00 | FELLROCK|VENTURE 2P TENT | CO-105 | −3.0 % |
| 15 | A | Stoneriver | Camp Mug 400 | 18.50 | STONERIVER|CAMP MUG 400 | CO-107 | −7.0 % |
| 16 | B | TRAILPEAK | ridge 45 | 154.90 | TRAILPEAK|RIDGE 45 | CO-102 | −5.5 % |
| 17 | B | Northvane | Breeze Fleece | 84.90 | NORTHVANE|BREEZE FLEECE | CO-104 | −4.6 % |
| 18 | B | Fellrock | Trek Pole Pair | 69.00 | FELLROCK|TREK POLE PAIR | CO-106 | −6.8 % |
| 19 | B | Stoneriver | Dry Bag 20 L | 23.90 | STONERIVER|DRY BAG 20 L | No match | – |
| 20 | C | " Trailpeak" | "Ridge 30 " | 127.50 | TRAILPEAK|RIDGE 30 | CO-101 | −1.2 % |
| 21 | C | Northvane | Summit Shell | 255.00 | NORTHVANE|SUMMIT SHELL | CO-103 | +2.4 % |
| 22 | C | Fellrock | Venture 2P Tent | 334.00 | FELLROCK|VENTURE 2P TENT | CO-105 | +1.5 % |
| 23 | C | Stoneriver | Lantern 300 | 29.00 | STONERIVER|LANTERN 300 | No match | – |
| Match rate (F25) | 10 / 12 = 83.3 % | ||||||
Look at what normalising achieved. Shop A writes "trailpeak" in lower case, shop C writes " Trailpeak" with a leading space and "Ridge 30 " with a trailing one. Without TRIM and UPPER those three would look like three different products. With them, all three collapse into TRAILPEAK|RIDGE 30 and link to CO-101. The double space in shop A's "Camp Mug 400" is removed by TRIM and the listing finds CO-107.
Two listings stay unmatched, and they are unmatched for very different reasons. Shop C's "Lantern 300" is a product Copperleaf does not sell: "No match" is the correct answer. Shop B's "Dry Bag 20 L" is the same dry bag we sell as "Dry Bag 20L", but the extra space between the number and the unit survives TRIM, because TRIM only removes spaces at the ends and shrinks repeated spaces, it does not delete single inner spaces. That is a false negative: a real match the key missed. Telling these two cases apart is the human part of product matching.
Calculating the match rate
In F25 the lab asks for the match rate: =COUNTIF(F12:F23,"<>No match")/COUNTA(A12:A23). COUNTIF with the criterion "<>No match" counts the cells that are not equal to "No match", here 10. COUNTA counts the listings in the shop column, here 12. The result is 10/12 = 83.3 %. Format the cell as a percentage with Ctrl+Shift+% or Home › Number › Percent Style.
Two details matter. First, divide by the number of listings, not by the number of our products: the question is "what share of the competitor data can I use?", not "how many of my products are covered?". Coverage is a useful second metric, but it is a different one. Second, COUNTIF with "<>No match" also counts empty cells, so if your formula column is longer than your data, blank rows inflate the numerator. Point the ranges at the data only, or use an Excel table that grows with the data.
Splitting the match rate by shop is a habit worth building early. In a live system you scrape every day, and a sudden drop for one shop from, say, 95 % to 40 % rarely means the shop changed its range overnight. Much more often its website changed the layout or the way it writes product names, and your scraper or your key rule needs an update. The match rate is the smoke alarm of a price monitoring system. The per-shop version is a simple =COUNTIFS(A12:A23,"B",F12:F23,"<>No match")/COUNTIF(A12:A23,"B").
Step by step: building it in Excel
- Put your catalogue and the competitor listings in two blocks (or two sheets) with the same columns: brand, model, price. Keep the raw scraped text unchanged in its own columns so you can always see what the shop really wrote.
- Optional but recommended: select the catalogue and press Ctrl+T (Insert › Table) to make it an Excel table. New products added at the bottom are then picked up by every formula automatically.
- In the first key cell of the catalogue type
=UPPER(TRIM(B2))&"|"&UPPER(TRIM(C2))and press Enter. Select E2:E9 and press Ctrl+D to fill down, or double-click the small square (fill handle) at the bottom right of E2. - Repeat the same formula for the competitor block in E12:E23. Use the identical rule: one different function on one side breaks every match.
- In F12 type
=XLOOKUP(E12,E2:E9,A2:A9,"No match"). While the cursor is in the range E2:E9 inside the formula, press F4 to turn it into $E$2:$E$9, do the same for A2:A9, then fill down to F23. - In F25 type
=COUNTIF(F12:F23,"<>No match")/COUNTA(A12:A23)and format it as a percentage. - Filter the unmatched rows: click into the header row, press Ctrl+Shift+L (Data › Filter) and choose only "No match" in column F. Review each one: product we do not sell, or a match the key missed?
- For every real match the key missed, add a line to a small mapping table (scraped key → our SKU) and extend the lookup with a fallback, as shown in the next section.
=IFERROR(INDEX($A$2:$A$9,MATCH(E12,$E$2:$E$9,0)),"No match"). The 0 in MATCH means exact match, which is what you want for keys.Handling the misses: a manual mapping table
No key rule catches everything, and you should not try to make one rule clever enough. Each extra normalisation step (removing all spaces, removing hyphens, translating "litre" to "L") fixes some misses but can also create false positives, where two different products end up with the same key. The professional pattern is a small, explicit mapping table for the exceptions. It has two columns: the competitor's key exactly as your formula produces it, and our SKU.
For the dry bag the mapping row is STONERIVER|DRY BAG 20 L → CO-108. The lookup then tries the catalogue first and the mapping table second, using XLOOKUP's fourth argument as the fallback: =XLOOKUP(E12,$E$2:$E$9,$A$2:$A$9,XLOOKUP(E12,Map!$A$2:$A$50,Map!$B$2:$B$50,"No match")). With that single extra row the match rate rises from 10 of 12 to 11 of 12. The lantern stays "No match", correctly, because we do not sell it.
Why not simply strip every space with SUBSTITUTE(C19," ","")? It would fix "20 L" against "20L", but it would also merge model names that differ only by a space, and it makes keys harder to read. Use stronger cleaning only for specific, known problems. One that is worth adding everywhere: web pages often contain non-breaking spaces (character 160), which TRIM does not remove. =TRIM(SUBSTITUTE(B12,CHAR(160)," ")) converts them to normal spaces first.

Common mistakes and how to spot them
- Normalising only one side. If the competitor keys go through UPPER(TRIM()) but the catalogue keys do not, almost nothing matches. Symptom: a match rate near zero even for listings that look identical.
- Joining without a separator.
=B2&C2can glue different brand and model combinations into the same string. Always put a separator such as "|" between the parts. - Relative lookup ranges. Forgetting the $ signs makes the lookup range slide down with every copied row, so lower rows search a shorter list and return "No match" for products that exist. Symptom: matches at the top, misses at the bottom.
- Dividing by the wrong count. The match rate is per listing. Dividing by the number of our products (8 here) gives a meaningless 125 %.
- Counting blanks as matches. COUNTIF(range,"<>No match") counts empty cells. Check that the range ends where the data ends.
- Trusting "No match" blindly. Some misses are products you do not sell, others are naming differences. Filter the misses and review them, at least whenever the match rate changes.
- Over-normalising. Removing every space, digit or unit can make two different sizes share a key, for example a 20 L and a 2 L bag in some naming schemes. A false positive is worse than a miss, because it produces a confident but wrong comparison.
- Barcodes stored as numbers. Leading zeros disappear and the keys never match. Keep codes as text.
Quick reference: functions and shortcuts used
| Function / shortcut | What it does here | Example |
|---|---|---|
TRIM | Removes leading and trailing spaces and shrinks runs of inner spaces to one | =TRIM(" Ridge 30 ") → Ridge 30 |
UPPER / LOWER | Unifies letter case so TRAILPEAK = trailpeak | =UPPER(TRIM(B12)) |
& | Joins text, here brand, separator and model | =UPPER(TRIM(B2))&"|"&UPPER(TRIM(C2)) |
SUBSTITUTE | Replaces characters TRIM misses, such as non-breaking spaces or all spaces | =SUBSTITUTE(C19," ","") |
XLOOKUP | Finds the key in our catalogue and returns the SKU, with a fallback value | =XLOOKUP(E12,$E$2:$E$9,$A$2:$A$9,"No match") |
COUNTIF | Counts the matched listings | =COUNTIF(F12:F23,"<>No match") |
COUNTA | Counts all listings (non-empty cells) | =COUNTA(A12:A23) |
| F4 | Cycles a reference through $E$2, E$2, $E2, E2 while editing | Lock the lookup range |
| Ctrl+D / double-click fill handle | Copies a formula down a selected column | E12 → E23 |
| Ctrl+Shift+% | Applies percent format | F25 → 83 % |
| Ctrl+T | Turns a range into an Excel table so formulas fill automatically | Catalogue as a table |
Real-world uses
- Weekly price check for a web shop. A small shop copies the prices of its 200 best-selling products from three competitors into Excel every Monday. A key column and one XLOOKUP link everything to its own SKUs, and the match rate shows at a glance whether the copy-paste worked.
- Retail buying. A buyer compares supplier price lists from several wholesalers that all name the same items differently. Normalised keys, plus a mapping table for the exceptions, turn three incompatible lists into one comparison.
- Marketplace monitoring for a brand. A manufacturer checks how resellers list its products on marketplaces. Matching by brand and model links every reseller offer to the official SKU, and the unmatched rows often reveal grey imports or mislabelled products.
- Data quality monitoring of a scraper. Data teams track the match rate per source every day. A sudden drop for one shop is usually the first sign that its page layout changed and the scraper needs fixing.
- Assortment gap analysis. The listings that correctly return "No match", like the lantern here, are products competitors sell and you do not. Collected over time, they are a simple list of candidates for your own range.
What you will build in the rest of this course
This first lesson is free. Lessons 2 to 20 are part of the full course, available as a one-time purchase of $9.90, and each one builds on the matched data from this lesson, using the same Copperleaf Outdoor example.
Lesson 2, The Price Index: Our Price ÷ Average Competitor Price × 100. You turn the matches into one number per product and one for the whole range, weighted by units sold, and count how many products sit above the market. It is the headline figure most price reports start with.
Lesson 3, Price Position: Cheapest, Middle or Most Expensive with RANK.EQ. An average can hide that you are the most expensive shop for a product. You rank Copperleaf among all shops, label the position in words and measure the gap to the cheapest competitor.
Lesson 4, Detecting Price Changes: Day-over-Day %, Change Flags and Change Counts. With two weeks of scraped prices you calculate daily changes, flag every move, count how often each competitor reprices and chart the price history.
Lesson 5, Promotion Detection: Big Drops That Rebound Within N Days. Not every price drop deserves a reaction. You separate temporary promotions from a permanent cut by testing whether the price returns within a few days, using OFFSET.
Lesson 6, Estimating Price Elasticity from Your Own Price Changes: Log-Log SLOPE. You estimate how strongly demand for the trekking poles reacts to price from ten weeks of your own data and predict the effect of a planned price rise, with an honest look at the limits of such an estimate.
Lesson 7, A Repricing Rule: Beat the Lowest Competitor by 1 %, Never Below the Margin Floor. You build an automatic pricing rule with MIN and MAX that follows the market but stops at a margin floor calculated from unit cost, so a price war can never push you below cost.
Lesson 8, Mid-course project: a Weekly Price Monitoring Dashboard with Alerts, a Ranked Bar Chart and Conditional Formatting. Everything comes together in a weekly dashboard: index per product, share of products above the alert threshold, a sorted bar chart and red highlighting for the products that need attention.
Summary
Price monitoring is only as good as its product matches. When both shops publish a barcode, match on it. Otherwise build a normalised key with UPPER(TRIM()) on brand and model, joined by a separator, link the listings with XLOOKUP, and track the match rate. In the Copperleaf example 10 of 12 listings match (83.3 %), one miss is a product we do not sell and one is a naming difference that belongs in a mapping table.
Now try it yourself in the lab above: build the keys in column E, the lookups in column F and the match rate in F25. The Coach checks each step and explains what went wrong if a formula is not quite right.
Frequently asked questions
How do I match products from two different shops in Excel?
Use a shared code such as the GTIN/EAN barcode when both shops show it. Otherwise build a normalised key in both lists, for example =UPPER(TRIM(B2))&"|"&UPPER(TRIM(C2)), and link the lists with XLOOKUP on that key.
Does TRIM remove spaces between words?
TRIM removes all leading and trailing spaces and reduces runs of several inner spaces to a single space. It does not remove single spaces between words, so "20 L" and "20L" stay different.
Why does TRIM not remove some spaces copied from a website?
Web pages often use non-breaking spaces (character 160), which TRIM ignores. Replace them first with =TRIM(SUBSTITUTE(A2,CHAR(160)," ")).
What is a good match rate in competitor price monitoring?
There is no universal target, because it depends on how much the assortments overlap. What matters most is a stable match rate per competitor over time: a sudden drop usually means the source changed its naming or page layout.
What can I use instead of XLOOKUP in older Excel versions?
Use INDEX and MATCH with an exact match: =IFERROR(INDEX($A$2:$A$9,MATCH(E12,$E$2:$E$9,0)),"No match"). It works in all Excel versions.
Should I use fuzzy matching for product names?
Fuzzy matching can suggest candidates, but it also produces confident wrong pairs, which is worse than a miss in pricing. A clean exact key plus a small, reviewed mapping table for the exceptions is easier to audit.
Keep going: Competitor Price Monitoring: Price Index, Changes & Promotion Detection
This free lab is lesson 1 of 20. Unlock the other 19 hands-on labs, the final exam and your certificate for a one-time €9.90.
- The Price Index: Our Price ÷ Average Competitor Price × 100
- Price Position: Cheapest, Middle or Most Expensive with RANK.EQ
- Detecting Price Changes: Day-over-Day %, Change Flags and Change Counts
- Promotion Detection: Big Drops That Rebound Within N Days
- Estimating Price Elasticity from Your Own Price Changes: Log-Log SLOPE
- A Repricing Rule: Beat the Lowest Competitor by 1 %, Never Below the Margin Floor
- Mid-course project: a Weekly Price Monitoring Dashboard with Alerts, a Ranked Bar Chart and Conditional Formatting
- Like for Like: Landed Prices with Shipping Fees and Free-Shipping Thresholds
- Scrape Sanity Checks: Outliers Against the Median, Zero Prices and Stale Rows
- Out-of-Stock Competitors: Indexing Only Against Shops That Can Deliver
- Different Pack Sizes: Price per Unit and the Equivalent Competitor Price
- The Index Over Time: Weekly Basket Index, Point Changes and a 4-Week Moving Average
- Why Did the Index Move? Splitting the Change into Our Moves and Market Moves
- Competitor Repricing Profiles: How Often, How Deep and in Which Direction Each Shop Moves
- How Fast Do Competitors Follow? Response Lags After Our Price Changes
- Price Corridors by Role: Key Value Items, Core Range and Margin Builders
- Prioritising Alerts: the Weekly Price Premium in Dollars and a Top-5 Review List
- Before You Switch It On: Simulating a Repricing Rule's Effect on Units and Profit
- Final Project: a Monthly Competitive Pricing Report with Corridors, a Weighted Index, a Combo Chart and Alerts