Create A Timestamp In Excel With Formulas

Free Excel Dashboard Webinar
What’s A Timestamp?

Under lots of circumstances, would you enter the date on a spreadsheet for an entry onto an invoice, a project plan etc and you would do this by entering the current date and time. This however is usually done manually by the user, and takes way too much time for us wanting to Excel At Excel.

We probably  all know that we can use the =TODAY() formula or the =NOW() formula to enter a date into Excel, which update automatically when – this is known as “volatile” as the function recalculates when Excel updates.

This is not really any good for a timestamp, as we would want an invoice entry or project update to be static. We therefore can use

CTRL+ ; to enter the current date or
CTRL+SHIFT+: to insert the current time

These both will remain static, but are still very manual having to insert the date and/or time with keyboard the above shortcuts. That’ all well and good but wouldn’t it be great to just insert your changes to a worksheet and the timestamp appear as you type?. You can but it takes a bit of Excel magic and an understanding of Circular Formulas.


What’s this about Circular Formulas?

You may have come across them before but if not here’s a quick run down.

A circular formula is one that refers back to itself either directly or indirectly.  Let’s take a look at an exmaple.

Lets look at a direct example.

If I type =A4+1 in cell A4 I am directly referring to the cell I am writing the formula in.  This results a warning from Excel in case you did not create this circular reference intentionally (as we did) and the result of the formula is zero.

Let’s look at an indirect example

If I type 2 into cell A1,

then type =A1 into cell A2

then A2 refers back to A1 and gives a result of 2 which is a normal formula.

If I then go back to cell A1 and enter the formula =A2+3, this will create a circular formula as A2 is based on A1 and I am writing the formula in A1 so essentially the formula is referring to itself.

You can see above that the circular reference is indicated by Excel with blue vertical line after selecting OK to it’s warning.

Ok so let’s take this one step further…..

There is a setting in Excel called ‘iterations’, which tells it how many times to recalculate a formula.  Without this function, Excel would go into an infinite loop and eventually stall.  By default this is turned off in Excel which is when when you type a circular reference , Excel throws you a warning and doesn’t calculate the formula as it could run infinitely.

If we turn on the iterations function

1. Office button

2. Excel Options

3. Formulas

4. Iteration

5. Change the default iteration to 1, so it recalculates one time before it stops.

In our case this will result in cell reference A1= 5

So, at the start of this post we were  to insert time stamps into Excel, we can exploit this circular referencing and iteration to our full advantage based on the theory above to insert our required time stamps.

Let’s go ahead and do that-  in a scenario that we want the timestamp to be in Column A when we are entering data into Column B

1. Type the following formula into A1


2. Type something into Column B

3. Your date and time will be stamped.

4. Drag the formula in Column A down to allow time stamping all down your column.

Isn’t that just the bees knees?

An explanation of what the formula is doing.

The formula is checking cell B1, and if it is not empty it runs the circular formula =IF(A1=””,NOW(),A1) which returns the NOW() function if A1 does not already have a value- thus stamping the time.

Go ahead and give this a go, let me know if you have any other way of creating a time stamp in Excel?

Other Formula Information You Might Like.

1. Hide Your Formulas From Prying eyes.

