How to build a customer list that updates from your orders

· 6 min read

A customer list typed by hand is always a little behind. Someone takes an order from a new cafe, adds the order row, and means to add the cafe to the customer tab later. A list built by a formula cannot fall behind, because it reads the orders themselves.

This guide uses the order sheet from how to track customer orders in Google Sheets: an Orders tab with Order date in column B, Customer in C, Status in G and Amount in J. If your columns differ, change the letters.

Decide which list is in charge

There are two ways to keep customers and orders in step, and they pull in opposite directions.

Typed list is in charge Orders are in charge
Where a new customer is added On the Customers tab first Nowhere. The first order adds them
How names stay consistent A dropdown on Orders reads the list Nothing stops a misspelling
What a misspelled name does It is refused by the dropdown It appears as a new customer
Upkeep One row to add per customer None

The typed list with a dropdown is stricter, and the orders guide above sets it up. The formula list is what this guide builds. You can run both, as long as you never point the dropdown at the formula list. A dropdown refuses names that are not on its list, and the formula list only holds names that already have an order, so nobody could ever enter a new customer.

Build the list with one formula

Add a tab called Customer summary. Type Customer in A1 and put this in A2:

=SORT(UNIQUE(FILTER(Orders!C2:C, Orders!C2:C<>"")), 1, TRUE)

Leave the rest of column A empty. The formula fills as many cells as it needs, and it shows an error if something is typed in its way. Read it from the inside out:

  1. FILTER keeps the cells in the Customer column that are not empty.
  2. UNIQUE discards duplicates, so each name is kept once. Google's page says rows come back in the order they first appear.
  3. SORT puts the names in A to Z order. The 1 means sort by the first column and TRUE means ascending.

Add orders, sales and last order date

Type Orders, Sales and Last order in B1 to D1. Then in B2, C2 and D2:

=IF(A2="", "", COUNTIFS(Orders!C:C, A2, Orders!G:G, "<>Cancelled"))

=IF(A2="", "", SUMIFS(Orders!J:J, Orders!C:C, A2, Orders!G:G, "<>Cancelled"))

=IF(A2="", "", MAXIFS(Orders!B:B, Orders!C:C, A2, Orders!G:G, "<>Cancelled"))

Fill all three down well past the last name, to row 200 for example. The IF(A2="", "", ...) part keeps a row blank until the list reaches it, so the formulas are already waiting when a new customer appears.

COUNTIFS counts the rows that meet every condition, here "this customer" and "not Cancelled". SUMIFS adds the Amount on the same rows, and how to total sales per customer walks through it. MAXIFS returns the largest value on those rows, and the largest date is the latest one. If Last order shows a number such as 46352, select the column and choose Format > Number > Date.

Check it against eight orders

Order ID Order date Customer Status Amount
ORD-1001 2026-11-05 Cafe Lotus Delivered 1,350
ORD-1002 2026-11-10 Hill Stores Delivered 720
ORD-1003 2026-11-12 Corner Bakery Cancelled 420
ORD-1004 2026-11-15 Cafe Lotus Shipped 1,120
ORD-1005 2026-11-18 Hill Stores Packed 540
ORD-1006 2026-11-24 Corner Bakery New 300
ORD-1007 2026-11-26 Cafe Lotus New 450
ORD-1008 2026-11-27 Hill Stores New 600

The Customer summary tab shows:

Row Customer Orders Sales Last order
2 Cafe Lotus 3 2,920 2026-11-26
3 Corner Bakery 1 300 2026-11-24
4 Hill Stores 3 1,860 2026-11-27

Orders add up to 7, which is the eight rows less the cancelled one. Sales add up to 5,080, which is all eight amounts (5,500) less the cancelled 420.

Now add one order: ORD-1009, 2026-11-30, Green Leaf Deli, New, 800. Without touching the summary tab, it becomes:

Row Customer Orders Sales Last order
2 Cafe Lotus 3 2,920 2026-11-26
3 Corner Bakery 1 300 2026-11-24
4 Green Leaf Deli 1 800 2026-11-30
5 Hill Stores 3 1,860 2026-11-27

Do not type beside a list a formula builds

Look at row 4. Before the new order it was Hill Stores. Now it is Green Leaf Deli, and Hill Stores has moved to row 5.

The formula columns followed, because each one reads the name on its own row. Anything typed would not have. If you had typed Hill Stores' phone number in E4, it would still be in E4, now sitting beside Green Leaf Deli. Nothing warns you. The same goes for notes, addresses and credit terms.

So the rule for this tab is simple: every cell on it is a formula. Dropping the SORT does not make typing safe either. Names would then stay in order of first appearance, but deleting or re-sorting order rows would still move them.

Keep typed details on their own tab and pull them in

Phone numbers have to be typed somewhere. Put them on a Customers tab with Customer in column A and Phone in B, one row per customer. Rows there never move by themselves. Then on Customer summary, type Phone in E1 and put this in E2:

=IF(A2="", "", XLOOKUP(A2, Customers!A:A, Customers!B:B, "Add to Customers"))

Fill it down. XLOOKUP finds the name in column A of Customers and returns the phone number from the same row. The fourth part is the value to return if no match is found. Green Leaf Deli has an order but no row on Customers yet, so its Phone cell reads Add to Customers. That is your to-do list: =COUNTIF(E2:E, "Add to Customers") in a free cell counts how many customers still need their details typed in.

Fix a list that looks wrong

  • A customer appears twice. The two names are not the same text. Google's UNIQUE page says to check for hidden differences such as trailing spaces. Retype the name on the Orders tab, or select the Customer column there and choose Data > Data cleanup > Trim whitespace, a step on Google's page about removing extra spaces.
  • Two spellings of one customer. "Lotus Cafe" and "Cafe Lotus" are two customers to a formula. Fix the order row. To stop it happening again, use a dropdown that reads the typed Customers tab, set up the same way as a dropdown for order status.
  • The list shows #N/A. The Orders tab has no customer names yet. Google's FILTER page says it returns #N/A when no values satisfy the conditions. The error clears with the first order.
  • A customer shows 0 orders. Their only orders are cancelled.

Where BoltSheets fits

Everything above works in a plain Google Sheet. The BoltSheets order tracker template takes the typed-list route: its Customers tab holds Customer, Phone and City as typed columns, with Orders and Total spent as formula columns, and the Customer column on Orders is a dropdown that reads it. It does not have a formula-built list or a last order date, so those are yours to add. In the demo you can ask for a customer to be added in words. The change is shown as a preview and written only when a person confirms it, and the formula columns are never written to. BoltSheets is in early access and works with Google Sheets only.

Common questions

Can I use Remove duplicates to make the list?

You can, but only as a one-off. Copy the Customer column to a new tab, select it, and choose Data, then Data cleanup, then Remove duplicates. The result is plain text that does not change when a new order arrives, so you would repeat the steps every time. The UNIQUE formula updates by itself.

How do I see how long it has been since each customer ordered?

Add a column beside Last order with =IF(A2="", "", TODAY()-D2) and fill it down. It gives the number of days since that customer's latest order that was not cancelled. Format the column as a number if it shows a date.

What happens to a customer whose only order was cancelled?

They stay on the list, because the list reads every name on the Orders tab. Their order count and sales show 0. Google's MAXIFS page says the function returns 0 when nothing matches, and a 0 formatted as a date displays as 30 December 1899, so read that date as "no order yet".

Can I sort the list by sales instead of by name?

Not in place, because the names come from one formula and the totals from others. Leave the list in name order and click the cells you need, or build a second tab that sorts the finished list, as described in our guide to totalling sales per customer.