Inventory expiry tracking template: which lots won’t sell before they expire
Sell the earliest expiry date first: first expired, first out, or FEFO. At your current daily sales, a lot is at risk if it still has units on hand when its selling window closes. The window closes on the expiry date minus the days of shelf life your buyers need when an order ships. Paste your lots below to see which ones are at risk, how many units, and what those units cost you.
Excel file, 5 sheets. No sign-up. Tested in Google Sheets and LibreOffice on November 26, 2026. Excel may open a file from the internet in Protected View, which is read-only. Select Enable Editing on the message bar before you type.5
By Navexa Updated First published How we check facts
Check your lots now
The calculator opens with example data: one SKU of vitamin D gummies in two lots, selling 6 a day, on December 1, 2026. Clear it and paste your own. Today then switches to your own date. Nothing you paste leaves your browser.
160 units at risk in 1 lot, $1,024.00 at cost. 1 lot sells out in time.
Every order is assumed to ship the earliest-expiring lot first, at a steady daily rate from Today. A lot’s window closes on its expiry date minus the shelf life you need. Undated stock has no window, so it is not counted as at risk. Up to 5,000 rows.
160 units at risk in 1 lot, $1,024.00 at cost. 1 lot sells out in time.
| Lot | Sells from | Last ship day | Window closes | Units at risk | Value at risk | Needed per day | Status |
|---|---|---|---|---|---|---|---|
| BVITD-60300 units, exp. Feb 28, 2027 | Dec 1, 2026 | Jan 19, 2027 | Jan 29, 2027 | 0 | $0.00 | 5.1 | Sells out before the window closes |
| AVITD-60400 units, exp. Mar 31, 2027 | Jan 20, 2027 | Feb 28, 2027 | Mar 1, 2027 | 160 | $1,024.00 | 10.0 | Window closes with units left |
| SKU | Daily sales | Units with no known lot | At risk, undated sold last | At risk, undated sold first |
|---|---|---|---|---|
| VITD-60 | 6 | 0 | 160 units, $1,024.00 | 160 units, $1,024.00 |
What to paste
- One row per lot: SKU, lot, expiry date, units on hand, and unit cost. Unit cost is optional, but without it you get units at risk and no dollar value. Copy the columns straight from Excel or Google Sheets, or paste CSV. A header row is optional. Without one, the columns are read in that order.
- Dates: 2027-03-31, 3/31/2027 and 03-31-2027 all work. A date with only a month and a year, such as 03/2027, is read as the first day of that month. Amazon reads month-only dates on FBA stock the same way: for MM-YYYY, “Amazon interprets the date as the first day of that month.”1 Under the box, a “Read as” line spells out the first date, so a day-first date such as 04/03/2027 can’t pass as April 3 without you seeing it.
- A row with no expiry date counts as stock with no known lot for that SKU. Stock with no known lot explains the two ways the calculator handles it.
- Daily sales, per SKU. Use a rate from days the SKU was in stock. A day with no stock sells nothing and pulls a plain average down. The reorder point guide shows how to count only in-stock days.
- For the whole paste: today’s date, which you can change to plan from another day, and the days of shelf life a unit must still have when it ships. The shelf-life section says where that number comes from.
What the results mean
| Column | What it tells you |
|---|---|
| Sells from | The first day the lot ships, if every order takes the earliest expiry first. |
| Last ship day | For a lot that sells out in time, the day its last unit ships. For a lot with units left, the last day it can ship: the day before its window closes. |
| Window closes | The expiry date minus the shelf life you need. From this date on, units still on hand are at risk. |
| Units at risk | Units still on hand when the window closes, rounded up to whole units. |
| Value at risk | Units at risk × unit cost. This is what writing them off would cost you, at unit cost. |
| Needed per day | The daily sales this lot would need, from its first selling day, to sell out before its window closes. |
The last day a unit can ship is the day before its window closes. So every unit that ships still has more than the days of shelf life you typed.
Each lot also gets one of five statuses:
- “Sells out before the window closes”
- “Window closes with units left”
- “Window closes before this lot starts selling”
- “Window already closed”
- “Daily sales are 0: every unit is at risk”
Daily sales of 0 put every unit of the SKU at risk. The calculator flags it, in case a 0 stands in for a rate you haven’t looked up. A SKU with the daily sales left blank gets no result and is listed under “Enter daily sales”.
Per SKU and in total, you get units and value at risk. Undated stock is shown both ways: sold before the dated lots and sold after them.
Worked example: the later delivery that expires first
Example data. One SKU of vitamin D gummies. Today is December 1, 2026. The SKU sells 6 units a day. Buyers need at least 30 days of shelf life when an order ships. Each unit cost $6.40.
- Lot A arrived first: 400 units, expiring March 31, 2027.
- Lot B arrived second: 300 units, expiring February 28, 2027.
B came in later but expires a month sooner. Each selling window closes 30 days before expiry. B’s closes on January 29, 2027, 59 days from today. A’s closes on March 1, 2027, 90 days from today.
| Sell order | Lot | Ships | Window closes | Units sold | Units at risk | At cost |
|---|---|---|---|---|---|---|
| First expired, first out | B | Dec 1 to Jan 19 (50 days) | Jan 29 | 300 | 0 | $0.00 |
| A | Jan 20 to Feb 28 (40 days) | Mar 1 | 240 | 160 | $1,024.00 | |
| Arrival order | A | Dec 1 to Feb 5 (about 67 days) | Mar 1 | 400 | 0 | $0.00 |
| B | Never: its window closes while A is still selling | Jan 29 | 0 | 300 | $1,920.00 |
First expired, first out. B sells first. At 6 a day its 300 units last 50 days, and its last units ship on January 19. A starts on January 20. It has 40 days until its window closes on March 1, which is 240 units at 6 a day. That leaves 160 units at risk, $1,024 at cost. To clear A, it would have to sell 10 a day from January 20 (400 units in 40 days). That is two-thirds more than today.
Arrival order. A sells first, because it came in first. Its 400 units take about 67 days, so the last ones ship on February 5. B’s window closed on January 29, day 59, while A was still selling. All 300 units of B are at risk: $1,920 at cost.
Selling the earliest expiry first saves 140 units and $896 here. It can’t save the other 160. By March 1, when the later window closes, 6 a day sells at most 540 units, and you hold 700. No sell order fixes that. Only more sales or a shorter shelf-life need can. The lasting fix is a smaller next order.
A days-left column points the wrong way. On December 1 it shows B at 89 days and A at 120. Under the color rules in the template section, B turns yellow and A stays plain. Yet B sells out in time, and A is the lot with 160 units at risk.
The shelf life your buyers need at shipment
This one number moves every date in the results. It is the number of days a unit must still have left on the day an order ships. You type it, because it depends on who buys:
- A promise on your product page. If you promise that every order arrives with at least 6 months before its date, use about 180, plus the days your orders spend in transit.
- A subscription. A subscriber who gets a 30-day supply each month needs the last serving to be in date. That is at least 30 days, plus the days in transit.
- A retailer or marketplace. Some buyers set a receiving rule. For stock you send to Amazon FBA, Amazon states:
“At the time of check-in at Amazon fulfillment center, all products must have a remaining shelf life that allows sufficient time for the product to be consumed in full, plus an additional 90 days. For example, a bottle of supplements with 240 daily servings must have a remaining shelf life of 240 days and an additional 90 days, which makes 330 days.”1
Checked on
Amazon also publishes a guide table of “Minimum arrival time at the fulfillment center before product expiration”. It says the table “is not an exhaustive list and is intended as a guide only.”1 Four of its rows:
| Product (Amazon’s wording) | Minimum arrival time before expiration |
|---|---|
| Pet food and treats | 180 days |
| Beverages such as coffee, tea, soda, and juice | 270 days |
| Herbal or mineral supplements | 730 days |
| Personal care and beauty products (shampoos, soaps, lotions, makeup, fragrances) | 900 days |
Checked on
Amazon calls the table “shelf-life guidelines”. The rule above depends on how long one unit takes to use up, so it changes from product to product. For supplements the two numbers can be far apart: 330 days in Amazon’s own example, 730 days in the table’s row for herbal or mineral supplements. Amazon’s page prints both. Read the rule and the table for your own product.1
Both are numbers at check-in, not at the moment you ship. For stock you send to Amazon, add the days the shipment takes to arrive and be checked in.
Here is how the number changes the worked example, with the same lots and the earliest expiry sold first:
| Shelf life needed at shipment | B’s window closes | A’s window closes | Units at risk | At cost |
|---|---|---|---|---|
| 0 days | Feb 28, 2027 | Mar 31, 2027 | 0 | $0.00 |
| 30 days | Jan 29, 2027 | Mar 1, 2027 | 160 | $1,024.00 |
| 60 days | Dec 30, 2026 | Jan 30, 2027 | 340 | $2,176.00 |
| 90 days | Nov 30, 2026 (already closed) | Dec 31, 2026 | 520 | $3,328.00 |
Each 30 days of shelf life you need moves both windows a month earlier. Going from 30 to 60 days more than doubles the loss in this example. At 90 days, B’s window closed the day before the example starts, so every unit of B is at risk before anything ships.
If you sell through channels with different rules, run each channel’s stock separately with its own number.
Stock with no known lot
First expired, first out sorts by date. A unit with no date has no place in that order, so no calculator can say when it should sell. This is usually stock you had before you started writing lots down. That often makes it your oldest stock, and it may expire before any of your dated lots.
So the calculator shows two answers side by side. Here is the worked example with 120 more units whose date you don’t know:
| Undated stock sells | Lot B at risk | Lot A at risk | Total at risk | At cost |
|---|---|---|---|---|
| After the dated lots | 0 | 160 | 160 | $1,024.00 |
| Before the dated lots | 66 | 214 | 280 | $1,792.00 |
Sold first, the 120 undated units take the first 20 days. B starts on December 21, and its window closes with 66 units left. A starts on January 29 and has 214 left when its window closes. Both windows close before their lots sell out, so each undated unit sold first leaves one more dated unit unsold: 280 is 160 plus 120.
Sold last, the undated units don’t change the dated lots at all. They start selling on March 1. That answer is right only if the undated units have more shelf life than your dated lots, and without a date you can’t tell. The way out is to count them by date. Open the cases, read the dates, and enter each date as its own lot.
The template and its Excel formulas
How do you keep track of expiration dates in Excel? Put one row per lot, with
its expiry date in column C. Add a days-left column with =C2-TODAY(), and format
that column as Number. Microsoft notes that a result like this “must be formatted as General or
Number for the result to display correctly.”2 Then color the column with conditional
formatting at 0, 30, 60 and 90 days. Days left tells you how long a lot has. The columns in the formula
table below tell you whether it will sell in that time.
Excel file, 5 sheets. No sign-up. Tested in Google Sheets and LibreOffice on November 26, 2026. Excel may open a file from the internet in Protected View, which is read-only. Select Enable Editing on the message bar before you type.5
The template has five sheets:
- How to use: the steps and what each column does.
- Settings: today’s date (
=TODAY(), or type a fixed date), days of shelf life needed at shipment, whether undated stock sells first or last, and the totals. It also counts the lots left out of the totals. - SKUs: one row per SKU with its daily sales and its units with no known lot. It totals units and value at risk per SKU. A SKU with no daily sales gets no result, as in the calculator.
- Lots: 500 rows with the formulas already in place. You type SKU, lot, expiry date, units and unit cost.
- Worked example: the vitamin D example above, in both sell orders.
The formulas read the row above, so sort the Lots sheet by SKU, then by expiry date, earliest first (Data, then Sort). The Status column says when a row is out of order: a SKU split across the sheet, a lot that expires before the one above it, or a row below one with no expiry date.
These are the core formulas for row 2 of the Lots sheet. Settings B1 holds today’s date and
Settings B2 the shelf life needed. In the template each one is wrapped in IF(…="","",…) so empty rows stay blank.
| Column | Formula | What it works out |
|---|---|---|
| F Days left | =C2-Settings!$B$1 | Days from today (Settings B1) to the expiry date |
| H Window closes | =C2-Settings!$B$2 | The expiry date minus the shelf life needed |
| I Window end | =H2-Settings!$B$1 | Days from today until the window closes |
| J Starts selling | =IF(A2<>A1,0,L1) | Day 0 for a SKU’s first lot. Otherwise, the day the lot above it stops selling |
| K Sold | =MAX(0,MIN(D2,ROUND(G2*(I2-J2),6))) | Units sold before the window closes, at G2 a day |
| L Stops selling | =IF(G2=0,J2,IF(K2<D2,MAX(J2,I2),J2+D2/G2)) | The window end if units are left, or the day the lot sells out. With daily sales of 0, the clock doesn’t move |
| M Units at risk | =ROUNDUP(ROUND(D2-K2,6),0) | Units left when the window closes, rounded up to whole units |
| N Value at risk | =M2*E2 | Units at risk × unit cost |
| O Needed per day | =IF(I2>J2,D2/(I2-J2),"Window closes first") | Daily sales this lot needs from its first selling day. Blank when daily sales are 0 |
Column G is the SKU’s daily sales, looked up from the SKUs sheet with VLOOKUP. If
the SKU’s daily sales cell is blank or isn’t a number, G stays blank and the lot gets no result.
When Settings B3 says undated stock sells first, a SKU’s first lot starts after those units
instead of at day 0. The ROUND(…,6) in K and M keeps a lot that sells out exactly on
time from showing a stray unit at risk.
Color the days left in Excel. Select F2:F501. On the Home tab, choose Conditional Formatting, Manage Rules, New Rule, and “Use a formula to determine which cells to format”.3 The order of the rules matters. Excel evaluates them “in order of precedence (top to bottom)”, and when two conflict, “The rule that is applied is the one that is higher in precedence”.3 Microsoft also notes: “By default, new rules are always added to the top of the list and therefore have a higher precedence”.3 So add the four rules in this order, widest first:
=AND(ISNUMBER($F2),$F2<=90)with a yellow fill=AND(ISNUMBER($F2),$F2<=60)with an orange fill=AND(ISNUMBER($F2),$F2<=30)with a red fill=AND(ISNUMBER($F2),$F2<=0)with a dark red fill
The last rule you add, the 0-day rule, ends up at the top of the list. If the list shows a different order, select a rule and use the Move Up and Move Down arrows.3 The template has these rules in place. It also highlights the units and value at risk on every lot that has any.
Color the days left in Google Sheets. Choose Format, then Conditional formatting, then “Custom formula is” under “Format cells if”.7 Use the same four formulas. Here the order runs the other way: “Rules are evaluated in the order listed. The first rule found to be true will define the format of the cell or range.”7 So the 0-day rule goes first in the list, then 30, 60 and 90. To change the order, Google says to “click and drag them”.7 Google also notes that these formulas “can only reference the same sheet” unless you use INDIRECT.7 The template’s color rules read only the Lots sheet’s own columns.
If the date doesn’t change. TODAY() should move each day you open the file. If it doesn’t, Microsoft’s fix is: “On the File tab, click Options, and then in the Formulas category under Calculation options, make sure that Automatic is selected.”2
If the pack shows only a production date. Work out the expiry date first. Type
the production date in a spare column, such as R. Then, in the expiry date cell C2, type =R2+730 for a shelf life of 730 days, or =EDATE(R2,24) for 24 months. EDATE returns the
date “that is the indicated number of months before or after” the start date.4 In Amazon’s listing settings, this expiration type is “Production Date Required”.1
Google Sheets functions. Every function the template uses is in Google’s function list: TODAY, IF, IFERROR, ISNUMBER, AND, OR, MIN, MAX, ROUND, ROUNDUP, INT, N, VLOOKUP, COUNTIF, COUNTA, COUNT, SUMIFS and SUM. So is EDATE.6
What to do with a lot at risk
Each result points to one of three moves, and each move has its own number. For lot A in the worked example:
| Move | The number to use | Lot A |
|---|---|---|
| Sell some of it through a second channel as well | Units at risk ÷ days until the window closes: the extra units a day the lot needs, from today | 160 ÷ 90 = about 1.8 more a day from December 1. The channel has to accept a unit with 120 days left today, and fewer each day after |
| Mark it down once it is the lot that ships | Needed per day: how far sales of this lot must rise from its first selling day | From 6 to 10 a day, January 20 to February 28. A markdown that lifts sales by less than two-thirds leaves units over |
| Write it off | Value at risk | $1,024 at cost, before any cost of disposal |
The earlier you act, the smaller the change. Lot A needs about 1.8 more units a day if you start on December 1, or 4 more a day if you wait until January 20.
A second channel only helps if it takes short-dated stock. A buyer with a long receiving rule can’t take lot A. Amazon’s rule, for example, asks for the time it takes to use the product in full, plus 90 days, at check-in.1 If each bottle holds 60 daily servings, that is 60 + 90 = 150 days. Lot A has 120 days left on December 1, before any transit time.
Mark down only the lot at risk, and only once it is the lot that ships. A markdown on A while B still sells pulls orders away from B and can put B at risk instead.
Stock that isn’t expiring but isn’t selling either is a different problem. The inventory turnover calculator measures how long stock sits.
What this method assumes
- Daily sales stay the same. A season, a promotion or a stockout moves every date. Run it again with the rate you expect.
- Every order ships the earliest-expiring lot first. If pickers take whichever case is nearest, expect more units at risk than the FEFO answer. The “order I pasted” option shows one other order.
- Only stock on hand counts. Under first expired, first out, a delivery that expires after your current lots doesn’t change their results. One that expires sooner does. You can add it as a lot, but the calculator lets every lot sell from today, so for stock still on its way the answer is rough.
- Returns, damage and samples are not counted. Take them out of units on hand before you paste.
- Each “extra a day” figure is for one lot on its own. Clearing one lot early lets the next one start sooner, so the figures overlap when several lots are at risk.
- One daily rate per SKU covers all channels. For a channel with its own shelf-life rule, run its stock separately, as the shelf-life section says.
Sources
- Expiration dates on FBA products Amazon Seller Central Help. Checked on
- TODAY function Microsoft Support. Checked on
- Use conditional formatting to highlight information in Excel Microsoft Support. Checked on
- EDATE function Microsoft Support. Checked on
- What is Protected View? Microsoft Support. Checked on
- Google Sheets function list Google Docs Editors Help. Checked on
- Use conditional formatting rules in Google Sheets Google Docs Editors Help. Checked on
Change log
- The template tested in Google Sheets and LibreOffice on November 26, 2026; the page now says so and is open to search engines.
- First published. Amazon’s shelf-life rule and the Excel and Google Sheets help pages checked November 25, 2026.