# Find Best Price With Excel INDEX and MATCH

If you’re setting up a new office, or going grocery shopping, you can use Excel to compare prices. With the Excel functions – MIN, INDEX and MATCH – you can calculate the lowest price for each item, and which store sells at that price.
Then, print a list, and go shopping!

### Calculate Best Price with MIN

In this example, we have done some research, and entered the item prices from three stores, in cells B2:D6.
The next step is to calculate the best price for each item, by using the Excel MIN function. The formula in cell E2 is:
=MIN(B2:D2)

Then, copy the formula down to cell E6.

### Find Store With Lowest Price MATCH

The final step, before printing your shopping list, is to determine which store has that best price. For this, you’ll use the INDEX and MATCH functions.
With the MATCH function, you can find the position of the lowest price, in the 3 columns with store prices. This MATCH formula looks in cells B2:D2, to find the best price from cell E2.
=MATCH(E2,B2:D2,0)

Sears has the lowest price for a lamp, and it is the second store in our worksheet, so the MATCH result is 2.

### Get the Store Name With INDEX

Our shopping trip will be easier if there is a store name in column F, Instead of a store position number. The store names are listed in cells B1:D1, and the INDEX function can return a value from a specific position in a range.
With the INDEX function, we could select cells B\$1:D\$1, and type a 2 as the column number that should be returned.
=INDEX(B\$1:D\$1,,2)
The reference to B\$1:D\$1 uses dollar signs before the row number, because we don’t want that reference to shift, as we copy the formula down, in column F.

The result in cell F2 is Sears.

### Combine INDEX and MATCH

Instead of typing the column number in the INDEX formula, we can use our MATCH formula to calculate the column number.
Here is the combined INDEX and MATCH formula, in cell F2:
=INDEX(B\$1:D\$1,,MATCH(E2,B2:D2,0))

Copy the formula down to F6, and you’re ready to hit the shopping centre!