+ Reply to Thread
Results 1 to 7 of 7

How to stop "today" function from changing the date every day in excel

  1. #1
    Registered User
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    How to stop "today" function from changing the date every day in excel

    Hi,


    Thanks in advance for you all


    I've been looking and searching for a solution to my problem for an excel formula from the last week
    but i did not find anything , I'm not that good in VB so I didn't know how to use the code ,


    please please please pleas I need help



    I have an excel sheet to track the customer Issues in my work


    if the Issue is closed , I enter the word "closed" in cell "I7" and so on to cell "I29"
    then the date will show in cell "K7" and so on in cell "K29"


    and if the Issue is still open, I enter the word "open" in cell "I7" and so on to cell "I29"
    then the word "pending" will show in cell "K7" and so on in cell "K29"


    And if nothing entered in cell "I7" and so on to cell "I29" , nothing will show in cell "K7" and so on to cell "K29".


    I am using this formula on my work sheet in cell ( K7 ) , and I have 13 sheets for each month in this workbook
    and i dragged the formula till cell ( K29 )
    =IF(I7="closed",today(),IF(I7="open","pending",""))


    The problem is that when I open my sheet the next day all the entry dates change to today, I need the previous day entrees to stay the same and only the new entry to show today's date.

    PLEASE HELP ...

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to stop "today" function from changing the date every day in excel

    You will need to turn on ITERATIONS in your workbook to allow creation of a formula that references ITSELF. This is called circular logic and 99% of the time nobody wants that. Sounds like you do.

    So go into the FILE > OPTIONS > FORMULAS and check [x] Enable iterative calculation.

    Now you can change your formula to include only updating TODAY if the cell itself is not a date. So in K7:

    =IF(AND(I7="closed", NOT(ISNUMBER(K7))), TODAY(), IF(I7="open","pending",""))
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to stop "today" function from changing the date every day in excel

    Thanks for your quick reply , but it did not work when I enter "closed" , nothing shows in cell " K7"
    the "pending" part is working

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to stop "today" function from changing the date every day in excel

    How about:

    =IF(I7="open","pending", IF(I7="closed", IF(ISNUMBER(K7), K7, TODAY()), ""))

  5. #5
    Registered User
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to stop "today" function from changing the date every day in excel

    It worked ... ,thank you, thank you, thank you ,thank you ,thank you ,

    you are a life saver

    thank you ,thank you ,thank you

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: How to stop "today" function from changing the date every day in excel

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above to mark a thread as SOLVED. Thanks.

  7. #7
    Registered User
    Join Date
    12-19-2013
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: How to stop "today" function from changing the date every day in excel

    OK , I'll do that

    and Thanks again

+ 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. condit. format: If date in cell = today, display "Today"
    By ratkins in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-14-2013, 01:33 PM
  2. "IF()" function using "TODAY()" to produce a value in days
    By Rob.Marchel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-06-2012, 09:12 PM
  3. Replies: 1
    Last Post: 06-28-2012, 03:23 AM
  4. Replies: 11
    Last Post: 03-29-2009, 01:46 PM
  5. [SOLVED] "NOW" or "TODAY" date function
    By Chris in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-19-2006, 02:50 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