+ Reply to Thread
Results 1 to 4 of 4

Need help with date and time

  1. #1
    Registered User
    Join Date
    09-24-2009
    Location
    Kitchener, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    2

    Unhappy Need help with date and time

    hello everyone i have a question what i need to do in excel is set up a cell to input info and then beside it on the next cell to display the date and time that it was inputed but from what i created the cel l(time and date) keeps updating everytime the sheet is open any ideas ?

    this is what i used Example
    Please Login or Register  to view this content.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need help with date and time

    For a static time stamp you're looking at either

    a) VBA Change Event

    b) Iterative Calculations

    If the datetime stamp is to be updated whenever C1 is altered ie not just the very first time then you will need to use VBA.... if it's a one off then you can use b (ie avoid VBA).

    If you want to go for VBA please specify the range against which this logic is to be applied ie values in C1:Cx... necessitate time stamps in A1:Bx)

  3. #3
    Registered User
    Join Date
    09-24-2009
    Location
    Kitchener, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Need help with date and time

    im fairly new to this so B would be my best option. How about would i go writting that. im still learning and would appreciate a lesson. explained if possible plz and ty

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Need help with date and time

    If you go into the options via Tools menu and Calculation Tab you will find there is an Enable Iteration option, check this and set Max Iteration to 1.

    Back to your sheet... ensure C1 is blank... clear A1 & B1 of any existing formulae then set formula such that

    Please Login or Register  to view this content.
    Now if you change C1 you should find that A1 populates with the time of the update and will not update thereafter unless you clear C1 content before re-entering new value ... eg:

    C1: "a" -> "b" ... time stamp will only update when you first enter "a"

    C1: "a" -> CLEAR -> "b" ... time stamp will update when you enter "a" and then subsequently when you enter "b" and be cleared when you first clear "a"
    Enabling Iteration essentially permits the use of what are known as "circular references" - formulae in cells that refer to themselves - in our case the formula in A1 refers to itself and is thus circular by nature.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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