+ Reply to Thread
Results 1 to 8 of 8

Help with a data validation formula

  1. #1
    Registered User
    Join Date
    01-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    17

    Help with a data validation formula

    I need some help with a formula i cant seem to figure out to save my life.

    I have a spreadsheet that we use at our church to track attendees. Starting in column A row 4 i have a named range called AttendeeID. And in column B row 4 i have a named range called AttendeeName.

    The AttendeeID's range from d-0001, t-0001, N-0001, etc, depending on how that person has been classified.

    What I am looking for is a way to create a validation dropdown list that will look through the AttandeeID's and fill the list with only those names where the AttendeeID = d-whatever. I want to place this dropdown in column C row 4.

    The entire sheet is also a named range called AttendeeList if that helps any.

    I have used =VLOOKUP("d-????",AttendeeList,30,FALSE) in an empty cell and it will only return the first name in the list and when i placed it in a validation list i get "The list source must be a delimited list, or a reference to a single row or column". I have also tried varios IF statements and i just cant seem to figure this one out.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with a data validation formula

    Hi,

    I can do no better than point you in the direction of Debra's Contextures web site where you'll learn everything you ever want to know about dependent drop down lists - and more. See http://www.contextures.com/xlDataVal02.html
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    01-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    17

    Re: Help with a data validation formula

    i have looked at that and it didn't seem to cover what i am trying to do, unless i am just missing something.

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,120

    Re: Help with a data validation formula

    Please see the attached example.

    Regards, TMS
    Attached Files Attached Files
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help with a data validation formula

    Quote Originally Posted by mwood6275 View Post
    i have looked at that and it didn't seem to cover what i am trying to do, unless i am just missing something.
    ...I suspect you are missing something...

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,120

    Re: Help with a data validation formula

    @Richard: not sure it is a dependent list in the way that Debra describes. Unless I also am missing something, there is an initial list and for each entry in that list, there is a dependent list.

    In this instance, the OP wants to type a letter in the DV box and get a list relating to that letter. The example I have uploaded allows you to do that. You can type d, t, or n in the box ... anything else will be rejected. Once the letter is in the box, you can either press Enter and click on the arrow, or just click on the arrow. Note that the letter itself must be in the list.


    A
    B
    C
    D
    E
    F
    G
    H
    I
    1
    n
    d
    t
    N
    Only way I can think of …
    2
    d
    t
    n
    3
    d-0001
    t-0001
    N-0001
    two stage process
    4
    d-0002
    t-0002
    N-0002
    first, type the letter in cell A1
    5
    d-0003
    t-0003
    N-0003
    press the down/selection arrow
    6
    d-0004
    t-0004
    N-0004
    then you can select an ID from the "Group"
    7
    d-0005
    t-0005
    N-0005
    8
    d-0006
    t-0006
    N-0006
    9
    d-0007
    t-0007
    N-0007
    10
    d-0008
    t-0008
    N-0008
    11
    d-0009
    t-0009
    N-0009
    12
    d-0010
    t-0010
    N-0010



    Regards, TMS

  7. #7
    Registered User
    Join Date
    01-29-2015
    Location
    United States
    MS-Off Ver
    2013
    Posts
    17

    Re: Help with a data validation formula

    Thank You so much for all of your help folks.

  8. #8
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,120

    Re: Help with a data validation formula

    You're welcome.

+ 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: 4
    Last Post: 07-18-2014, 11:48 AM
  2. [SOLVED] How to use INDEX formula in conjunction with Data Validation to output data.
    By Pope_003 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-09-2014, 11:08 AM
  3. [SOLVED] Formula to display data validation results on another sheet based on data chosen?
    By myoung5149 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-16-2013, 02:53 PM
  4. Need to shorten Data Validation formula in order to fit into formula field
    By V57strat in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-27-2012, 05:31 PM
  5. [SOLVED] Need Data Validation or Formula to Force Entry of Data in .25 Increments
    By sstravs in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-11-2012, 07:16 PM

Tags for this Thread

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