+ Reply to Thread
Results 1 to 4 of 4

Trying to use a date data validation.

  1. #1
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53

    Trying to use a date data validation.

    Hi,

    I'm trying to add a cell validation so that no one can enter a date of birth for someone aged 18 or over. Instead of putting in the validation box greater than 01/01/90 I want to add the date function so it stays up-dated as the data will be inputed weekly.

    Could someone please help......

  2. #2
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520
    Quote Originally Posted by Stevie-B
    I'm trying to add a cell validation so that no one can enter a date of birth for someone aged 18 or over. Instead of putting in the validation box greater than 01/01/90 I want to add the date function so it stays up-dated as the data will be inputed weekly.
    This might suffice ..

    Assume date inputs will be in A1 down
    Select col A (A1 active)
    Click Data > Validation
    Allow: Custom
    Formula: =AND(A1<>"",DATEDIF(A1,TODAY(),"y")<18)
    Click OK
    Max
    Singapore

  3. #3
    Registered User
    Join Date
    02-08-2008
    Location
    Co. Down, Ireland.
    Posts
    53
    Thanks Max.

  4. #4
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520
    welcome, Stevie-B

+ 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