Grocery list template for Excel: sorted by aisle, with prices and a printable list

A grocery list in Excel remembers what you usually buy, sorts it in the order you walk through the store and tells you roughly what the trip will cost. Anything you tick off drops off the printed list, with no sorting and no macro.

In short: pick items from your favorites in a drop-down, and VLOOKUP fills in unit, section and price. SUMIFS shows what is still to buy in each section. The print list uses =INDEX(items,MATCH(SMALL(keys,n),keys,0)) to show only unchecked items, sorted by section.

Before you start: VLOOKUP, SUMIFS and absolute references.

Try it now

In the store you want to know what is still missing in each section. Add up the amounts per section, but only for items that are not in the cart yet.

Task In G2, work out how much is still to buy in the section in F2: the amounts in column C for that section, but only rows without an x in column D. The formula is filled down to G5.

ABCDEFG
1 Item Section Amount Bought Section Still to buy
2 Pasta Pantry 2.98 Produce
3 Toothpaste Personal care 2.99 Dairy and eggs
4 Milk Dairy and eggs 3.89 x Pantry
5 Apples Produce 4.49 Personal care
6 Butter Dairy and eggs 4.79
7 Cucumber Produce 0.89 x
8 Yogurt Dairy and eggs 3.29
9 Rice Pantry 2.99

Download the grocery list template

The workbook has four sheets: the grocery list for up to 100 items with totals per section and a budget, a print list for paper or your phone, favorites with room for 200 items you buy regularly, and instructions. Every sheet is protected without a password, and only the yellow cells take input. The sample prices are placeholders for your own, and amounts have no currency symbol, so the list works in dollars or pounds.

Preview of the grocery list template in Excel: items picked from favorites with quantity, unit, store section, estimated price and amount, bought items in grey, and the total per section and budget on the rightEnlarge preview

Download the finished template

The finished Excel file grocery-list-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

SheetContentsKey formula
FavoritesItem, unit, section, rough price, whether it is on this week's list=COUNTIF('Grocery list'!$B$5:$B$104,A5)
Grocery listItem, qty, unit, section, price, amount, bought=VLOOKUP(B5,Favorites!$A$5:$D$204,3,FALSE)
Grocery list, right sideSections in store order, total, still to buy, budget=SUMIFS($G$5:$G$104,$E$5:$E$104,K5,$H$5:$H$104,"<>x")
Print listOnly open items, sorted by section, with a box to tick=INDEX(…,MATCH(SMALL(keys,A5),keys,0))

Build it step by step

  1. Favorites sheet: one row per item with name, unit (each, bag, pack, bottle), section and a rough price.
  2. Grocery list sheet: an Item column with a drop-down list of your favorites, and Qty next to it. VLOOKUP with FALSE fills in unit, section and price.
  3. Amount = qty times price; an empty qty counts as 1. The Bought column gets a drop-down that only allows x.
  4. On the right, the sections in the order of your store, with the total and what is still to buy using SUMIFS, as in the exercise above.
  5. A helper column called Sort key: for open items, the section number times 1000 plus the row number; for bought items, nothing.
  6. Print list sheet: n = 1, 2, 3 for as many open items as there are, and INDEX with SMALL in each row.

The list that hides what you bought

The trick is the helper column. Milk in Dairy and eggs (section 3) in row 1 gets the key 3001; apples from Produce (section 1) in row 3 get 1003. Bought items get no key at all. SMALL then returns the smallest, second smallest and third smallest key, and because the section number comes first, the items fall into store order by themselves. MATCH finds the row of each key, and INDEX returns the item.

Task Column D holds the number only for items not bought yet. In G2, return the item with the n-th smallest number in column D (n is in F2), so the first open item. Filled down to G6, this builds the shopping list without the bought items.

ABCDEFG
1 No. Item Bought No. if open n Shopping list
2 1 Apples 1 1
3 2 Milk x 2
4 3 Bread 3 3
5 4 Pasta 4 4
6 5 Butter x 5
7 6 Coffee 6
8 7 Yogurt x
9 8 Rice 8

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 exercise the key is just the row number, so INDEX can use it directly. Tick something off on the list and the print list closes the gap at once. For printing it is set to one page wide, without gridlines, with a box on every line.

Favorites instead of typing

Most trips repeat themselves. So unit, section and price live once on the Favorites sheet, and the list picks them up. A new item goes into Favorites once and is in the drop-down from then on. The column "On the list this week" uses COUNTIF to mark what is already planned, so you can scan your favorites for anything you forgot.

Common mistakes

A question mark instead of unit or price

VLOOKUP cannot find the item in Favorites, usually because of a typo or a trailing space. With the drop-down this does not happen.

Totals jump when you fill down

Without $, the ranges in SUMIFS slide down as you fill and lose the top rows. The list and criteria ranges need absolute references.

A section missing from the store order

If a section is not listed on the right, MATCH returns an error. The template gives it number 99 instead, so it lands at the end of the print list rather than disappearing.

The formulas in German Excel

In German the template is called Einkaufsliste and shows prices in euros. German Excel uses semicolons between arguments.

EnglishGerman
VLOOKUP, IFERRORSVERWEIS, WENNFEHLER
SUMIF, SUMIFS, COUNTIFSSUMMEWENN, SUMMEWENNS, ZÄHLENWENNS
INDEX, MATCH, SMALL, COUNTINDEX, VERGLEICH, KKLEINSTE, 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. In Excel 2021 or Microsoft 365 you could build the print list with FILTER and SORT instead; the template avoids them so it runs everywhere.

FAQ

Is the grocery list template free?

Yes. With a free account you can download the Excel file, with no subscription and no payment details.

Can I use it on my phone?

Yes. Open the Print list sheet in the Excel app. To tick an item off, put an x next to it on the grocery list and the print list updates.

How do I start a new week?

On the grocery list, select the Item, Qty and Bought columns and press Delete. Your favorites stay.

Are the prices real?

No, they are placeholders. Enter the prices from your own store. To compare stores, use the price comparison template.

Does it work with the meal planner?

The meal planner works out quantities from recipes. This list is for everything you buy regularly, including household and personal care items.

Up next: the price comparison

The same products at several stores, unit price per lb, oz or kg by formula, and the cheapest store for your whole basket.

Compare prices

What groceries cost each month belongs in your budget. All files are on the Excel templates page.

Write to us

Choose language

Select your preferred language