How to send automatic expiry reminders from Google Sheets
Updated November 2026
Short answer
Google Sheets cannot email you on its own, so it takes two parts: a column that computes days remaining, and an Apps Script on a daily time trigger that reads that column and sends mail when the number crosses your threshold. Both are below, and they work. What they will not do is chase the person who holds the document, which is the step that actually decides whether the renewal happens.
The short version
- Sheets has no date-based email of its own: it takes a days-left column plus an Apps Script on a daily trigger.
- Guard the formula against empty rows, or the digest starts reporting dates in 1899.
- Send one daily summary rather than one email per row — a list gets read, twelve emails get filed.
- The script reminds you, not the person holding the document. That is the step it cannot do.
Step 1: a column that computes days remaining
Put the expiry date in a real date cell, not text. If Sheets left-aligns it by default it is storing a string, and every formula below fails silently.
Then wrap the subtraction so empty rows stay blank. A row that reports −46,000 days is the commonest reason these sheets start emailing nonsense.
=IF(B2="", "", B2 - TODAY())
// A status column reads better than a number in a review meeting:
=IF(B2="", "", IF(B2<TODAY(), "Expired",
IF(B2-TODAY()<=30, "Due soon", "OK")))Step 2: conditional formatting so the sheet is readable
Select the date column, then Format → Conditional formatting, and add two custom-formula rules: red for anything already past, amber for anything inside your notice window.
Order matters. Sheets applies the first rule that matches, so the expired rule has to sit above the due-soon one or everything overdue shows as amber.
Expired (red): =AND($B2<>"", $B2 < TODAY())
Due soon (amber): =AND($B2<>"", $B2-TODAY() <= 30, $B2 >= TODAY())Step 3: the Apps Script that sends the email
Open Extensions → Apps Script and paste the function below. It reads every row and sends one summary email listing whatever falls inside the window — twelve separate emails get filed as noise, one list gets read.
Run it once from the editor first. Google will ask you to authorise it to send mail as you; that prompt is expected, and it is why the mail arrives from your own address.
function sendExpiryDigest() {
const WINDOW_DAYS = 30;
const TO = Session.getActiveUser().getEmail();
const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
// Row 1 is headers. Columns: A = name, B = expiry date.
const rows = sheet.getRange(2, 1, sheet.getLastRow() - 1, 2).getValues();
const today = new Date();
today.setHours(0, 0, 0, 0);
const due = [];
for (const [name, expiry] of rows) {
if (!name || !(expiry instanceof Date)) continue;
const days = Math.round((expiry - today) / 86400000);
if (days <= WINDOW_DAYS) due.push({ name, expiry, days });
}
if (!due.length) return; // say nothing when there is nothing to say
due.sort((a, b) => a.days - b.days);
const body = due
.map((d) =>
d.days < 0
? `${d.name} — EXPIRED ${Math.abs(d.days)} days ago`
: `${d.name} — ${d.days} days left (${d.expiry.toDateString()})`,
)
.join("\n");
MailApp.sendEmail({
to: TO,
subject: `${due.length} item(s) expiring soon`,
body: `${body}\n\nFrom your tracking sheet.`,
});
}Step 4: the trigger that runs it without you
In the Apps Script editor open Triggers, add one for sendExpiryDigest, and choose Time-driven → Day timer with a window such as 6–7am. Google runs it inside that hour, which is fine for a daily digest.
Set the failure notification to notify you immediately. A trigger that starts failing — someone renames the sheet, someone inserts a column — fails quietly, and a silent tracker is worse than none, because you stop checking by hand.
Trigger function — sendExpiryDigest
Event source — Time-driven → Day timer
Time of day — 6am to 7am, or any quiet hour
Failure notifications — Notify me immediately — the setting people skip
Where this approach runs out
Three things break it, and none of them is volume.
The mail comes to you — not to the person holding the document, so every reminder becomes a task you still have to perform
Nothing records what happened — you cannot tell whether last month's reminder was actioned, ignored, or sent to someone who had left
It belongs to one account — the triggers run as whoever authorised them and stop when that person does
reminders@expiryledger.com
Northgate Facilities needs your renewed Public Liability Insurance
The copy they hold expires 30 Jun 2027. Send the renewed version — it takes about a minute.
No account needed
Northgate Facilities has asked you for
Public Liability Insurance
The copy they hold expires 30 Jun 2027.
New expiry date
The document
A spreadsheet plus a script is genuinely the right answer for a handful of dates you own yourself. It stops being the right answer at the point where somebody else has to act on the reminder.
Common questions
- Can Google Sheets send an email reminder without Apps Script?
- No. Sheets has no built-in notification based on a cell's date — the notification rules only fire when someone edits the file. Any date-based email needs Apps Script, or an external tool reading the sheet.
- Why does my days-left formula show a huge negative number?
- The expiry cell is empty, so Sheets treats it as zero and subtracts today from 30 December 1899. Guard it with IF(B2="", "", ...) as above, and check the column is formatted as a date rather than plain text.
- Will the script keep running if I close the browser?
- Yes. Time-driven triggers run on Google's servers, independent of your browser. They stop if the script errors repeatedly, if the sheet is deleted, or if the Google account that authorised them is suspended.
- Can I send the reminder to the supplier instead of to myself?
- You can change the `to` address, but sending a chase from a script is rarely a good idea — there is no reply handling, no record of whether it was answered, and no second attempt. That is the point at which a purpose-built tracker earns its place.
Let the dates chase themselves
ExpiryLedger tracks every renewal and emails you — and the person holding the document — before it lapses. Free for 25 items, no card.
Start tracking — free