+ Reply to Thread
Results 1 to 8 of 8

Drop down list

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Stoke, England
    MS-Off Ver
    Ms 365
    Posts
    68

    Drop down list

    Hi All

    I Am trying to create a dynamic drop down list from information contained in column A.

    11:03

    11:09


    11:34

    Column A is populated by the following formulas in cells A1 to A1000 =IFERROR(MID(B2,FIND("- ",B2)+2,5)+0,"") The cells are formatted as HH:MM

    How can i pull out all the times into a list ignoring all blank cells, i am struggling to get this to work.

    Thanks for any help

  2. #2
    Forum Contributor
    Join Date
    02-20-2017
    Location
    Indiana
    MS-Off Ver
    2016
    Posts
    101

    Re: Drop down list

    try these instructions

    highlight cell you want list to be in
    Data tab>data validation
    Allow: List
    Source: A1 to A1000
    make sure ignore blank is check marked
    Ok

  3. #3
    Forum Expert
    Join Date
    10-02-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    1,222

    Re: Drop down list

    Quote Originally Posted by BryceVBA View Post
    try these instructions

    highlight cell you want list to be in
    Data tab>data validation
    Allow: List
    Source: A1 to A1000
    make sure ignore blank is check marked
    Ok
    The ignore blanks here will only ignore if someone enters a blank in the cell, ie: allow entering a value from the list or a blank in the data validation cell.

    As for the list there is no straight forward way to ignore blanks in the source of a drop down. The assumption is that the target of your list includes all of the entries you want in the drop down and not entries you do not want. You may be able to using formulas/VBA generate another list without the blanks and base the dropdown on that, but that would be pretty complex.

  4. #4
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Drop down list

    Another way.

    There is a random list of times in column A of the attached. Some cells are "blank".

    In column I is the list not containing blanks. The formula entered in cell I1 and filled down until you get blanks is an array formula. If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Then the attached uses D1 for the drop down. Data validation 'Allow:' is List. 'Source:' is
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Drop down list

    Ooops!

    I uploaded an *.xlsx file.

    Here is a 2003 compatible version.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-11-2012
    Location
    Stoke, England
    MS-Off Ver
    Ms 365
    Posts
    68

    Re: Drop down list

    Quote Originally Posted by FlameRetired View Post
    Ooops!

    I uploaded an *.xlsx file.

    Here is a 2003 compatible version.
    That is spot on thanks for your help!

    Much appreciated

    H

  7. #7
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Drop down list

    Good deal. You're welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  8. #8
    Registered User
    Join Date
    04-11-2012
    Location
    Stoke, England
    MS-Off Ver
    Ms 365
    Posts
    68

    Re: Drop down list

    Going on from this i have noticed if there are 2 times the same it gets confused, can i use some text at the start and still maintain my list?

    Example

    Tunstall 11:03


    Tunstall 14:15


    Seabridge 11:03


    Tunstall 17.00

    Can i have the venue names sorted in alphabetical order and the times too to stop 2 same times clashing.

    As always thanks in advance

    H

+ 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. Replies: 5
    Last Post: 03-10-2016, 09:32 AM
  2. [SOLVED] Pre-populated drop-down list from selection made in drop-down list
    By jmaggols in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-15-2015, 12:26 PM
  3. [SOLVED] Range in one drop down list depended on the selection in another drop down list
    By masben in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-26-2013, 10:36 AM
  4. Populate Drop-down list based on selection from previous drop-down list
    By Diventus in forum Excel - New Users/Basics
    Replies: 14
    Last Post: 01-11-2013, 10:55 AM
  5. Populate Drop-down list based on selection from previous drop-down list
    By poison_stone in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-11-2012, 06:10 PM
  6. Replies: 3
    Last Post: 04-16-2012, 10:14 PM
  7. Replies: 5
    Last Post: 10-27-2005, 01:55 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