Search Authority

The Ultimate Guide: How to Make a Timestamp in Google Sheets (Step-by-Step)

Creating a timestamp in Google Sheets helps you record the exact date and time for events, logs, or audits. You can generate a static or dynamic timestamp that updates automatic...

Mara Ellison
The Ultimate Guide: How to Make a Timestamp in Google Sheets (Step-by-Step)

Creating a timestamp in Google Sheets helps you record the exact date and time for events, logs, or audits. You can generate a static or dynamic timestamp that updates automatically depending on your workflow needs.

This guide walks through practical methods, formulas, and settings to control how timestamps behave in your spreadsheets.

Method Formula Updates Automatically Best Use Case
Keyboard Shortcut Ctrl+Shift+; No Quick static timestamps
NOW Function =NOW() Yes Date and time that refreshes
TODAY Function =TODAY() Yes Date only, updates daily
On Edit Trigger Apps Script Custom Auto stamp on row change

Inserting Current Date and Time

Use simple keyboard shortcuts or built-in functions to insert the current moment. Shortcuts are fast, while functions keep your data linked to the clock.

Keyboard Shortcut for Static Timestamp

Select a cell and press Ctrl+Shift+; (Windows or ChromeOS) or Cmd+Shift+; (Mac) to insert the current time as a fixed value. This approach does not change when the sheet recalculates.

Using NOW for Dynamic Date and Time

The NOW function returns the current date and time and updates each time the sheet recalculates or reopens. Use =NOW() if you need a live clock next to your records.

Keeping Only the Date

When you care about the calendar day but not the hour, use date-only functions and formatting. This keeps logs clean and avoids unnecessary time noise.

TODAY for Date Only

Enter =TODAY() to display the current date without the time. The value refreshes each day, making it ideal for daily checklists or expiry tracking.

Formatting Cells as Date

Right-click a cell, choose Format > Number > Date to display only the date portion. Even if a function includes time data, formatting can hide hours and minutes for readability.

Automating Timestamps on Edit

Use Google Apps Script to write a simple trigger that stamps a time when a row is edited. This method is powerful for tracking changes without manual steps.

Setting Up an On Edit Trigger

Open the Script editor, write a function that checks the active range and writes the current time into a fixed column, then save the project and authorize the script. The script runs automatically on each edit within the sheet.

Controlling When the Stamp Fires

Add conditions inside the script to avoid overwriting existing timestamps or to limit updates to certain columns. This ensures new rows get stamped while manual time entries stay untouched.

Formatting and Display Options

Control how timestamps appear by adjusting number formats and column widths. Good formatting makes logs easier to scan and export cleanly.

  • Use Format > Number > Custom date and time to choose year-month-day hour:minute
  • Widen columns so full timestamps are visible without truncation
  • Apply conditional formatting to highlight entries older than a target date
  • Lock timestamp cells to prevent accidental edits during data entry

Best Practices for Reliable Timestamps

Organize your workflow around consistent formulas, clear formatting, and controlled script behavior to keep logs accurate and trustworthy.

  • Decide whether you need dynamic updates or static records and pick NOW versus a shortcut accordingly
  • Document the location and meaning of timestamp columns for anyone using the sheet
  • Use helper columns for raw values and separate columns for display-only timestamps
  • Test scripts on a sample sheet before rolling them out to critical data

FAQ

Reader questions

How do I keep a timestamp from changing after it is entered?

Use a keyboard shortcut like Ctrl+Shift+; to insert a static time, or copy the cell and Paste as Values after entering a dynamic formula like =NOW().

Can I stamp only the time, not the date, in Google Sheets?

Press Ctrl+Shift+; to insert the current time, then format the cell with a custom time format such as HH:MM:SS to hide the date portion.

How do I add a timestamp in a specific column when a value is entered in another column?

Write an Apps Script with an onEdit trigger that checks the edited column and writes =NOW() into your chosen timestamp column in the same row.

How can I prevent overwriting existing timestamps when new rows are edited?

In your script, test whether the timestamp cell is empty before writing a new value, and skip the write if it already contains a time.

Related Reading

More pages in this topic cluster.

Who Designed the Nike Logo? The Story Behind the Swoosh

The Nike swoosh is one of the most recognizable symbols in the world, but few people know the story behind its creation. This piece explores who designed the Nike logo, why it h...

Read next
What is the World's Hottest Pepper? 🌶️🔥

When people ask about the world's hottest pepper, they usually mean the variety that currently holds the Guinness World Record and pushes the boundaries of capsaicin heat. Peppe...

Read next
Jon Huertas in This Is Us:角色, 出演时期与剧情影响详解

Jon Huertas 在《这就是我们》中饰演成年 Kevin Pearson,这一角色从2016年首播持续至2022年最终季,构成了剧集核心家庭叙事的重要组成部�...

Read next