+ Reply to Thread
Results 1 to 2 of 2

Data Validation with Multiple criteria

  1. #1
    Registered User
    Join Date
    10-01-2013
    Location
    E Yorks
    MS-Off Ver
    Excel 2013
    Posts
    1

    Data Validation with Multiple criteria

    Hi All,

    I have a sheet that I need users to be only able to enter time in hh:mm format or the word hol in cells.

    I can do either or in the data validation function but need a way of doing both at the same time.

    i hope I explained myself correctly.

    Thanks Alot

    Gavin

  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 with Multiple criteria

    1) You format the cells in question with a number format that is TIME and in the format of hh:mm so it automatically displays correctly regardless of how they enter it.

    2) TIME value are in reality fractions of the number 1 formatted to display in our familiar time formats. 0.5 for instance is noon, 0.25 is 6am, and 0.75 is 6pm. So a DV formula need only test that the value entered into the cell be either a number between 0 and 1 or the word "Hol".

    Allow: Custom
    Source: =OR(AND(A1>0, A1<1), A1="hol")
    _________________
    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!)

+ 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] data validation WITH MULTIPLE CRITERIA...need help!!!!!!
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-30-2013, 01:15 PM
  2. Replies: 0
    Last Post: 12-12-2011, 07:27 PM
  3. Data Validation with multiple criteria
    By hedeyatch in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-11-2009, 02:00 AM
  4. Select Multiple Criteria via Data Validation
    By jcavigli in forum Excel General
    Replies: 2
    Last Post: 06-10-2008, 02:57 PM
  5. [SOLVED] Multiple criteria in Data Validation
    By Amy Stein in forum Excel General
    Replies: 2
    Last Post: 04-06-2006, 01:10 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