Price comparison template for Excel: work out unit prices and find the cheapest store
Is 12 oz for 8.99 cheaper than 40 oz for 24.99? A price comparison in Excel turns every pack into the same unit price, shows the cheapest store for each product, and tells you where your whole basket costs least.
In short: unit price = price / pack size x conversion, for example =D2/B2*VLOOKUP(C2,units,2,FALSE). MIN finds the best unit price, INDEX(stores,MATCH(MIN(…),…,0)) names the store, and SUMPRODUCT totals the basket at each store.
Before you start: VLOOKUP, INDEX with MATCH and absolute references.
Try it now
Coffee in ounces, olive oil in milliliters, eggs by the dozen: before you can compare anything, each product needs a price per pound, liter or item.
Task In E2, work out the unit price: per lb (from oz or lb), per kg (from g), per liter (from ml) or per item. Divide the price by the size and multiply by the factor for the unit from the table G2:H6. The formula is filled down to E7.
| A | B | C | D | E | F | G | H | |
|---|---|---|---|---|---|---|---|---|
| 1 | Product | Size | Unit | Price | Unit price | Unit | Factor | |
| 2 | Coffee | 12 | oz | 8.99 | oz | 16 | ||
| 3 | Olive oil | 750 | ml | 10.49 | ml | 1000 | ||
| 4 | Eggs | 18 | each | 5.79 | each | 1 | ||
| 5 | Rice | 5 | lb | 6.99 | g | 1000 | ||
| 6 | Pasta | 454 | g | 1.79 | lb | 1 | ||
| 7 | Bananas | 3 | lb | 1.77 |
Download the price comparison template
The workbook has three sheets: the comparison for 40 products at four stores with unit price, cheapest store, savings and basket totals; a Units sheet with conversions (g, kg, 100 g, oz, lb, ml, l, 100 ml, US fl oz, each, and room for your own); and instructions. Every sheet is protected without a password, and only the yellow cells take input. The sample prices are made up, not real offers. Prices carry no currency symbol, so the sheet works in dollars or pounds. It prints on landscape Letter.
Enlarge previewDownload the finished template
The finished Excel file price-comparison-template.xlsx, with sample rows and instructions, is free. All you need is a free account: no subscription, no payment details.
Figures, rates and sample data in the templates are as of 13 November 2026, without guarantee. Check that they still apply to you. The templates are mainly meant to show how to build this in Excel.
Create a free account and download the template Already have an account? Log in
What is in the template
| Columns | Contents | Formula |
|---|---|---|
| A to D | Product, pack size in, unit price per, need | Inputs, units from a drop-down |
| E to H | Cheapest store, best unit price, cost of your need, saving | =MIN(K6,N6,Q6,T6) |
| I to T | Size, price and unit price at each store | =J6/I6*$U6 |
| U | Conversion from the pack unit to the unit-price unit | =VLOOKUP(C6,units,3,FALSE)/VLOOKUP(B6,units,3,FALSE) |
| Bottom | Basket per store, missing products, result | =SUMPRODUCT($D$6:$D$45,K6:K45) |
Build it step by step
- Units sheet: for each unit, its kind (weight, volume, count) and how many grams, milliliters or items it holds. A pound is 453.59237 g and an ounce 28.349523125 g.
- Comparison sheet: for each product, choose the unit of the pack size and the unit you want the price in.
- Conversion column: unit-price unit divided by pack unit, both from the Units sheet with VLOOKUP. If the kinds do not match (ounces and liters), the cell shows a question mark.
- Enter size and price at each store; unit price is price / size x conversion.
- Best unit price with MIN, cheapest store with INDEX and MATCH (or a chain of IFs), saving = need x (dearest minus cheapest unit price).
- At the bottom, the basket per store with SUMPRODUCT and the number of missing products. Conditional formatting shows the best unit price in green.
Finding the cheapest store
MIN only gives you the price. Which store it belongs to is in the header row. MATCH looks for the lowest price in the row and returns its position, and INDEX uses that position to return the name. MIN ignores empty cells, so products a store does not carry do not count.
Task B2:E7 hold the unit price at each store; an empty cell means the store does not carry the product. In F2, return the name of the store from row 1 with the lowest unit price for the product in A2. The formula is filled down to F7.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Product | Discount store | Supermarket | Big-box store | Online | Cheapest store |
| 2 | Coffee (lb) | 11.99 | 11.49 | 10 | 9.99 | |
| 3 | Rolled oats (oz) | 0.1 | 0.16 | 0.09 | ||
| 4 | Rice (lb) | 1.25 | 1.4 | 0.88 | 1.25 | |
| 5 | Olive oil (l) | 13.98 | 13.99 | 11.5 | 13.99 | |
| 6 | Eggs (each) | 0.29 | 0.32 | 0.27 | ||
| 7 | Toilet paper (roll) | 0.75 | 0.87 | 0.73 | 0.79 |
This exercise is part of Premium.
Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.
See Premium Already Premium? Log in
The first exercise in this lesson is free.
In the template, size and price sit between the unit-price columns. So a chain of IFs names the store there: =IF(K6=F6,$I$4,IF(N6=F6,$L$4,…)). The result is the same.
Basket: where does everything cost least?
Need is entered in the unit-price unit, so 2 means 2 lb of coffee. Need times unit price is the cost per product, and SUMPRODUCT adds that up for each store. A store that is missing a product would look cheaper than it really is. That is why COUNTIFS counts the missing products you need, and only stores with 0 count as comparable. The last line shows how much more you save if you buy each product wherever it is cheapest, compared with one store for everything.
Shelf tags often show a unit price already, but stores do not always use the same unit: one shows price per ounce, another per pound or per count, and online shops may show none. A UK fluid ounce (28.4130625 ml) is smaller than a US one (29.5735295625 ml), so add it as its own unit if you need it.
Common mistakes
Comparing ounces with pounds
If one store lists 12 oz and another 2 lb, the price per pack compares apples with oranges. Only converting to one unit makes the numbers comparable.
The header row moves
Without $, the range with the store names slides down as you fill, and INDEX returns nothing useful. The header row needs absolute references.
Missing products make a basket look cheap
If you only add things up, the store with the smallest range wins. Count what is missing before you compare baskets.
The formulas in German Excel
In German the template is called Preisvergleich and works with g, kg, ml, l and pieces, with prices in euros. German Excel uses semicolons between arguments.
| English | German |
|---|---|
| VLOOKUP, IFERROR, ISNUMBER | SVERWEIS, WENNFEHLER, ISTZAHL |
| MIN, MAX, INDEX, MATCH | MIN, MAX, INDEX, VERGLEICH |
| SUMPRODUCT, COUNTIFS, COUNT | SUMMENPRODUKT, ZÄHLENWENNS, ANZAHL |
Which Excel versions does it work in?
Every function is available in all current versions of Excel, including Excel for Mac and Excel for the web.
FAQ
Is the price comparison template free?
Yes. With a free account you can download the Excel file, with no subscription and no payment details.
How do I compare detergent per load?
Add a unit called "load" on the Units sheet with the kind count and an amount of 1. Enter the number of loads as the size and choose load for both pack and unit price.
Can I compare more than four stores?
The template has four stores side by side. For more, unprotect the sheet, copy a group of size, price and unit price to the right, and extend MIN, MAX and the chain of IFs.
Where do the prices come from?
The sample prices are made up. Enter what you see in the store, in the flyer or online.
Is this the same as a pricing calculator?
No. Here you compare what you pay as a shopper. How a business sets its selling price is covered in the pricing calculator.
Collect what you want to buy in the grocery list. All files are on the Excel templates page.