+ Reply to Thread
Results 1 to 10 of 10

How do I add a timestamp on a condition?

  1. #1
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77

    How do I add a timestamp on a condition?

    What formula would I use if I wanted this:

    If A1 is greater than 1 then B2 equals the time that I entered a # in cell A1

  2. #2
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    See link

    http://www.mcgimpsey.com/excel/timestamp.html

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  3. #3
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77
    Hello,

    Thanks for the link. I found that this formula worked:


    =IF(A1="","",IF(B1="",NOW(),B1)) along with choosing Tools/Options/Calculation (Preferences/Calculation for Macs) and check the Iteration checkbox.

    My only problem is that when you update cell A1 it does not update cell B2 to the current time. Is there a way to fix it so that it updates to the last change in cell A1?

  4. #4
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Try using the code

    VBA Noob

  5. #5
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77
    awesome, thanks!

  6. #6
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77
    oh wait, how would I reference that code so that if I made a change in spreadsheet 1 it would add the date in those cells in spreadsheet 3

  7. #7
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77
    this is the code I used:

    Please Login or Register  to view this content.

  8. #8
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Maybe

    Please Login or Register  to view this content.
    VBA Noob

  9. #9
    Registered User
    Join Date
    07-03-2007
    MS-Off Ver
    2003
    Posts
    77
    hmmmm, didn't work

  10. #10
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Code goes in Sheet 1.
    When Cell A1 is greater 1 then it adds the date to sheets 3 Cell B2

    VBA Noob

+ 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