In this guide
The quickest way to build an inventory tracker in Google Sheets with AI is to describe your columns to Gemini or ChatGPT, paste five sample rows, and ask for three formulas: weeks of stock left, a REORDER flag, and a suggested order quantity. In our November 28, 2026 test, free Gemini wrote all three correctly, including guards for two traps we planted. Below are the exact prompt, the formulas, and the one case you still need to decide yourself.
What this inventory tracker does
This is a simple reorder tracker for a small shop with tens or a few hundred products, not a full inventory system. Each row is one product, and three formula columns answer the questions you actually ask every week:
- How many weeks will this last? (stock ÷ average weekly sales)
- Do I need to reorder now? (stock at or below your reorder point)
- How many should I order? (enough to cover your supplier’s lead time plus four weeks, minus what you already have)
Your columns:
| Column | What goes in it |
|---|---|
| A: SKU | Your product code |
| B: Product | Name |
| C: In stock | Units on hand today |
| D: Units sold per week | Average of the last 4 weeks |
| E: Reorder point | The stock level that should trigger an order |
| F: Lead time (weeks) | How long your supplier takes to deliver |
| G, H, I | Formulas (weeks left, status, order quantity) |
Our test: Gemini vs a soap shop with two traps
We used the free Gemini web app (Auto model) on the Workflow Owl Google account on November 28, 2026. The shop is fictional: a small online soap maker with five products. We planted two problems that break naive spreadsheet formulas:
- A product with zero weekly sales (Charcoal bar). Dividing stock by sales gives a #DIV/0! error.
- A product with a blank reorder point (Gift box). Google Sheets treats an empty cell as 0 in comparisons, so a simple “stock <= reorder point” test would quietly say “OK”.
The prompt (copy and edit)
I run a small [TYPE OF SHOP] and track inventory in Google Sheets. Row 1 has headers, data starts in row 2:
A: SKU | B: Product | C: In stock (units) | D: Units sold per week (average of last 4 weeks) | E: Reorder point | F: Supplier lead time (weeks)
Sample rows:
[paste 5 of your real rows, separated by | ]
Write Google Sheets formulas I can paste in row 2 and drag down for:
G: Weeks of stock left
H: Status: "REORDER" when stock is at or below the reorder point, otherwise "OK"
I: Suggested order quantity to cover lead time plus 4 weeks, minus what is in stock (never below 0)
Then tell me what each formula returns for the 5 sample rows.
The last line matters. Asking the AI to show what each formula returns for your sample rows lets you check its work in 30 seconds with a calculator.
The formulas Gemini wrote
G: Weeks of stock left
=IF(D2>0, C2/D2, "No sales")
H: Status
=IF(ISBLANK(E2), "No reorder point", IF(C2<=E2, "REORDER", "OK"))
I: Suggested order quantity
=MAX(0, CEILING(D2*(F2+4)-C2, 1))
Gemini caught both traps without being told about them. It guarded the division with IF(D2>0, …) and explained that Sheets would otherwise treat the blank reorder point as 0. It also added CEILING(…, 1) so you never order half a bar, and MAX(0, …) so well-stocked items show 0 instead of a negative number.
We checked every result by hand
Here is what Gemini said each formula returns, next to our own calculation:
| Product | Stock / sales / reorder pt / lead | Weeks left | Status | Order qty | Our check |
|---|---|---|---|---|---|
| Lavender bar | 34 / 12 / 30 / 2 | 2.83 | OK | 38 | 12 × 6 − 34 = 38 ✔ |
| Oatmeal bar | 80 / 10 / 30 / 2 | 8 | OK | 0 | 60 − 80 = −20 → 0 ✔ |
| Charcoal bar | 6 / 0 / 10 / 3 | No sales | REORDER | 0 | 0 × 7 − 6 → 0 ✔ |
| Gift box | 15 / 5 / blank / 1 | 3 | No reorder point | 10 | 5 × 5 − 15 = 10 ✔ |
| Travel tin | 0 / 4 / 8 / 4 | 0 | REORDER | 32 | 4 × 8 − 0 = 32 ✔ |
All 15 values matched. It even referred to the right sheet rows (it said to fill in the gift box’s reorder point in E5, which is correct because data starts in row 2).
The one thing it left to you
The Charcoal bar shows REORDER (6 in stock, reorder point 10) but an order quantity of 0, because it sold nothing in four weeks. Gemini flagged this itself and said you need to decide whether to restock or discontinue. That’s the right answer: a formula can’t know whether zero sales means “nobody wants it” or “it was out of stock”. This is where your judgment beats any tracker.
Two small notes from our review: Gemini labeled the code blocks “Excel” even though we asked for Google Sheets (the formulas work in both), and ISBLANK only catches truly empty cells. If someone types a space in the reorder-point column, the check won’t catch it, so keep that column clean.
Step by step: set up the tracker
- Create a new sheet at sheets.new and type the six headers in A1:F1 (SKU, Product, In stock, Units sold per week, Reorder point, Lead time weeks). Add “Weeks left”, “Status” and “Order qty” in G1:I1.
- Paste your products from your store export (Shopify, Square, Etsy) into columns A–C.
- Fill in weekly sales in column D. Use the last 4 weeks of sales divided by 4; most store platforms have a “sales by product” report.
- Set a reorder point in column E for every product. A simple starting rule: weekly sales × lead time in weeks, plus one week of safety stock.
- Paste the three formulas into G2, H2 and I2, then select G2:I2 and drag the small square in the corner down to your last row.
- Add color: select column H, then Format → Conditional formatting → “Text contains” REORDER → red fill. Now your reorder list jumps out.
- Freeze the header with View → Freeze → 1 row, and sort or filter by Status each Monday.
- Ask AI for changes the same way. For example, if your supplier has a minimum order, use the follow-up prompt below.
Follow-up prompt: minimum order quantities
Add column J: Supplier minimum order. Change the column I formula so that when an order is needed (more than 0), it is at least the minimum in J and rounded up to the nearest case of [12] units. Show results for my 5 sample rows again.
Can Gemini build this inside Google Sheets for you?
Sometimes, depending on your plan. According to Google’s Gemini in Google Sheets help page, the Gemini side panel in Sheets (create tables, write and fix formulas, apply conditional formatting) requires an eligible Google Workspace or Google AI plan. Google’s April 22, 2026 Workspace Updates post lists Business Standard and Plus, Enterprise Standard and Plus, and Google AI Pro and Ultra among eligible plans for building and editing whole spreadsheets from a prompt, and notes that feature is US and English only. (Both checked November 28, 2026.)
We used the free Gemini web app instead, which works for anyone with a Google account: you copy the formulas from the chat into your sheet. It’s one extra copy-paste, and you can check every number before it touches your real data.
Pros, cons and cost
| AI-built Sheets tracker | Paid inventory app | |
|---|---|---|
| Cost | $0 (free Gemini + Google Sheets) | Monthly subscription |
| Setup time | About 20 minutes in our test | Longer, plus syncing |
| Auto-updates stock from sales | No, you update columns C and D | Usually yes |
| Flexibility | Change any rule with one prompt | Limited to the app’s settings |
Pros: free, transparent formulas you can read, and Gemini handled divide-by-zero and blank cells without being asked. Cons: manual stock updates, and the tracker is only as good as your weekly sales numbers.
Who it’s for: makers, Etsy and Shopify sellers, cafés and small retailers with up to a few hundred SKUs who reorder from a handful of suppliers and want a weekly “what do I order?” list without paying for software.
FAQ
Do I need Gemini for Workspace to use these formulas?
No. The formulas are plain Google Sheets functions (IF, ISBLANK, MAX, CEILING). You can get them from the free Gemini app, ChatGPT, or just copy them from this page.
What reorder point should I use?
A common starting point is average weekly sales × supplier lead time in weeks, plus a safety buffer (for example one extra week of sales). Adjust after a month based on how often you ran out.
Why does a product say REORDER but order quantity 0?
Its stock is below the reorder point, but it had no sales in the last four weeks, so the formula calculates no need. Decide by hand whether to restock it or let it sell out.
Will this work in Excel?
Yes. All three formulas use functions that exist in Excel with the same syntax.
Conclusion
An inventory tracker is one of the best “first spreadsheets” to build with AI: the logic is simple, the formulas are easy to check, and the result saves you from running out of your bestsellers in December. In our test, free Gemini wrote correct formulas and spotted both traps; the only decision it couldn’t make was whether to restock a product that stopped selling. If you track receipts in Sheets too, see our guide to turning receipts into a spreadsheet with AI.



