Skip to content

How to Add a Timestamp in Google Sheets

Genuine Google Sheets example comparing a fixed date-time value with a recalculating NOW formula.

Choose a timestamp method according to what the value should mean. A fixed value records a moment you entered or captured. A NOW() formula shows the time of the spreadsheet's latest recalculation. Those values serve different purposes.

For a created-at column, use a fixed value or an edit-triggered script with clear limits. For a dashboard clock, a recalculating formula can be appropriate. Neither approach by itself creates a tamper-proof audit log.

Fixed date-time value compared with a recalculating NOW formula in Google Sheets.
Synthetic workbook example. The fixed value remains November 20, 2026 at 9:00 AM. The NOW result is a screenshot-time observation and will change when the workbook recalculates. Open the full-size image.

Insert a fixed date or time

On a computer using the standard Windows or ChromeOS shortcuts, select the destination cell and use the following keys:

  • Date: Ctrl+;.
  • Time: Ctrl+Shift+;.
  • Date and time: Ctrl+Alt+Shift+;.

Keyboard layout and operating system can change the shortcut. Check Google's current Sheets shortcut reference for your setup. The inserted value stays fixed unless someone edits it; formatting changes its appearance rather than making it a running clock.

Use NOW for a recalculating value

Enter =NOW() to return the current date and time at recalculation. Use =TODAY() when you need the date alone. A formula may not display seconds or the date if the cell's number format hides them.

Google describes NOW as a volatile function. It does not preserve the time when a record first appeared. An IF or ARRAYFORMULA wrapped around NOW still produces a recalculating result. It is unsuitable as a permanent event timestamp without a separate mechanism to save a value.

To keep the current formula result, copy the cell and paste values only into the intended destination. Confirm the formula has been replaced by a value. Preserve the original formula separately if you still need a running clock.

Capture the first manual entry with Apps Script

The following example watches column A on a tab named Log and writes the current time into an empty column B cell. Row 1 is the header. It handles a manual paste spanning several rows in column A, preserves existing B values and formulas, and ignores edits to other tabs or columns.

Use a copy of your spreadsheet first. Open Extensions, then Apps Script. Add this function to the script bound to that spreadsheet, integrating it with any existing onEdit handler rather than deleting other automation. Save it and test by editing column A in the sheet. Running the function directly in the editor does not supply an edit event.

function onEdit(e) {
  if (!e || !e.range) return;
  const edited = e.range;
  const sheet = edited.getSheet();
  if (sheet.getName() !== 'Log') return;
  if (edited.getColumn() !== 1 || edited.getNumColumns() !== 1) return;

  const first = Math.max(2, edited.getRow());
  const last = edited.getLastRow();
  if (last < first) return;
  const count = last - first + 1;
  const rows = sheet.getRange(first, 1, count, 2).getValues();
  const formulas = sheet.getRange(first, 2, count, 1).getFormulas();
  const targets = [];

  rows.forEach((row, index) => {
    const hasEntry = String(row[0]).trim() !== '';
    const emptyTimestamp = row[1] === '' && formulas[index][0] === '';
    if (hasEntry && emptyTimestamp) targets.push('B' + (first + index));
  });
  if (targets.length) sheet.getRangeList(targets).setValue(new Date());
}

The same captured time is used for all qualifying rows in one edit. A later edit to A leaves an existing B value intact. Clearing A does not erase its timestamp. A paste that includes another column is deliberately ignored so the example does not interfere with manually supplied timestamp values.

This is a lightweight entry aid. Google's simple trigger rules include execution limits, and script or API writes do not fire onEdit. Formula recalculation and form submission also need their own appropriate workflow. Concurrent edits, missed events and protected ranges require additional design for a dependable operational log.

Check time zone, formatting and sorting

Review the spreadsheet's locale and time zone in File, Settings. If you use Apps Script, align its project time zone with the spreadsheet where that matters. Display the time component explicitly when a date-only format would hide it.

Keep dates as date values rather than ambiguous text. Our date sorting guide explains why sorting the whole record matters. When analyzing entries, use a defined start and end boundary rather than assuming every value on a calendar day has the same time component.

Choose and label the meaning of each timestamp column. Restrict editing where appropriate, test the workflow with the actual editors, and verify its failure cases. A protected column or a script does not by itself establish legal compliance or an unalterable record.

Timestamps are useful in any log where the order of events matters, such as outreach emails, content approvals, or website change requests. Pair the timestamp column with a status column, as shown in our guide to drop-down lists. Then sort by date when you review the week; our guide to sorting by date explains how. A consistent date and time format across the log makes filtering by week or month straightforward. Our outreach team keeps campaign logs in a similar format.

Questions about timestamps

Which shortcut inserts the current time in Google Sheets?

In the standard PC shortcut set, Ctrl+Shift+; inserts time. Ctrl+; inserts the date, and Ctrl+Alt+Shift+; inserts date and time. Check the current reference for your operating system and keyboard layout.

Does NOW record when a row was created?

No. NOW returns the current date and time at recalculation. It does not preserve the first-entry time.

Can IF and ARRAYFORMULA make NOW a permanent timestamp?

A conditional formula using NOW still recalculates. Save a fixed value or use a suitable event-based workflow when the recorded time must stay fixed.

Does the example script overwrite existing timestamps?

No. It writes only to empty column B cells without formulas, for qualifying manual edits in column A of the Log tab. It leaves existing values intact.

Does onEdit run for formula, script or API updates?

Manual cell edits can fire onEdit. Formula recalculation, script writes and API writes do not provide the same edit-trigger workflow. Use an appropriate separate design for those events.

Want this checked on your own site?

Check one URL in Swiss Knife SEO without an account. A free account supports crawls of up to 100 URLs.

How to Use ARRAYFORMULA in Google Sheets

One of the most frustrating tasks in Google Sheets is dragging a formula down hundreds of rows. You copy the formula, select the range, and paste....

Read the guide ›

How to Use IFERROR in Google Sheets

Every spreadsheet user has experienced the frustration of a formula gone wrong. You build what you think is a simple calculation, hit Enter, and get a...

Read the guide ›

How to Use VLOOKUP in Google Sheets

Use VLOOKUP in Google Sheets with exact matches, fixed ranges and clear examples. Diagnose #N/A and #REF errors and know when to choose XLOOKUP.

Read the guide ›