Close Menu
Computing.net
    Facebook X (Twitter) Instagram
    Computing.netComputing.net
    • News
      1. AI
      2. Crypto
      3. Gaming
      4. Hardware
      5. Security
      6. Software
      7. View All

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      AI Trading Bot Loses $441K in Crypto After Decimal Point Mistake

      February 23, 2026

      Tesla (TSLA) Stock: Goodbye Sedans, Hello Robots in Dramatic Production Shift

      January 29, 2026

      Palantir Technologies (PLTR) Stock: Why Bears May Be Wrong About Valuation Concerns

      January 29, 2026

      SUI Token Rallies 40% Following Major Staking Event and CME Futures Announcement

      May 12, 2026

      Chainlink (LINK) Surges to $10.40 as Network Activity Hits Eight-Month Peak

      May 12, 2026

      Dogecoin Whales Ramp Up Accumulation as DOGE Eyes Critical Breakout Levels

      May 12, 2026

      Bitcoin Holds $81K While Burry Flags Nasdaq Bubble and Oil Surges Past $105

      May 12, 2026

      Hamster Kombat: Unraveling TON’s Gaming Phenomenon

      August 7, 2024

      W-Coin: Exploring the Latest Telegram Tap-to-Earn Phenomenon

      August 7, 2024

      Hamster Kombat: 300 Million Players & Counting, HMSTR Token Airdrop Soon!

      July 31, 2024

      Hamster Kombat Developers Work with TON Team on Airdrop Solution

      July 30, 2024

      Nothing Expands Product Line with New AI Feature & Phone Update

      July 31, 2024

      Security Audit Reveals Concerns in Atari’s Blockchain Game on Base

      August 6, 2024

      SideWinder Group Targets Maritime Facilities in New Cyber Espionage Campaign

      July 30, 2024

      OAuth Implementation Flaw Exposes Millions of Websites to XSS Attacks

      July 30, 2024

      Hamster Kombat Players Face Growing Cybersecurity Threats

      July 25, 2024

      Anthropic’s COBOL Automation Tool Triggers IBM Stock Plunge and Crypto Market Decline

      February 24, 2026

      Cookie Crumble: Google Halts Plans to Eliminate Third-Party Cookies in Chrome

      July 23, 2024

      Big Brother is Watching: Apple’s Creepy New Ad Urges iPhone Users to Ditch Chrome

      July 23, 2024

      Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

      May 12, 2026

      Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

      May 12, 2026

      GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

      May 12, 2026

      SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

      May 12, 2026
    • How To

      Batch Files: Tokens and Delimiters (FOR Loops)

      July 31, 2024

      Types of Ethernet Cabling & Electrical Low Voltage Wiring

      July 9, 2024

      What You Should Know About .JSON File Extension

      January 10, 2023

      Bkup File Extension

      November 19, 2022

      HEIC File Extension

      November 19, 2022
    • Office
      1. Excel
      2. Google Sheets
      3. View All

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024

      How to Remove Characters from Right in Excel

      July 30, 2023

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      Bullet Points in Google Sheets

      January 20, 2022

      Sort by Date in Google Sheets

      January 18, 2022

      Google Sheets Timestamp

      January 17, 2022

      How to Subtract in Google Sheets: Complete Guide

      July 31, 2024

      How to Convert Column List to Comma Separated List in Excel

      July 24, 2024

      How to Find the Last Monday of the Month in Excel

      July 24, 2024

      Convert Bytes to MB or GB in Excel: 3 Methods!

      July 24, 2024
    • Answers
    • About
    • Contact
    Facebook X (Twitter)
    Computing.net
    Google Sheets

    Google Sheets Timestamp

    Constantin KioulafasBy Constantin KioulafasJanuary 17, 2022
    Twitter LinkedIn Email Telegram
    Google Sheets Timestamp
    Twitter LinkedIn Email Telegram

    Timestamps are used to log the date and time when information has been accessed or updated.

    They are commonly found in databases, especially to save the last time a user logged in to the system, or when a record was last updated.

    There are times however, when they are also useful in spreadsheets.

    We may want to know when entries in a sheet containing contact details were last updated.

    This is a perfect case for a timestamp.

    We’ll be looking at three ways of adding a timestamp to a Google sheet, starting with the simplest using keyboard shortcuts.

    Next we take a look at using a formula, and finally writing a custom script.

    For the custom script method, we will be using an example Google sheets contact list.

    While the term timestamp more commonly refers to the date and time, for our purposes, we will use it interchangeably to refer to any of time, date, or date and time.

    Contents:

    Toggle
    • Time and Date Formatting in Google Sheets
    • Insert Time, Date, Timestamp Keyboard Shortcuts
    • Insert Time, Date, Timestamp with a Formula
    • Script to Insert Timestamp
    • Conclusion

    Time and Date Formatting in Google Sheets

    Before we begin, it should be noted that the format of the date and time depends on the locale and time zone settings for the spreadsheet.

    These settings are available from the main Google sheets menu under File > Settings.

    This will open the Settings for this spreadsheet dialog box.

    Here, you can check and change the Locale, Time zone, and Display language for your sheet.

    If for some reason you want to use a format that is different from that of the current spreadsheet, without changing the default settings, you can always apply a custom format to the cell, using the Format > Number > Custom date and time menu option.

    This will open the Custom date and time formats dialog box from which you can choose one of the preset formats or create your own.

    Insert Time, Date, Timestamp Keyboard Shortcuts

    To quickly add the current time, date, or timestamp in any cell, use the keyboard shortcuts given below.

    • Ctrl – ; (Control Semicolon) will insert the current date.
    • Ctrl – Shift – ; (Control Shift Semicolon) will insert the current time.
    •  Ctrl – Alt -Shift – ; (Control Alt Shift Semicolon) will insert the current date and time, commonly referred to as the timestamp.

    One thing to note with this approach is that the time, date, and timestamp are fixed.

    They do not update if and when any changes to the sheet are made.

    Of course, you can always update the date/time manually, but that really is not a practical solution.

    Insert Time, Date, Timestamp with a Formula

    You can add the time, date, or timestamp to any cell with the use of the functions NOW() and TODAY(). TODAY() prints the current date, and NOW() the current timestamp.

    There is no function to only get the current time, but we can extract the time, with the aid of the TEXT() function, from the result returned after calling the NOW() function.

    The complete formula to do this is =TEXT( NOW() ; “HH:MM:SS” ) where “HH:MM:SS” is the format used to display the time in hours, minutes, and seconds.

    If you wanted, you could also just use “HH:MM” to show only the hour and minutes.

    It should be noted that the default behavior of the NOW() and TODAY() functions is to automatically update to the current date and time whenever the spreadsheet is recalculated (e.g. when you add a new cell or update the contents of an existing cell), rather than keeping the date and time from when the formula was created.

    The behavior can be modified from the menu option File > Settings, and under the Calculation tab in the Settings for this spreadsheet dialog box.

    The Recalculation drop down offers a choice from On change, On change and every minute, and On change and every hour.

    Script to Insert Timestamp

    While using a formula will work perfectly fine in many situations as long as we require a single timestamp to monitor whether a change took place anywhere in the sheet, it would not work if we wanted to timestamp each row in the sheet separately.

    To do this, we will need to write a custom script.

    Google sheets has its own, powerful scripting language based on Javascript, which ensures it will work on any web browser.

    We will use an example contacts sheet where the details for each contact occupy one row.

    We therefore require a timestamp on each row so that we can keep track of when each contact was last updated.

    To begin, from the Google sheets menu go to Extensions > Apps Script.

    This will open the scripting editor in a new browser tab. At the top is the title, Untitled project.

    You can rename it to something that makes sense for your sheet. For our purposes, we can leave everything else as is.

    We will be entering our formula in the main section below, which by default contains the function declaration myFunction().

    Replace all this with the following:

    /** @OnlyCurrentDoc */
    function onEdit(e){
    const sh = e.source.getActiveSheet();

    sh.getRange (‘M’ + e.range.rowStart)
    .setValue (new Date())
    .setNumberFormat (‘MM/dd/yyyy HH:MM’);
    }

    The line sh.getRange (‘M’ + e.range.rowStart) determines in which column the timestamp will be printed, which in this case is column M.

    The line .setNumberFormat (‘MM/dd/yyyy HH:MM’); determines the format in which the timestamp will be displayed.

    The resulting script editor page should look like the above snapshot. Click on the Save project icon to save the script.

    If we now return to our sheet and make a change to any cell in any row, the timestamp column (column M) will be be updated to show for that row, the current date and time.

    Conclusion

    We’ve looked at three different ways of adding a timestamp to a Google sheet.

    The first method allows a user to directly insert the current, time, date, or date and time, using keyboard shortcuts.

    This is a very quick way to manually add a timestamp.

    This implies that any changes made to the sheet will not update the timestamp.

    The second method we looked at uses a formula to add a timestamp as either a date or date and time.

    Unlike the keyboard shortcut method, the timestamp will update automatically every time a change occurs to the sheet.

    This method uses a single timestamp for the entire sheet.

    Finally, we wrote a script that maintains a timestamp for each individual row.

    Whenever a change occurs in any cell for any row, the row’s timestamp is automatically updated.

    Share. Twitter LinkedIn Email Telegram
    Avatar photo
    Constantin Kioulafas
    • LinkedIn

    Costas has a wide range of experience in Information Technology covering computer hardware, programming, telecommunications, networking, web services, and general IT support. He's worked in various roles such as PHP programmer and web developer, technical and desktop support, hardware repair, system administration. Costas has excellent background in Microsoft Windows and Office Suite (Excel, Word, Powerpoint, etc), as well as a thorough understanding of Networking and Hardware maintenance.

    Related Posts

    How to Subtract in Google Sheets: Complete Guide

    July 31, 2024

    How to Find the Last Monday of the Month in Excel

    July 24, 2024

    Convert Bytes to MB or GB in Excel: 3 Methods!

    July 24, 2024

    What is Information Technology? – Definition, Types, and Examples

    December 6, 2022

    How to Create a Box Plot in Microsoft Excel

    March 1, 2022

    How to Create Bar of Pie Chart in Excel

    March 1, 2022
    Add A Comment

    Comments are closed.

    Latest

    Nvidia Stock Soars to New Record at $219.44 Ahead of May 20 Earnings

    May 12, 2026

    Rocket Lab Shares Surge Past $120 Following Wave of Analyst Upgrades

    May 12, 2026

    GM Shares Decline Following 600 IT Layoffs Amid Strategic AI Workforce Transformation

    May 12, 2026

    SES Delivers €847M Q1 Performance as Intelsat Integration and Aviation Deals Fuel Expansion

    May 12, 2026

    Trump Dismisses Iran Peace Proposal — Oil Markets React as Hormuz Remains Restricted

    May 12, 2026
    • Facebook
    • Twitter

    Latest Reviews

    Meta Platforms Shares Tumble 8% Despite Strong Q1 Performance Amid AI Investment Surge

    April 30, 2026

    Flush.com Review: Casino & Sportsbook With 275% Welcome Bonus

    March 7, 2026

    Katsubet Review: Crypto Casino With 300% Welcome Bonus & Free Spins

    March 7, 2026

    7Bit Review: Crypto Casino With 325% Bonus & 250 FS

    March 7, 2026

    Mega Dice Review: Crypto Casino With 200% Bonus & 50 Free Spins, Legit?

    March 7, 2026


    Home / Privacy Policy / Terms & Conditions

    Computing.net © 1996 - 2026 Kooc Media Ltd. All rights reserved. Registered Company No.05695741

    Type above and press Enter to search. Press Esc to cancel.