+ Reply to Thread
Results 1 to 7 of 7

Data Validation formula for certain dates and text

  1. #1
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Data Validation formula for certain dates and text

    Hello all!
    I am trying to create the following formula argument in Data Validation but without much luck:
    If entering date in Cell "A1" then date must be anywhere between January 1st 2014 to December 31st 2014, and the only text that can be entered, if not entering date, is "N/A".

    Thank s in advance

  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: Data Validation formula for certain dates and text

    Allow: Custom
    Source: =OR(A1="N/A", AND(A1>=41640, A1<=42004))
    _________________
    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
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Data Validation formula for certain dates and text

    Try:
    =IF(A1="N/A",TRUE,YEAR(A1)=2014)

  4. #4
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Data Validation formula for certain dates and text

    Hi guys, thanks! Both formulas don't seem to be working out the issue. I tried typing today's date and got error message.

  5. #5
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Data Validation formula for certain dates and text

    I tried it on a test first and it seemed ok, take a look at the attached example?
    Attached Files Attached Files

  6. #6
    Valued Forum Contributor
    Join Date
    11-27-2013
    Location
    Waterbury, CT
    MS-Off Ver
    Office 365
    Posts
    1,175

    Re: Data Validation formula for certain dates and text

    Silly me! I used your formula in a different cell and didn't enter the cell correctly in the formula.
    Thanks for helping me out ragulduy and JBeaucaire

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

    Re: Data Validation formula for certain dates and text

    As it appears you've reached a conclusion, I've marked this thread SOLVED for you.
    FYI, this is done through the Thread Tools located above the first post in this thread. Thanks.

+ 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. Need help with Data Validation Formula for a set of numerical and text-based values
    By bozhidar.ivanov in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 04-30-2014, 10:32 AM
  2. Replies: 7
    Last Post: 01-25-2014, 07:53 AM
  3. Help with data validation - problems with dates and times
    By tfgorman in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-22-2013, 05:57 AM
  4. Data validation with dates
    By kadams99 in forum Excel General
    Replies: 1
    Last Post: 12-20-2010, 09:37 PM
  5. [SOLVED] Dates using Data / Validation
    By susan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-12-2006, 07:30 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