+ Reply to Thread
Results 1 to 3 of 3

Data validation from list between start & end hour

  1. #1
    Forum Contributor
    Join Date
    11-28-2008
    Location
    Reykjavík, Iceland
    MS-Off Ver
    Any of: 2003 & 2007
    Posts
    412

    Data validation from list between start & end hour

    Hi,

    Assume two cells A1 & A2.

    A1 has: 07:30
    A2: has 11:00

    In cell A3 I would like to define DV, from list (not typing) for every 15 minutes.

    If I'm not clear enough I will emphasize - I DO NOT want to present the time intervals in a helper-column.

    I came up with this Array-formula - which presents the correct intervals but the DV from list will not accept it as a List source.

    =(ROW(INDIRECT(A1*96&":"&A2*96))*0.25)/24

    An attempt to define a name to that formula and use that name as the DV List source ended up with an error.

    Thanks for your efforts,

    Elm

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Data validation from list between start & end hour

    This wont create a DV list but will do the job..

    In Cell B1
    DV-- Allow custom-- formula
    =AND(MOD(B1*24,0.25)=0,B1>=$A$1,B1<=$A$2)
    or
    =AND(MOD(B1*24,0.25)=MOD($A$1*24,0.25),B1>=$A$1,B1<=$A$2)
    Last edited by Ace_XL; 08-31-2013 at 01:32 PM.
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Data validation from list between start & end hour

    The source for a data validation list must be either a reference to a range of cells (which can be a formula that points to a range of cells) or a manually entered (or VBA generated) comma delimited list.
    Last edited by Tony Valko; 08-31-2013 at 04:11 PM.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Data Validation not working at start up
    By Drivium in forum Excel General
    Replies: 3
    Last Post: 12-04-2013, 07:16 AM
  2. Data Validation not Working At Start up
    By TranceDiablo in forum Excel General
    Replies: 5
    Last Post: 03-28-2013, 02:19 PM
  3. [SOLVED] Macro to start AFTER choise from validation drop down list
    By rpinxt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-26-2012, 09:26 AM
  4. Replies: 3
    Last Post: 04-11-2011, 05:52 PM
  5. Deducting h:mm ' from a 50 hour start point
    By nje in forum Excel General
    Replies: 8
    Last Post: 06-25-2010, 04:16 AM

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