+ Reply to Thread
Results 1 to 7 of 7

Working with Dates.

  1. #1
    Registered User
    Join Date
    03-25-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    11

    Working with Dates.

    Hi,

    I am working on a work sheet and need to enable cells so when someone enters some text into a cell. Another cell records the current date.

    Atm I have this formula.

    =IF(ISTEXT(D11),TODAY(),"")

    This works to a degree but the cell changes the date to be the current date when ever the Excel file is opened. I need this date to stay fixed to the day the text in Cell D11 is added.

    Any suggestions?

  2. #2
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,436

    Re: Working with Dates.

    Here's one strategy for getting timestamps in Excel: http://chandoo.org/wp/2009/01/08/tim...-formula-help/
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,355

    Re: Working with Dates.

    Hi Tonypg and welcome to the forum,

    I believe you will need to do some Event VBA and put the current date in when anything is entered into those date cells. I think the link MrShorty has the VBA code. We could help more if:

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Registered User
    Join Date
    03-25-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    11

    Re: Working with Dates.

    Thanks for the link.

    Ok so one more small problem.

    I have this formula now.

    =IF(D5<>"",IF(ISTEXT(D5),TODAY(),F5),IF(F5=FALSE,"",))

    Which work great however, if D5 is empty it doesn't date stamp but displays the date as 00-01-00 is there away to hide this NULL value?

  5. #5
    Registered User
    Join Date
    03-25-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    11

    Re: Working with Dates.

    Never mind simple fix by changing removing the Check box in File > Options.

  6. #6
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Working with Dates.

    According to that you are executing the last if:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    If F5 isnt = FALSE then you have no parameter. Try putting something there for the if false arg.

    What is the desired result here. So far the logic to me reads: If D5 is blank check F5. If its false return "", if its F5 isnt = false return FALSE (since no argument is provided). If thats the desired result try FALSE or "FALSE" as the argument.

    You can also try using evaluate formula on the formula tab to step through the function and see how the logic works out, that may lead you to what the formula is actually returning and why. Hope this helps

    PS - I would also point out that the iterative calculation can cause problems in other functions and as far as I know it is a program wide option, not a workbook specific option. I would recommend looking for a VBA/macro solution to what you are doing. You could write it as a UDF (user defined function, essentially used like built in functions/formulas) or potentially on event (Worksheet_Change event likely).
    Last edited by Zer0Cool; 03-25-2017 at 01:20 AM.

  7. #7
    Registered User
    Join Date
    03-25-2017
    Location
    Australia
    MS-Off Ver
    2013
    Posts
    11

    Re: Working with Dates.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    There is probably another way to fix this part. But it was the first thing that came to me, the intention was just to change the value of FALSE from the previous True / False statement to put blank information when no value was obtained. The other parameter will never be called so didn't see the need to put anything in there, to make it look neater I could have put in:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It's a work around by changing the value to "", resulted in the 00-01-00 value, but removed this by the Advanced options on the Sheet, turning of 0 values.

    The whole purpose of this formula is to make the sheet easier for Staff members to us. They enter in an ID into example Cell D5 and the data is entered into Cell F5.

    Next time the work sheet is open the date remains the date of entry.

+ 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] Formula to return the 'earliest' and 'latest' dates from a list of dates is not working
    By Hawkmoth1 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2017, 07:14 AM
  2. [SOLVED] Working with specific dates against Week Commencing dates
    By daveb86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2015, 05:36 AM
  3. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  4. Help Working Out Relative Dates and Non Working Days
    By leungf in forum Excel General
    Replies: 0
    Last Post: 08-07-2012, 12:06 PM
  5. [SOLVED] Working Dates and Off Dates Formula
    By jettechfsr in forum Excel General
    Replies: 5
    Last Post: 08-26-2011, 11:36 PM
  6. Replies: 7
    Last Post: 01-16-2009, 05:04 AM
  7. [SOLVED] working with dates
    By Biff in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 09:05 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