+ Reply to Thread
Results 1 to 15 of 15

Date stamp that doesn't change.

  1. #1
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Date stamp that doesn't change.

    I have a cell (D column) that inputs todays date when data is entered into the cell 3 columns over (G column). However when I go to enter data the next day it updates the date on every row. How can I prevent this from happening?
    This is my code:
    =IFERROR(IF($G61="", "", TODAY()), "")

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Date stamp that doesn't change.

    That's because your formula is returning the current date whenever it is run. After you have entered data in column G, copy the respective rows updated in column D, and paste special over as values.

  3. #3
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    Sorry, relatively speaking im an Excel beginner. Im not sure what that means. What should I change the code to so they dont keep updating? Can I do it within the cell or do I have to use VB?

  4. #4
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Date stamp that doesn't change.

    You don't need to change the code, I assume your column D is already filled with the formula stated in the first post.

    So, whenever you enter data i column G, let's say rows 2 to 10, your formula in column D will automatically show today's date for rows 2 to 10.
    Now select cells D2:D10, copy it, and right click on it, choose Paste Special, choose values, and click OK. This removes the formula for those particular rows, and will not have any changes in the date anymore.

  5. #5
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    I guess thats possible, but im trying to automate the entire process so the user doesnt have to do that every time. They could easily forget to do this. I assumed there was a simple slight formula change that would just prevent it from updating after the first date. Is that not possible? Not even with VB?

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Date stamp that doesn't change.

    It's possible to be done through VBA, but that would also mean your workbook will need to be saved as a macro-enabled workbook. And each time it is run/opened by your users, he/she will also need to enable the macros before it would work, unless the workbook is opened in a trusted location.

  7. #7
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    Re: Date stamp that doesn't change.

    I have not seen this as being possible with a formula.

    here is a macro that will put the current date into column D once you enter data into column G and tab over to the next cell. Note when you copy data from a cell to an empty cell in column G, this will not work as it requires you to activate the cell in column G

    Please Login or Register  to view this content.
    This code should be put into the worksheet module. Right click the sheet name and select View Code. Paste the code into the VB Editor. Save the file as a macro enabled workbook if using excel 2007 or greater.
    Last edited by jrtraylor; 09-18-2013 at 12:36 AM.

  8. #8
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    That seems to bo working, however it can only get it to work on a blank new sheet, not on the sheet I need it on. On the sheet I need it I get Ambiguous name detected: Worksheet_Change
    I think its because I already have the following code above it for that sheet:

    Please Login or Register  to view this content.
    Moderator Note:

    Pls use code tags around your code next time as per forum rules.
    Last edited by Fotis1991; 09-18-2013 at 02:31 AM.

  9. #9
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Date stamp that doesn't change.

    You can do this using formulas if you like.

    See here and here.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  10. #10
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    Fotis thanks for your reply. The formula jrtaylor gave me works just fine. The issue im having is that I already have another formula for that worksheet (the one I pasted above). When I put the data stamp on a blank worksheet it works fine, but when I add it to the worksheet that already has another VA formula on it it doesnt like it. Im guessing I have to someone write the two formulas into one. Is that correct, and if so how do I do that?

  11. #11
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    Re: Date stamp that doesn't change.

    Here you go. You need to put my code before your code within the same change event routine.

    Please Login or Register  to view this content.

  12. #12
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    Great, that worked. Thank you.

  13. #13
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    Re: Date stamp that doesn't change.

    Glad to help

  14. #14
    Forum Contributor
    Join Date
    04-15-2012
    Location
    California, USA
    MS-Off Ver
    Excel 2016 / Office 365
    Posts
    115

    Re: Date stamp that doesn't change.

    Ohhh, by the way you can change the range in my code to match the range in your code.
    This
    Please Login or Register  to view this content.
    To
    Please Login or Register  to view this content.
    This way the date will populate all the way to the bottom of the sheet.

  15. #15
    Forum Contributor
    Join Date
    09-16-2013
    Location
    Los Angeles, USA
    MS-Off Ver
    Excel 2011
    Posts
    620

    Re: Date stamp that doesn't change.

    Is there a way I can change this code so it only enters the date when data is first entered into G. If G is edited or deleted the date should not change.

    Please Login or Register  to view this content.
    Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 01-12-2013, 04:14 PM
  2. [SOLVED] Date Stamp in a cell that doesn't change.
    By bigbluesfan22 in forum Excel General
    Replies: 7
    Last Post: 07-31-2012, 05:18 PM
  3. [SOLVED] Date stamp never change
    By Murat123 in forum Excel General
    Replies: 3
    Last Post: 05-23-2012, 03:03 AM
  4. [SOLVED] I need a date stamp that doesn't change when you enter text
    By Eric Hersey in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-09-2006, 01:45 PM
  5. time stamp a cell that doesn,t change when time stamping another
    By RC in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-12-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1