+ Reply to Thread
Results 1 to 10 of 10

Display test string depending on date

  1. #1
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Display test string depending on date

    Hello all,

    I need a forumla that will dispay a set text message in a cell based on the date in another cell.

    I need cell A1 to display the text message "Forwards Booking Date, No Action Required" Where cell A2 has a date entered in it that is the same as todays date or greater - i.e. in the future.

    And if the date is in the past for no text message to appear.

    Thanks in advance,

    BVG

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Display test string depending on date

    =IF(E1<TODAY();"";"Forwards Booking Date, No Action Required")
    Last edited by zbor; 03-31-2009 at 07:44 AM. Reason: rather TODAY() than NOW()
    Never use Merged Cells in Excel

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Display test string depending on date

    zbor, I think that should be <TODAY() rather than <NOW() .. the latter includes a time stamp so if E1 contained 31/03/2009 using NOW() would result in Null given NOW() > TODAY() ... say it were noon NOW() = 39903.5 whereas TODAY = 39903

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Display test string depending on date

    True... Corrected..

    But also, this might be usefull:

    =IF(E1>=TODAY();"No action required. Expire in: "& E1-TODAY() &" days";"")

  5. #5
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Display test string depending on date

    Using =IF(E1<TODAY();"";"Forwards Booking Date, No Action Required")

    Does not seem to work, Excel tells me the formula I entered contains an error.

    If I replaced the ; with , it lets me enter it but still fails to give the result I am looking for.

    Any ideas?

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Display test string depending on date

    You need to reference A2 per your original question I believe:

    =IF(A2<TODAY(),"","Forwards Booking Date, No Action Required")

  7. #7
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Display test string depending on date

    Done that, its J5.

    Attached for all to see now.

    The formula needs to go in L5
    Attached Files Attached Files

  8. #8
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Display test string depending on date

    From what I can see...

    L5: =IF(ISERR(0+J5),"",IF(0+J5<TODAY(),"","Forwards Booking Date, No Action Required"))

    Also you have Lotus Notes Transition Formula Entry activated - not sure if required or not http://support.microsoft.com/kb/213953

  9. #9
    Forum Contributor
    Join Date
    02-09-2007
    Location
    UK
    MS-Off Ver
    2019 & 365
    Posts
    304

    Re: Display test string depending on date

    Hi,

    Thanks for your patience, but its still not working for me....

    I have entered the formula provided and copie dit down to cell L325 but none of the results I would have liked are displayed!

    For example, in L5 I would expect it to be blank - Which it is.

    But in L7 where the formula is looking at a date of April 1st 2009 I would expect to see the text message "Future booking date, no action required" - This does not happen.

    Any ideas as to how to solve?

    Maybe you can make it work and upoad the spread sheet?

  10. #10
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,043

    Re: Display test string depending on date

    now it's working...

    Replace ; with , if you need...

    =IF(ISERR(DATEVALUE(J5));"";IF(DATEVALUE(J5)<TODAY();"";"Forwards Booking Date, No Action Required"))

+ 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