Email yourself a weekly summary from a Sheet

Sends a short email with the row count and the total of column C from the active spreadsheet. Add a weekly time-driven trigger to run it every Monday.

function sendWeeklySummary() {
  const sheet = SpreadsheetApp.getActiveSpreadsheet().getSheets()[0];
  const values = sheet.getDataRange().getValues().slice(1); // skip header
  const total = values.reduce((sum, r) => sum + (Number(r[2]) || 0), 0);
  const body = `Rows: ${values.length}\nTotal of column C: ${total.toFixed(2)}`;
  MailApp.sendEmail(Session.getActiveUser().getEmail(), 'Weekly sheet summary', body);
}

How to install

  1. Open the spreadsheet, then Extensions > Apps Script.
  2. Paste the code, click Save.
  3. Choose the function in the toolbar and click Run once; approve the permissions screen (it lists exactly what the script can touch).
Safety: Sends only to your own address. Daily email quotas apply (see Google's quotas page).

Undo: Delete the trigger under Triggers (clock icon) to stop it.

Reference: Apps Script documentation.

Facts on this page checked December 4, 2026 (Pacific) against the linked official sources.