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:

ColHeaderWhat goes in it
AServiceWhat it is, as you'd recognize it on a card statement: “Website hosting”, “Design app (2 seats)”
BCategoryOptional: Software, Hosting, Marketing, Phone, Media…
COwner emailThe person who decides whether to keep it. Blank means the reminders come to you. Two people? Separate the addresses with commas.
DCostThe amount of one charge, formatted as currency. The email shows it exactly as the cell does.
ECycleA Data › Data validation dropdown: Weekly, Every 2 weeks, Monthly, Quarterly, Semi-annual, Annual, Every 2 years
FBilling dateAny 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.
GTrial endsOptional: the day a free trial turns into a paid plan. Put the same date in Billing date.
HNotice daysOptional: how many days before renewal you must cancel (from the terms or the order form). Blank means 0.
IStatusBlank or Active normally. Cancelled, Canceled, Paused, Ended, Inactive or Closed stop the reminders.
JManage atOptional: the billing or cancellation page, so the reminder links straight to it
KSent logLeave empty; the script records what it sent
LNext chargeA formula (Step 2)
MCancel byA formula (Step 2)
NPer yearA 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 formulaColorMeaning
=REGEXMATCH(LOWER($I2),"^(cancelled|canceled|paused|ended|inactive|closed)$")Grey textStopped, kept for the record
=AND($G2<>"",$G2>=TODAY(),$G2<=TODAY()+7)RedFree trial ends this week
=AND($M2<>"",$M2<=TODAY()+30)AmberLast 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:

  1. Run sendSubscriptionReminders once and approve the permissions. PREVIEW is true, so every email comes to you, with the real recipients in the subject, and nothing is logged.
  2. Read the previews. When they look right, set PREVIEW = false and save.
  3. 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:

Tips

Want reminders without maintaining a script? SheetReminders (disclosure: we make it) is a Google Sheets add-on that watches a date column, such as Cancel by or Trial ends, and emails the right person on time: several reminders per date (like 30 and 7 days before), personalized messages with {{Column name}} and {{Days left}}, a digest mode with one email per person, skipping rows whose Status says Done, and a sent log written back to the row. Point it at the Cancel by formula column from Step 2, which moves forward by itself after each renewal. Sheet data stays inside your Google account and it uses narrow scopes. 14-day free trial, no credit card required. It is live on the Google Workspace Marketplace.
See SheetReminders
Short on time? Watch the 50-second version

Related Google Sheets guides

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.