+ Reply to Thread
Results 1 to 12 of 12

Timestamp date stays 12:00:00

  1. #1
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Timestamp date stays 12:00:00

    I have successfully found this formula:

    =If (b1<>"",if(a1="",now(),a1),"")

    It works BUT.....the time stays all the time to 12:00:00.

    Yes, I have removed circular warning.

    What am I missing here?

    Thanks.

    J.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Timestamp date stays 12:00:00

    Probably you need to recalc?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Timestamp date stays 12:00:00

    What do you get if you just put
    =NOW() into a cell?
    How is your cell formatted exactly?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Timestamp date stays 12:00:00

    FDibbins - what should I be recalculating?

    ChemistB - when I just put the "now", it shows the right time. My cell is also formatted to be time.

    I'm stumped! LOL

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Timestamp date stays 12:00:00

    You should have your Options>Formulas> set to iterations:1. That formula should be in A1, yes? Then when you enter something into B1, you'll see a time in A1. Is that how you have it set up?

    See attachment
    Attached Files Attached Files
    Last edited by ChemistB; 10-03-2014 at 01:44 PM.

  6. #6
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Timestamp date stays 12:00:00

    Quote Originally Posted by Johfra View Post
    I have successfully found this formula:
    =If (b1<>"",if(a1="",now(),a1),"")
    It works BUT.....the time stays all the time to 12:00:00.
    I assume the formula is in A1, and you selected the Iterative calculation option.

    In that case, A1 will change only when first you clear B1 (A1 will appear blank), then you enter something into B1 (A1 should reflect the current date and time if it is formatted as m/dd/yyyy hh:mm:ss.000 or something similar).

    If you are doing all that and you still have a problem, I suggest that you attach an Excel file that demonstrates the problem. The devil is in the details.

  7. #7
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Timestamp date stays 12:00:00

    I've done that, too...

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Timestamp date stays 12:00:00

    That formula will only work if you enable the iterative calculation as stated by ChemistB in post#5 and moreover this formula is normally used to populate a cell with static time when an entry is made in another cell. In your case A1 will only be populated with the Time value once you enter something in B1 and once B1 is not blank A1 will show you the time when a value was entered in B1 and it will not change automatically unless you delete the content of B1 and re-enter something again in B1 and this time A1 will show you the latest time value.

    Hope this helps.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  9. #9
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Timestamp date stays 12:00:00

    I've attached the file.

    Macro wasn't set up yet....pay no mind to that.

    Everything I can think of checking, always ends up with the same result...12:00:00.

    There's info (date) in the referred cell.

    I also realize that the formula given was not the same cells as what I have here - I was just trying to keep it generic.

    Thanks for your help everybody!!
    Attached Files Attached Files

  10. #10
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,648

    Re: Timestamp date stays 12:00:00

    Do you understand what this formula is doing? If not please read the post#8.
    I deleted the date in G3 and re-entered it and the time changed in G4. So the formula is doing exactly what it is supposed to do. Then where is the confusion?
    Or I am missing something?
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    04-25-2013
    Location
    Montreal, Quebec
    MS-Off Ver
    Excel 2010
    Posts
    76

    Re: Timestamp date stays 12:00:00

    Yeah - I understand all that. I'm figuring now its a problem on my end and not with me. I copied and pasted your formula and it still gives me 12:00:00 - despite doing all the abovementioned steps (which I had already done).

    I understand what this function does - I'm not a newbie to Excel but, not all of us have a perfect understanding of all the ins and outs of Excel. Though I know quite a bit (more than average), I know what I'm doing.

    I tried your sample and the time does not change - it may work on your end but not here. Gotta definitely be a glitch on my end.

    Could that be it? Wouldn't be the first time..... :/

  12. #12
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Timestamp date stays 12:00:00

    Quote Originally Posted by Johfra View Post
    I've attached the file.
    [....]
    Everything I can think of checking, always ends up with the same result...12:00:00.
    When I open the uploaded file, I see 0:00:00, not 12:00:00. Posting typo?

    If you enter =IF(G3<>"",IF(G4="",NOW(),G4),"") into G4 when G3 already has a value, the result will indeed be 0:00:00, as it should be.

    If you never clear G3, G4 will remain 0:00:00.

    Again, you must clear G3 first, then enter something into G3 in order for G4 to change.

    However, if Manual calculation is set in your instance of Excel, G4 still will not change.

    Manual calculation is not set in the uploaded file. But it still might be set if Manual calculation was already set when you open the file in your instance of Excel.

    [EDIT] PS.... Iteration calculation also will not be set if you open your uploaded file in an instance of Excel that already has an Excel file open with Iteration calculation deselected. But in that case, you would get a circular-reference warning when you open your uploaded file. Sound familiar?
    Last edited by joeu2004; 10-03-2014 at 03:43 PM.

+ 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. [SOLVED] Convert a cell with a timestamp in it to just the date to compare to another date
    By Tanyab in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-17-2013, 05:41 AM
  2. Replies: 4
    Last Post: 12-21-2011, 11:19 AM
  3. Date stays the same using =TODAY()
    By markswan20 in forum Excel General
    Replies: 10
    Last Post: 12-20-2009, 11:02 AM
  4. formula to match a date and once it does the info stays in that column
    By tdh3691 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 03-10-2008, 05:03 PM
  5. date without timestamp
    By r.vasikaran in forum Excel General
    Replies: 2
    Last Post: 05-13-2006, 07:10 AM

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