+ Reply to Thread
Results 1 to 8 of 8

Date keeps changing. How to keep it static?

  1. #1
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Question Date keeps changing. How to keep it static?

    When I populate B7, B8, B9, etc... I ask cell F7, F8, F9, etc. to put in today's date.
    That works fine.

    When I open THAT SAME excel worksheet next day, F7, F8, F9, etc. gives me TODAY'S date. Every different day that I open that same excel worksheet, it updates the date without me asking it to.

    How do I tell F7... If B7 is populated, put in today's date, and leave it like that; don't refresh to a new date.

    This is the current formula I am using on F7:

    =IF(LEN(B7)>0,TODAY(),"")

    Is TODAY the wrong function to use?

  2. #2
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Date keeps changing. How to keep it static?

    Hi,

    From what you have described, you may want to include circular reference to keep your date static.

    In my opinion, you can do so by:
    1.) Enable iteration (something like 3)
    2.) use: =if(F7<>"",F7,IF(LEN(B7)>0,TODAY(),""))
    *I do not have excel installed in my home (current) computer so I cannot test out the formula, but I believe what I have stated should work...
    **Assuming B7 to be input, F7 to be time stamp

    Please feel free to tell me if it is not what you wanted!


    SC
    Do give a * (bottom left) if the post helped!

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Date keeps changing. How to keep it static?

    Quote Originally Posted by JPWRana View Post
    When I populate B7, B8, B9, etc... I ask cell F7, F8, F9, etc. to put in today's date.
    That works fine.

    When I open THAT SAME excel worksheet next day, F7, F8, F9, etc. gives me TODAY'S date. Every different day that I open that same excel worksheet, it updates the date without me asking it to.

    How do I tell F7... If B7 is populated, put in today's date, and leave it like that; don't refresh to a new date.

    This is the current formula I am using on F7:

    =IF(LEN(B7)>0,TODAY(),"")

    Is TODAY the wrong function to use?
    Not necessarily. TODAY() is a volatile function. It updates upon calculation of your spreadsheet and when you open it.

    To get around this, and keep your dates static, whenever you use TODAY() (or NOW()) copy and paste back to the same cell with the paste values option.
    As an alternative, if formulas aren't required, the Keyboard shortcut for entering the date in Excel is Ctrl + ;
    Try it.

    There are other things you can do if you require the date in a function and that would be to use a "hard copied" date as above in a "helper" cell. Just refer to that in your formula.

    Hope this helps.

  4. #4
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Date keeps changing. How to keep it static?

    Quote Originally Posted by FlameRetired View Post
    Not necessarily. TODAY() is a volatile function. It updates upon calculation of your spreadsheet and when you open it.
    I see that now... lol.

    Quote Originally Posted by FlameRetired View Post
    To get around this, and keep your dates static, whenever you use TODAY() (or NOW()) copy and paste back to the same cell with the paste values option.
    I don't get understand.

    Quote Originally Posted by FlameRetired View Post
    As an alternative, if formulas aren't required, the Keyboard shortcut for entering the date in Excel is Ctrl + ;
    Try it.
    Flame, I am aware of the Ctrl + ; option, but I want to avoid any EXTRA key strokes. Every key stroke that I DON'T HAVE TO DO is time saved.

    Quote Originally Posted by FlameRetired View Post
    There are other things you can do if you require the date in a function and that would be to use a "hard copied" date as above in a "helper" cell. Just refer to that in your formula.

    Hope this helps.
    Like what?

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,406

    Re: Date keeps changing. How to keep it static?

    Quote Originally Posted by JPWRana View Post
    I see that now... lol.


    I don't get understand.



    Flame, I am aware of the Ctrl + ; option, but I want to avoid any EXTRA key strokes. Every key stroke that I DON'T HAVE TO DO is time saved.



    Like what?
    OK. The extra key strokes thing I can't help you with. Everything I've suggested does that. The only thing left that I can think of is VBA...macros....
    and I am VBA anemic. Maybe someone who isn't will step in.
    Sorry I couldn't help.

  6. #6
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Date keeps changing. How to keep it static?

    Quote Originally Posted by SCLai View Post
    Hi,

    From what you have described, you may want to include circular reference to keep your date static.

    In my opinion, you can do so by:
    1.) Enable iteration (something like 3)
    2.) use: =if(F7<>"",F7,IF(LEN(B7)>0,TODAY(),""))
    *I do not have excel installed in my home (current) computer so I cannot test out the formula, but I believe what I have stated should work...
    **Assuming B7 to be input, F7 to be time stamp

    Please feel free to tell me if it is not what you wanted!


    SC
    SC... I tried what the formula you gave me, but it doesn't work.

  7. #7
    Forum Contributor SCLai's Avatar
    Join Date
    08-18-2010
    Location
    Singapore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Date keeps changing. How to keep it static?

    Quote Originally Posted by JPWRana View Post
    SC... I tried what the formula you gave me, but it doesn't work.
    Hi,

    I have tested out the formula using my office computer, and found that the formula took the empty cell as 0, so I have done some modification to it...

    If you want the time stamp to disappear when you clear your data in Col B:
    =IF(B7="","",IF(AND(F7<>"",F7<>0),F7,IF(LEN(B7)>0,TODAY(),"")))
    or
    =IF(B7="","",IF(F7<>"",F7,IF(LEN(B7)>0,TODAY(),"")))

    If you DO NOT want the time stamp to disappear when you clear your data in Col B:
    =IF(AND(F7<>"",F7<>0),F7,IF(LEN(B7)>0,TODAY(),""))

    Of course as mentioned, you will need iteration to be enabled.


    Hope that is what you wanted!

    SC
    Attached Files Attached Files
    Last edited by SCLai; 10-02-2014 at 08:24 PM.

  8. #8
    Forum Contributor
    Join Date
    10-23-2004
    Location
    Los Angeles
    MS-Off Ver
    2010
    Posts
    253

    Re: Date keeps changing. How to keep it static?

    SCLai... I piloted the formula last week and I think it's ok. After December ends, if it still doesn't give me hiccups, I will close the thread SOLVED.

    By the way, just so you know, its the first formula on Post #7 the one that IS GIVING ME what I'm looking for.

    If I only understood why it works , but other than that

+ 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] Changing code from Static to Dynamic
    By JamesFletcher in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2013, 04:33 AM
  2. [SOLVED] vlookup to right: static value & changing column index
    By fayjohn123 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-05-2013, 05:25 PM
  3. Replies: 1
    Last Post: 01-12-2013, 04:14 PM
  4. Changing numbers from forumla to static
    By newmoon in forum Excel General
    Replies: 1
    Last Post: 06-20-2006, 03:30 PM
  5. [SOLVED] Changing a formulas result to be a static number
    By Desperate in forum Excel General
    Replies: 3
    Last Post: 05-06-2005, 10:06 PM

Tags for this Thread

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