How to Track Subscriptions in Google Sheets and Get Reminders Before Renewals and Free Trials Charge You (2026)
Software plans, hosting, storage, design tools, phone systems, streaming: a small business or a household can easily have twenty subscriptions on a few cards, and the annual ones are the ones that sting, because they renew once a year when nobody remembers signing up. Free trials are worse: they turn into paid plans on a date you saw once. This guide builds a subscription tracker in Google Sheets that does three things the usual templates don't: you type one billing date per subscription and the next charge date rolls forward by itself every cycle, it handles “cancel at least 30 days before renewal” notice periods, and a free Apps Script emails whoever owns each subscription before an annual renewal or a free trial ends, with a preview mode so you can read every email before anything goes out.
Step 1: a Subscriptions tab with one row per subscription
Name the tab Subscriptions. The script finds columns by their header, so you can add your own columns and change the order; the formulas below assume this layout:
| Col | Header | What goes in it |
|---|---|---|
| A | Service | What it is, as you'd recognize it on a card statement: “Website hosting”, “Design app (2 seats)” |
| B | Category | Optional: Software, Hosting, Marketing, Phone, Media… |
| C | Owner email | The person who decides whether to keep it. Blank means the reminders come to you. Two people? Separate the addresses with commas. |
| D | Cost | The amount of one charge, formatted as currency. The email shows it exactly as the cell does. |
| E | Cycle | A Data › Data validation dropdown: Weekly, Every 2 weeks, Monthly, Quarterly, Semi-annual, Annual, Every 2 years |
| F | Billing date | Any date it has charged, or will charge, on schedule: the sign-up date, last month's receipt or the first charge after a trial. You never have to update it. |
| G | Trial ends | Optional: the day a free trial turns into a paid plan. Put the same date in Billing date. |
| H | Notice days | Optional: how many days before renewal you must cancel (from the terms or the order form). Blank means 0. |
| I | Status | Blank or Active normally. Cancelled, Canceled, Paused, Ended, Inactive or Closed stop the reminders. |
| J | Manage at | Optional: the billing or cancellation page, so the reminder links straight to it |
| K | Sent log | Leave empty; the script records what it sent |
| L | Next charge | A formula (Step 2) |
| M | Cancel by | A formula (Step 2) |
| N | Per year | A formula (Step 2) |
Format F, G, L and M as dates (Format › Number › Date). The fastest way to fill the list is your card and bank statements for the last 12 months: search them for the same amount recurring, and for annual charges look back a full year. Keep card numbers out of the sheet; a short “Paid with” note such as “company card” is enough.
Step 2: next charge, cancel-by date and cost per year
Next charge, in L2, fill down. It starts from the billing date and steps forward one cycle at a time until it reaches a charge you can still cancel (today plus the notice days), using EDATE so a plan billed on the 31st charges on the last day of shorter months, and DATEDIF to count the whole months already gone:
=LET(b, F2, t, TODAY() + N(H2), c, LOWER(E2),
mo, IFERROR(SWITCH(c, "monthly",1, "quarterly",3, "semi-annual",6, "annual",12, "every 2 years",24), 0),
wk, IFERROR(SWITCH(c, "weekly",7, "every 2 weeks",14), 0),
IF(OR(b = "", mo + wk = 0), "",
IF(b >= t, b,
IF(wk > 0, b + wk * CEILING((t - b) / wk),
LET(k, INT(DATEDIF(b, t, "M") / mo), d, EDATE(b, mo * k),
IF(d >= t, d, EDATE(b, mo * (k + 1))))))))
With no notice days, that is simply the next charge on or after today. With a notice period, a renewal whose cancel-by date has already passed is locked in, so the formula shows the one after it, which is the one you can still do something about.
Cancel by, in M2: =IF(L2="","",L2-N(H2))
Per year, in N2. Monthly plans look cheap until you see them multiplied:
=IF(OR(D2="", E2=""), "", D2 * IFERROR(SWITCH(LOWER(E2), "weekly",52, "every 2 weeks",26, "monthly",12, "quarterly",4, "semi-annual",2, "annual",1, "every 2 years",0.5), 0))
Then select A2:N, open Format › Conditional formatting, choose Custom formula is and add these rules in this order:
| Custom formula | Color | Meaning |
|---|---|---|
=REGEXMATCH(LOWER($I2),"^(cancelled|canceled|paused|ended|inactive|closed)$") | Grey text | Stopped, kept for the record |
=AND($G2<>"",$G2>=TODAY(),$G2<=TODAY()+7) | Red | Free trial ends this week |
=AND($M2<>"",$M2<=TODAY()+30) | Amber | Last day to cancel is in the next 30 days |
Step 3: a Summary tab
Everything you can still cancel in the next 30 days, soonest deadline first:
=SORT(FILTER({Subscriptions!A2:A, Subscriptions!L2:L, Subscriptions!M2:M, Subscriptions!D2:D, Subscriptions!C2:C},
Subscriptions!M2:M<>"", Subscriptions!M2:M<=TODAY()+30,
NOT(REGEXMATCH(LOWER(Subscriptions!I2:I), "^(cancelled|canceled|paused|ended|inactive|closed)$"))),
3, TRUE)
Total yearly spend on everything still running (divide by 12 for the monthly figure):
=IFERROR(SUM(FILTER(Subscriptions!N2:N, Subscriptions!N2:N<>"", NOT(REGEXMATCH(LOWER(Subscriptions!I2:I), "^(cancelled|canceled|paused|ended|inactive|closed)$")))), 0)
Yearly spend per category, biggest first:
=QUERY(Subscriptions!A1:N, "select B, sum(N) where N is not null and not I matches 'Cancelled|Canceled|Paused|Ended|Inactive|Closed' group by B order by sum(N) desc label sum(N) 'Per year'", 1)
Once a year, sort the Subscriptions tab by Per year and ask of the top ten: who uses it, and would we sign up again today at this price?
Step 4: email the owner before the charge
A sheet that turns amber only helps if someone opens it. Open Extensions › Apps Script, paste the script below and save. Then:
- Run
sendSubscriptionRemindersonce and approve the permissions.PREVIEWistrue, so every email comes to you, with the real recipients in the subject, and nothing is logged. - Read the previews. When they look right, set
PREVIEW = falseand save. - Add the trigger: Triggers › Add trigger › sendSubscriptionReminders › Time-driven › Day timer, for example 8 to 9 AM. See Google's installable triggers page for the details.
/**
* Subscription renewal and free-trial reminders from a "Subscriptions" tab:
* one row per subscription. You type ONE billing date (any past or upcoming
* charge) and the cycle; the script works out the next charge itself, so the
* date never needs updating after each renewal.
* Headers used (any order): Service, Owner email, Cost, Cycle, Billing date,
* Trial ends, Notice days, Status, Manage at, Sent log.
* Required: Service, Cycle, Billing date, Sent log. A blank or missing Owner
* email means the reminder comes to you.
* Each owner gets at most one email per run listing everything due.
*/
const SHEET_NAME = 'Subscriptions';
const ANNUAL_DAYS = [30, 7]; // cycles of 12 months or more: days before renewal (or notice deadline)
const QUARTERLY_DAYS = [7]; // cycles of 3 to 11 months
const MONTHLY_DAYS = []; // monthly and weekly cycles: none by default, e.g. [2] for a heads-up every time
const TRIAL_DAYS = [7, 2]; // days before a free trial ends
const STOP_STATUS = /^(cancelled|canceled|paused|ended|inactive|closed)$/i;
const CC_EMAIL = ''; // optional: copy every reminder to e.g. a bookkeeper
const PREVIEW = true; // true: everything goes to you, nothing is logged
const MAX_EMAILS = 50; // safety cap per run
const LOG_KEEP = 20; // entries kept in each Sent log cell
const INTRO = 'These subscriptions renew or end soon:';
const OUTRO = 'Keeping one? Nothing to do. Cancelled one? Set its Status to Cancelled so the reminders stop.';
function sendSubscriptionReminders(now) {
const lock = LockService.getDocumentLock();
if (!lock.tryLock(30000)) return; // another run is still going
try {
// A time-driven trigger passes an event object, so only use a real Date.
return remind_(now instanceof Date ? new Date(now) : new Date());
} finally {
lock.releaseLock();
}
}
// "Monthly", "Annual", "Every 2 weeks", "Quarterly", or a number of months.
function cycleOf_(v) {
if (typeof v === 'number') return v > 0 && v === Math.floor(v) ? { months: v } : null;
const s = String(v).trim().toLowerCase().replace(/\s+/g, ' ').replace(/-/g, '');
const named = { weekly: { days: 7 }, biweekly: { days: 14 }, fortnightly: { days: 14 },
monthly: { months: 1 }, bimonthly: { months: 2 }, quarterly: { months: 3 },
semiannual: { months: 6 }, semiannually: { months: 6 }, halfyearly: { months: 6 },
annual: { months: 12 }, annually: { months: 12 }, yearly: { months: 12 }, biennial: { months: 24 } };
if (named[s.replace(/ /g, '')]) return named[s.replace(/ /g, '')];
const m = s.match(/^every (\d+) (week|month|year)s?$/);
if (!m || +m[1] < 1) return null;
return m[2] === 'week' ? { days: 7 * m[1] } : { months: m[2] === 'year' ? 12 * m[1] : +m[1] };
}
function remind_(now) {
const ss = SpreadsheetApp.getActive();
const sh = ss.getSheetByName(SHEET_NAME);
if (!sh) throw new Error(`No tab named ${SHEET_NAME}.`);
const range = sh.getDataRange();
const rows = range.getValues(), shown = range.getDisplayValues(); // shown keeps your currency format
const head = rows[0].map((h) => String(h).trim().toLowerCase());
const col = (name) => head.indexOf(name.toLowerCase());
const c = { svc: col('Service'), to: col('Owner email'), cost: col('Cost'), cycle: col('Cycle'),
bill: col('Billing date'), trial: col('Trial ends'), notice: col('Notice days'),
status: col('Status'), url: col('Manage at'), log: col('Sent log') };
if ([c.svc, c.cycle, c.bill, c.log].includes(-1)) {
throw new Error('Need Service, Cycle, Billing date and Sent log columns.');
}
// Whole days in the spreadsheet's own time zone (File > Settings).
const tz = ss.getSpreadsheetTimeZone();
const ymd = (d) => Utilities.formatDate(d, tz, 'yyyy-MM-dd').split('-').map(Number);
const num = (y, m, d) => Date.UTC(y, m - 1, d) / 86400000; // day number
const back = (n) => new Date(n * 86400000); // day number -> UTC date
const nice = (n) => { const d = back(n);
return `${['Sun','Mon','Tue','Wed','Thu','Fri','Sat'][d.getUTCDay()]}, ` +
`${['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'][d.getUTCMonth()]} ` +
`${d.getUTCDate()}, ${d.getUTCFullYear()}`; };
const iso = (n) => back(n).toISOString().slice(0, 10);
const today = num(...ymd(now));
const isDate = (v) => v instanceof Date && !isNaN(v);
const EMAIL = /^[^\s@,;]+@[^\s@,;]+\.[^\s@,;]+$/;
const me = Session.getEffectiveUser().getEmail();
const text = (r, i) => (i === -1 ? '' : String(rows[r][i]).trim());
// Charge k cycles after the billing date. Months keep the day of the month
// where they can: a plan billed on the 31st charges on Feb 28, then Mar 31.
const charge = (b, cy, k) => {
if (cy.days) return num(...b) + cy.days * k;
const t = b[1] - 1 + cy.months * k, y = b[0] + Math.floor(t / 12), m = (t % 12 + 12) % 12 + 1;
return num(y, m, Math.min(b[2], new Date(Date.UTC(y, m, 0)).getUTCDate()));
};
const per = (cy) => cy.days ? (cy.days === 7 ? 'a week' : `every ${cy.days / 7} weeks`) :
({ 1: 'a month', 3: 'a quarter', 12: 'a year' })[cy.months] ||
(cy.months % 12 ? `every ${cy.months} months` : `every ${cy.months / 12} years`);
const until = (n) => n > 1 ? `in ${n} days` : n === 1 ? 'tomorrow' : 'TODAY';
const groups = {};
let bad = 0;
for (let r = 1; r < rows.length; r++) {
const svc = text(r, c.svc);
if (!svc || STOP_STATUS.test(text(r, c.status))) continue;
const cy = cycleOf_(rows[r][c.cycle]);
const trialEnd = c.trial === -1 || !isDate(rows[r][c.trial]) ? null : num(...ymd(rows[r][c.trial]));
const cost = c.cost === -1 ? '' : String(shown[r][c.cost]).trim();
const price = cost && cy ? `, ${cost} ${per(cy)}` : '';
const url = text(r, c.url);
let ev;
if (trialEnd !== null && trialEnd >= today) {
// A trial that hasn't ended yet comes first: it's the charge you didn't sign up for.
ev = { type: 'T', on: trialEnd, left: trialEnd - today, steps: TRIAL_DAYS };
ev.line = `- ${svc}: free trial ends ${nice(trialEnd)} (${until(ev.left)})` +
(price ? `; after that${price.slice(1)}` : '');
} else {
if (!cy || !isDate(rows[r][c.bill])) {
bad++; console.log(`Row ${r + 1}: check Cycle and Billing date`); continue;
}
const b = ymd(rows[r][c.bill]);
const notice = Math.max(0, Math.floor(Number(text(r, c.notice)) || 0));
// First charge whose cancel-by date (charge minus notice) is today or later.
let k = cy.days ? Math.max(0, Math.floor((today + notice - num(...b)) / cy.days))
: Math.max(0, Math.floor(((back(today + notice).getUTCFullYear() - b[0]) * 12 +
back(today + notice).getUTCMonth() + 1 - b[1]) / cy.months) - 1);
while (charge(b, cy, k) - notice < today) k++;
const on = charge(b, cy, k), act = on - notice;
const long = cy.days ? 0 : cy.months;
ev = { type: 'R', on, left: act - today, steps: long >= 12 ? ANNUAL_DAYS : long >= 3 ? QUARTERLY_DAYS : MONTHLY_DAYS };
ev.line = notice
? `- ${svc}: renews ${nice(on)}; to cancel, give notice by ${nice(act)} (${until(ev.left)}, ${notice} days' notice)${price}`
: `- ${svc}: renews ${nice(on)} (${until(ev.left)})${price}`;
}
if (url) ev.line += `\n Manage or cancel: ${url}`;
// The one step that fits today, so a late start or a missed day sends one email, not a pile.
const hit = ev.steps.filter((s) => ev.left <= s).sort((a, b) => a - b)[0];
if (hit === undefined) continue;
const sent = String(rows[r][c.log] || '').split(';').filter(String);
const key = `${ev.type}${iso(ev.on)}@${hit}`; // each new charge date starts over
if (sent.includes(key)) continue;
const raw = text(r, c.to);
const list = raw ? [...new Set(raw.split(/[,;]/).map((s) => s.trim().toLowerCase()).filter(String))].sort() : [me];
if (!list.length || !list.every((a) => EMAIL.test(a))) {
bad++; console.log(`Row ${r + 1}: check the Owner email column`); continue;
}
const to = list.join(',');
const g = (groups[to] = groups[to] || { to, n: list.length, items: [] });
g.items.push({ r: r + 1, svc, left: ev.left, trial: ev.type === 'T', line: ev.line,
log: sent.concat(key).slice(-LOG_KEEP).join(';') });
}
// Soonest first, in case the quota or MAX_EMAILS runs out.
const order = Object.values(groups).map((g) => {
g.items.sort((a, b) => a.left - b.left || a.r - b.r);
g.soonest = g.items[0].left;
return g;
}).sort((a, b) => a.soonest - b.soonest);
const names = (it) => { const n = it.map((i) => i.svc);
return n.length === 1 ? n[0] : n.length <= 3 ? n.slice(0, -1).join(', ') + ' and ' + n[n.length - 1]
: n.slice(0, 2).join(', ') + ` and ${n.length - 2} more`; };
const cc = CC_EMAIL ? CC_EMAIL.split(',').map((s) => s.trim()).filter(String) : [];
let sent = 0;
for (const g of order) {
if (sent >= MAX_EMAILS || MailApp.getRemainingDailyQuota() < (PREVIEW ? 1 : g.n + cc.length)) break;
const subject = (g.items.some((i) => i.trial) ? 'Free trial ending: ' : 'Renewing soon: ') + names(g.items);
const body = [INTRO, '', ...g.items.map((i) => i.line), '', OUTRO, '', `Sheet: ${ss.getUrl()}`].join('\n');
const mail = PREVIEW ? { to: me, subject: `[PREVIEW to ${g.to}${cc.length ? ' cc ' + cc.join(',') : ''}] ${subject}`, body }
: { to: g.to, subject, body };
if (!PREVIEW && cc.length) mail.cc = cc.join(',');
MailApp.sendEmail(mail);
sent++;
if (!PREVIEW) {
// Log right after each email, so a crash can't cause a repeat.
g.items.forEach((i) => sh.getRange(i.r, c.log + 1).setValue(i.log));
SpreadsheetApp.flush();
}
}
const result = { sent, left: order.length - sent, bad, preview: PREVIEW };
console.log(JSON.stringify(result));
return result;
}
How it behaves:
- It works out the next charge itself from Billing date and Cycle, the same way as the formula, so it doesn't depend on the formula columns and nobody has to type a new date after each renewal. It accepts the dropdown values above, plus Yearly, Biweekly, “Every 3 months” and the like, or a plain number of months.
- Annual renewals: 30 and 7 days before (
ANNUAL_DAYS). Quarterly and semi-annual plans get one reminder 7 days before (QUARTERLY_DAYS). Monthly and weekly plans get none by default, because a reminder every month for a plan you're keeping teaches everyone to ignore the emails; setMONTHLY_DAYS = [2]if you want them. - Free trials: 7 and 2 days before the Trial ends date (
TRIAL_DAYS), whatever the cycle, with the price it turns into. After the trial date the row is a normal subscription. - Notice periods count to the deadline. With Notice days set, the reminder days count back from the cancel-by date, not the renewal: “CRM: renews Thu, Jan 14, 2027; to cancel, give notice by Tue, Dec 15, 2026 (in 29 days, 30 days' notice)”.
- One email per owner per run, soonest first, with each line's cost as the sheet shows it, the Manage at link if you have one, and a link to the sheet (this goes to your own team, not to customers). The subject names the services and starts with “Free trial ending:” when a trial is in it.
CC_EMAILcopies every reminder to, say, whoever does the books. - Every charge starts over. The Sent log records each charge date and step (for example
R2026-12-16@30), so next year's renewal is reminded again without you touching anything, and a run that missed a few days sends only the latest reminder that still applies, once. - Safe to rerun. Rows are logged right after each email, a document lock stops two runs overlapping, at most
MAX_EMAILSemails go per run, and it stops before your daily Apps Script email quota runs out (100 recipients a day on a consumer Gmail account, 1,500 on Google Workspace; CC addresses count). Rows with an unknown cycle, no billing date or a broken email address are skipped and listed by row number in the execution log.
Tips
- Cancel, then mark it. Set Status to Cancelled only after the cancellation confirmation arrives, and file that email; until then the reminders keep coming, which is the point.
- Price changes. When a renewal comes in higher, update Cost and add a note with the old price and date, so the yearly review shows what crept up.
- Seats and usage. For per-seat plans, put the seat count in the Service name or its own column and check it against who still uses the tool before the annual renewal, when it's cheapest to drop seats.
- Contracts with formal notice terms (leases, service agreements) are better tracked on their own; see contract renewal and expiration alerts. Domains and SSL certificates have their own guide: domain and SSL renewal reminders.
- Selling subscriptions rather than paying for them? That's a different sheet: see membership renewal reminders and invoice payment reminders.
- Check the time zone. The script counts days in the spreadsheet's time zone (File › Settings › Time zone), and the trigger fires in the Apps Script project's time zone (Project Settings).
- Ownership. Triggers run as whoever created them, and the emails come from that account. For a business, set it up from a shared account rather than one employee's.
See SheetReminders
Short on time? Watch the 50-second version
Related Google Sheets guides
- How to generate a PDF or Google Doc for each row in Google Sheets
- Find and remove duplicates in Google Sheets
- Compare two columns or two sheets for duplicates
- Find case-insensitive and fuzzy duplicates in Google Sheets
- Best Autocrat alternatives for mail merge to PDF and Docs
- Make invoices or certificates from Google Sheets rows
- Create sales quotes or estimates from Google Sheets
- Generate receipts from Google Sheets rows
- Create purchase orders from Google Sheets
- Make packing slips from Google Sheets orders
- Generate a PDF certificate from a Google Form response
- Issue numbered training completion certificates with expiry dates
- Make a PDF progress report for each student
- Generate offer letters from a Google Sheets hiring tracker
- Generate contracts and agreements from a Google Docs template
- Make work orders for service jobs from Google Sheets
- Email each row’s PDF as an attachment
- Automatic email reminders from a date column
- Contract renewal and expiration alerts from Google Sheets
- Track certificate of insurance (COI) expirations in Google Sheets
- Track employee license and certification expirations
- Track equipment and vehicle maintenance with reminders
- Equipment sign-out sheet with due-back and overdue reminders
- Track warranty expiration dates with reminders
- Birthday and work anniversary reminders from Google Sheets
- Rent due and lease renewal reminders from Google Sheets
- Send invoice payment reminders from Google Sheets
- Highlight overdue tasks and send email reminders
- Follow-up reminders for leads, clients and candidates
- Membership renewal reminders for clubs and associations
- Appointment reminder emails for clients
- Probation and performance review reminders for managers
- Inventory expiration dates with email alerts
- Domain and SSL certificate renewal reminders
- Name badges and place cards from a guest list
- Vehicle registration, inspection and insurance reminders
- Event sign-in sheets and table seating lists
- Pet vaccination expiry reminders for owners
- Customer account statements with aging
- Mailing labels: one per household, clean addresses
- Volunteer shifts: open slots, reminders and rosters
- Year-end donor giving statements, one PDF per donor
- Volunteer hours verification letters, one PDF per request
- Instrument calibration due dates with email reminders
- Pay stubs from a payroll sheet, one PDF per employee
- Gift certificates with codes, balances and a redemption log
- Bill due dates: mark paid, 30-day totals and reminders
- Grant deadlines: LOIs, reports, owners and reminders
- Passport expiry: trips, the 6-month rule and renewal reminders
- Class rosters: one PDF per class, A–Z, with seat counts
- Insurance renewals: premium changes and reminders
- Onboarding checklists: tasks from start dates, owner reminders
- Raffle tickets: numbered stubs, seller books, sales tracker
- SheetWeave vs Autocrat
- SheetWeave vs Document Studio
- SheetWeave vs RowDocs
Instructions refer to Google Sheets and Apps Script as they stood on November 15, 2026. Not financial or legal advice, and not affiliated with Google or any subscription service. Google Sheets is a trademark of Google LLC. Renewal and cancellation terms vary by provider, so check each one's terms and keep its confirmation emails. Questions or corrections: hello@loomwise.app.