2. Debug And Understand Your Formula Errors.


  1. Jurell says

    This is awesome…thank you for the formula. I have a question. Does this update everytime the cells in column A changes? So for example Cell A1 changed yesterday timestamped 11/07/2011. But I changed it again today. Does it time stamp 11/08/2011?


  2. Tim says


    Great formula, I’ve used it for work already, and came through in a pinch in creating a spreadsheet for my team. Quick question though, my timestamp formula doesn’t generate the time as well, just the date. So it only spits out “12/21/2011″ for instance, not “12/21/2011 11:56″. Any ideas how to fix that?

    Thanks again!

    • Tim says

      Also, what is your solution to fixing the fact that Excel resets the maximum iterations setting for each new session of Excel? Is there a way I can save that setting so that it is locked for a certain workbook?

      Thank you,

      • Barbara says


        The iteration settings will remain within the workbook you have set once you save your workbook. Excel opens with the default of iterative calculation (as unselected) setting for each new workbook opened.


    • Barbara says


      Glad you liked the formula, it does come in handy. Also good point to note on the date and time.
      If you format the timestamp column as dd/mm/yy hh:mm that you sort that for you. Use Format- Cells- Date- Custom as select the above formatting.


    • Rusty says

      When you use the NOW function in that formula it appears that it is also attaching the time to the date. If you then use that data for a pivot table with column headers to be the date you exceed the number of days as it makes an entry for every time stamp instead of every day. Is there an easy fix for this?

  3. Fadly says


    I already used your formula and it was great.. But I came up with a problem when I want to share the excel spreadsheet over google docs.. google docs doesn’t support iteration. Can you suggest another way to solve this. TIA for your reply.

    • Barbara says

      Hi Fadly

      Indeed Google Does not support some functions and iteration is one of them.

      Any comments from any other Excellers greatly appreaciated on this one!


  4. Mike says

    This formula sounds like EXACTLY what I need, but I keep getting an error when I paste it into my spreadsheet.

    “The formula you typed contains an error”.

    Any ideas?

    • Barbara says


      I have retyped the formula into the post, seems fine on Excel, want to try it?
      Let me know how you get on


      • Sree says

        Hi Barbara,

        this is not working for me . its throwing up error. It would be great if you can fix it.


        • Barbara says

          Hey Sree

          I have re tried formula again and seems to work fine


          do you want to send me worksheet to barbara[@]howtoexcelatexcel[dot]com will take a look at it for you?


          • Sree says

            Thank you barbara!

            =IF(B1″”,if(A1=””,NOW(),A1),”‘) this is working.

            thanks a lot again

          • Tom says

            Hi Barbara,

            This is going to be a great trick if I can get it working.

            I notice that your screenshot has:


            But the formula you typed in red is


            I tried both and I can't get this timestamp to work. When I type this
            =IF(B1<”",IF(A1=”",NOW(),A1),”") the formula generates a BLANK cell.

            And when I type this:
            =IF(B1″”,IF(A1=””,NOW(),A1),””) it returns 12:00AM.

            It is as frustrating. Now I know why seniors never program their 12:00am blinking VCRs.

          • Tom says


            oh… these greater than less thans

            works _for every cell except for A1.

            That is great

          • Barbara says


            there was a small error in formula after last edit on the post it was missing the <> at the start of the formula- appologies. To get date stamp not just time, format your column A with format dd/mm/yyy or whatever you want to. Let me know how you get on


      • Bob says

        I believe this is a formating issue w/ the quotations in the formula when copying from this site to Excel. I noticed after clicking OK to the error prompt Excel highlighted the first of quotations (indicating/debugging where the first problem resides). I retyped the quotations, received the same error. Again, after clicking OK to the error prompt Excel highlighted the second set of quotations, I replaced those, as well as the third set to resolve the error. Works fine now. Just to be safe you may want to manually enter the entire formula instead of copying and pasting to avoid any errors such as this one. Hope this helps!!!

  5. solublefish1 says

    I get a date result of January 00, 1900 using this formula instead of today’s actual date. Any idea of whats causing this?

  6. solublefish1 says

    Actually looks like I figured it out. The formula doesn’t work if you have a list validation set up in A1.
    If I type something into A1 I get the expected datestamp. If I enable validation and create a dropdown list, the formula returns January 00, 1900. Any idea how to fix this?

    • Barbara says

      Possibly your formatting of you cells, have you checked that- I also used a validation on my entry cells and works fine. Send on your worksheet – let’s have a look

      • Nadine says

        I am having the same problem concerning a list validation and 01/00/00 diplaying as the date. What was the solution? Also, will the date change everytime I open the workbook to the current date or will it remain the date the cell was last updated?

  7. Jorge says

    Hello everyone,

    Formula works fine by adapting the original one to: =SE(b1″”;SE(a1=””;AGORA();a1);””).

    Thanks Barbara for your hints!

    Brasilia – DF

  8. Aaditya says


    I have a real time data which i need to save in a excel file with different enteries for different time slots.

    Can anybody help me how to do it at earliest


  9. Molly says

    thank you so much for the timestamp! I’m a middle school teacher and this is how I am going to do the dreaded bathroom sign-out and after school sign-in sheets next school year

    • Kim says

      I am a high school librarian and i am wanting to create a student sign in sheet for the library. I don’t know much about excel. I’ve read all the posts and I’m still lost. I’ve set the iteration and tried the formula. I’m not getting a date/time at all. I’m getting an odd string of numbers. Maybe i need to have something else set up as well. I would appreciate any help. What if i want the date/time stamp to be in column “D”?

      • Barbara says

        Hello Kim

        Thanks for the email. I have entered the formula into your worksheet, just needed a tweak, to reference the fact that your entry for data is in column A. Also I reset the iteration value which was not saved. Just drag the formula down the column to create more timestamps

        i hope this solves your problem

        • Toni Rose says

          Hi, I have also the same problem, I am currently using excel 2010 and can’t keep a formula. I am monitoring students attendance sign in but I couldn’t make a formula at all. I hope you can help me. thanks! :)

  10. OLLIE says


    So what did you do in the instance of having a list validation follow the timestamp? Mine is popping out the Jan 1990 date and not the current one. Any way to fix this.


    • Barbara says


      I have data validation working no problem. Which cells have you validation on? I have validation on columns to the right of the cells with timestamp – validation being a yes or no option.


  11. Dolse says

    I’ve been looking for a time stamp formula to use with a macro button. In other words, every time the button is selected it records the current time in the next row in a column. Any suggestions would be greatly appreciated.

    • Barbara says

      Doise, have you an example work sheet?, you can mail me at barbara [at] howtoexcelatexcel[dot] com
      Regards Barbara

  12. says

    I wish to have the know-how to upload hyperlinks plus video clips of my vacations in addition
    to the places whereby I’ve run a race. Ideally, I would personally choose to have the ability to update my blog with entries from my iPad. What might you suggest is most likely the right way to go about executing this?

    • Barbara says

      Hi Eddie

      Do you mean the time stamp update multiple columns? or a cell be timestamped when multiple columns are updated?
      Let us know

  13. Beth says

    Is there a way to automatically turn cell protection on once a value has been entered into cell B1? To prevent the time stamp from being manipulated at a later time?

  14. Bill Garnett says

    I thought this would be great, something I’ve wished for. Now I type @NOW() and then go back to the cell and copy then paste special as VALUES.

    However your formula does not work on my 1Mac using OX X Version 10-8-1

    Any fix?

    • Barbara says

      Is it the @now() that does not work on your MAC or the the timestamp- both work on both my Windows and Mac OS?


  15. R says

    I’m trying to set up a formula to automatically enter the current date in a cell once another cell is updated. I don’t want this date to every change after the entry is made. so we can track information by date it was entered. The formulas above are just not working. Can any help me.

    • Barbara says


      couple of things
      1. did you copy the formuala, it needs to be typed out rather than copied
      2. did you amend the iteration settings?

  16. khromwell Badon says

    Hello Barbara,

    I don’t know if its possible to create a timestamp from a text. I am currently working on a spreadsheet to consolidate cases or data at work. The idea is if A1 has a value “CLOSED” B1 should have a timestamp or date when a case or request has been closed this is to have a automatic notification with timestamp.

    Please help.

    Thank you,


  17. Andrew E says

    I have entered the formula above and works fine except for one thing. Each time I open the Excel document the time stamp changes to that specific time in which I have just opened it. I want to keep track of when info is entered in a specific cell. For example I am keeping track of time that I have worked on a project so when I put an X in a cell that says I worked on it on Monday at this time. Each time I open the document the time is changing on me. any way to make it so it doesn’t change the time?

    Thank you and God Bless,
    Andrew E

      • Andrew E says

        Yes Ma’am I did. Not sure what I may or may not be doing correctly. I even did what you showed in your example and it changes both cells to the current time.?

        Thanks again for your help and any more information you may be able to supply.

        Andrew E

  18. Lars says

    Dear Barbara
    Thanks a lot, nice and convenient. I would call myself experienced user, but I could’nt figure out to create this timestamp. I use it to timestamp some weighing measures, which need to be analysed together whith other data from a datalogger. And just to inform you, it works fine in libre office in ubuntu.

  19. JC says


    I used your formula and it worked perfectly. But I have a very small problem. I created a worksheet that has two kinds of time stamps. One is start time. So, the START TIME is linked to a drop down menu that i created on excel so, it automatically registers the time every time I select something on the menu. Next one is the END TIME which is linked to the same drop down menu but different line number. (To explain it, the START TIME is linked to F5 while the END TIME is linked to F6.) It both works well. Now, problem is… I have to create “hours” where it shows the interval between the START and END time in a circular command. Please help me on this one as I have been working on this for 4 days already.

    Thank you!

  20. Linda Nelson says

    I can get the formula to “work” but I have tried “several” different options for formatting the cells and it just keeps coming up #VALUE!?????? I used “custom” formatting: mm/dd/yy hh:mm:ss AM/PM the last time but I still get #VALUE!
    Also, I noticed in the former comments that the Iteration does not work in Google doc’s – is this still true?
    Thank you

  21. Rob says

    This was just what I was looking for…

    But when I do it in Excel for Mac 2008, it’s just populating A1 with “Date-stamp” whether there’s anything in B1 or not.

    Allowing iterations or not doesn’t seem to make any difference.

    Can you advise? Thanks

  22. Mhace says

    Hi Barbara,

    Nice formula, thanks for sharing. I used this in making our Timesheet for our team.

    But i just have a question.

    I’m having a problem in making a time difference using this timestamp.

    can you help me compute for the overtime and undertime using this timestamp?

    Thanks a lot. :)

    • Barbara says


      No problem at all, send me a copy of your workbook, with what you require you can sanitise the data if want to.



  23. Michelle says

    Thanks for this formula! However, I will sometimes have black fields in some columns depending on the week. Is it possible to use this same formula using a range? I tried and the formula didn’t work. Any ideas?

  24. Nick says

    Hi barbara,

    I used your formula in cell A1 but I’m getting weird values out as i type in B1 – B10 cells.

    Please help

    • Barbara says

      Check iteration settings and formatting first of all.
      make sure all are exactly in tutorial


  25. Annie says

    Hi Barbara,
    I’m copying your formula across, and adjusting the relevant cell references. The error message is then duely coming up, but it wont give me the option to continue. If I click OK it deletes the formula. What am I doing wrong?!
    Many thanks,

    • Barbara says

      Make sure you re type the formula, the copy and paste does not work when copying to excel form the blog.


  26. says

    What a great trick! And what an interesting site. Thank you for both. I am glad I came across them, which I did when googling trying to learn how to add today’s date to an Excel chart.

    I know how to get most of what I want by making the chart title point to a cell set up like this:

    =”Sales this year to date as of “&TODAY()

    but the bad news is that what shows up is

    Sales this year to date as of 41786

    Any the instruction on how to do this (or pointing me to the right thread) will be appreciated :-)

      • says

        Good morning Barbara,

        Many thanks for your email and your suggestion. I had tried formatting my target cell as date but Excel rejected that because I had text as well as an & and the today function in the one cell. Excel kept changing the format back to general.

        Today after more googling I learned how to add a text box to a chart in Microsoft Excel for Mac 2011, and with some effort I was able to fill that text box with the contents of TODAY() in a date-formatted cell on a worksheet, then move the text box just behind the chart title so that it looked as if it were one field.

        But that seemed very klutzy and fortunately I found a better way – it turns out that I needed to concatenate my text in one cell with today’s date in a different cell while converting the date to text.
        For example if the desired chart title’s text is in R3 and today’s date is in S2, then the concatenated cell to use as the chart title would be set to:

        =R3&TEXT(S2,” d mmmm, yyyy”)

        Sounds simple once you know it, but nowhere findable in the Microsoft documentation :-)

        Thanks again. See many other neat things to learn on your site.

        Best regards,


  27. Kelly Samson says

    There is an easier way to write this code: The second IF check is not necessary by writing the ‘True’ condition to equal the blank answer.


    As listed above:


  28. Jon says

    Hello and thanks for posting this. I’ve tried to use a variation of this formula for an excel sheet and whenever I enter information into it, all the timestamps will change at once. I’ve tried the iterations and even setting the spreadsheet to manual calculations, but when the calculations are run, the timestamps are reset.

    Any thoughts as to what might be causing this? I am using excel 2010


  29. Bgalindo says

    Hello I recently found this incredibly helpful to do my offices item tracking. But recently we’ve decided to go to an Ipad and I was wondering if there is fomula similer to this that works on that platform since this one doesnt?

    • Barbara says

      Hi Suraj

      Please ensure you have correct formatting of the cell, and dont copy the formula with copy and paste as on some browsers it does not come across all intect.

      or, send snapshot of your formula?

  30. annette says

    Was checking out the time stamping info. All worked eventually but my time and date is 1900-01-00 00:00!!!! How to overcome that?

    • Barbara says

      Hi Annette

      If you format the timestamp column as dd/mm/yy hh:mm that you sort that for you. Use Format- Cells- Date- Custom as select the above formatting


  31. Frank Johnson says

    Thanks Barbara – this is very helpful! I do have a couple of questions:

    1. I assume setting the maximum iterations to 1 will only affect the workbook in which I change the settings.

    2. If I want the maximum iterations to be 1 but only for one particular worksheet (tab) in the workbook, is that possible?

    Thanks in advance for any help you can offer – I really appreciate it.


  32. Fred Chaytors says

    Hi, very many thanks for the date stamping method. I am currently cataloguing a collection of books and valuing them at the same time. I have been using key strokes for the date and some times pressing wrong keys. for me a great step forward.

  33. James Adams says


    I have created a daily checklist as a management/audit tool for my global team. I am using it as a way to track whether my employees in India are completing their daily responsibilities by a given time. I use a new version of the same file every day, and am hoping to archive the prior results for sudit purposes. For this reason, I have the file as a shared file, but the problem I am running into is that I can not get accurate timestamps as the file only updates the time of my most recent save, not when each individual has completed their task at the specific time. Is there a formula for timestamps I can use where the timestamp value is fixed to the same time no matter which user has the workbook open?


Leave a Reply

Your email address will not be published. Required fields are marked *