+ Reply to Thread
Results 1 to 7 of 7

Validate date so entry can not be greater than today

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Validate date so entry can not be greater than today

    New to posting...

    Thank you to all for the amazing information that has helped me solve too many issues to count!

    I am trying to write a custom data validation that validates that the date entered is not less than today's date. However if the date was entered yesterday it can remain as is. Example- today I enter today's date in a cell (a1) and tommorrow I enter a new date in a different cell (a2). Today it validates for today in cell A1, but tomorrow it validates the cell for that date or beyond. It just can't be less than today.

    Hope that makes sense.

  2. #2
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Validate date so entry can not be greater than today

    Welcome to the forum..

    Allow: Date
    Data: not equal to
    Date: =TODAY()

    HTH.
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  3. #3
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Validate date so entry can not be greater than today

    Just use =A1>=TODAY()

    ---------- Post added at 07:40 PM ---------- Previous post was at 07:39 PM ----------

    Quote Originally Posted by vlady View Post
    Welcome to the forum..

    Allow: Date
    Data: not equal to
    Date: =TODAY()

    HTH.
    That wouldn't allow anything in the future either ...

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Validate date so entry can not be greater than today

    reply ok i thought of that didn't read it properly.

    don't know if we can attain it though...

    and tommorrow I enter a new date in a different cell (a2). Today it validates for today in cell A1, but tomorrow it validates the cell for that date or beyond. It just can't be less than today.
    data validation is upon "entering data"
    if data exist don't know on "existing values"..

    disregard post #2
    thanks.

  5. #5
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: Validate date so entry can not be greater than today

    Quote Originally Posted by vlady View Post
    don't know if we can attain it though...
    I'm not sure if the OP wants to revalidate yesterday's entry, or leave it the way it is since the day it was entered it was fine. The second way is achievable; the first is not (at least not without VBA).

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,361

    Re: Validate date so entry can not be greater than today

    yes vba can do that. but surely not data validation.

    It just can't be less than today.

  7. #7
    Registered User
    Join Date
    08-16-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: Validate date so entry can not be greater than today

    Thanks for the help. I only need to validate at the time of entry (prevent error). After that it needs to remain as orignially inputted.

+ 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