+ Reply to Thread
Results 1 to 12 of 12

Excel 2007 : Drop down validation AND dynamic list

  1. #1
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Drop down validation AND dynamic list

    Hi,
    I would like some help with setting up a drop down list that is managed similar to validation data (restricting the user to only select what is in the list) AND easy to add to the list like (making it dynamic - similar to using the formula, =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)

    Any assitance would greatly be appreciated.
    Thanks,
    Teddy
    Last edited by teddy.montoya; 12-14-2010 at 12:15 PM.

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Drop down validation AND dynamic list

    Hi,

    Use your dynamic range definition to create a named range, then refer to the range in the data validation diaoge eg

    Named_Range = =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)

    Data validation allow - list
    source = Named_range
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Drop down validation AND dynamic list

    If I followed your instructions correctly, this almost works. I would also like to enforce/restrict users to enter the grammar specific (capital first letter followed by lowercase), for example “Teddy” not “teddy”. Attached is the sample I created
    On Sheet 1: the dynamic list of Reporters
    On Sheet 2: the pull down with the list of Reporters (this allows for “Teddy” and/or “teddy” – which I would like to enforce/restrict to only “Teddy”

    Please let me know if this would be possible,
    Thanks,
    Teddy
    Attached Files Attached Files

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Drop down validation AND dynamic list

    Hi,

    try this:

    =AND(CODE(LEFT(C1,1))>=65,CODE(LEFT(C1,1))<=90,ISNUMBER(MATCH(C1,Reporters,0)))

  5. #5
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Drop down validation AND dynamic list

    Sorry, not following where to use this code? I tried replacing the code you provided with the defined name Reporter {Reporters=OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)}. When I do this the pull down is blank. Any suggestioins? Sorry, if this is supposed to be easy.

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

    Re: Drop down validation AND dynamic list

    Nevermind...you have hidden spaces in your data that made for a false test.
    _________________
    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!)

  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: Drop down validation AND dynamic list

    I added a conditional format to your column C that will hide the font if you type something that isn't exactly the same as the original values in the Reporters list.
    Attached Files Attached Files

  8. #8
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Drop down validation AND dynamic list

    The formula should be used in Data > validation > custom.

    However, as JB mentions, you have spaces in the list that cause issues.

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

    Re: Drop down validation AND dynamic list

    Quote Originally Posted by sweep View Post
    The formula should be used in Data > validation > custom.
    Sweep, I opted for conditional formatting because the main point of this issue is that Data Validation Lists are already being used.

  10. #10
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Drop down validation AND dynamic list

    Understood, I was just pursuing the original request for validation.

    Rgds,

    Dave

  11. #11
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Drop down validation AND dynamic list

    Thank you both for your help and patience, I really appreciate it.

  12. #12
    Registered User
    Join Date
    10-18-2010
    Location
    chicago
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Drop down validation AND dynamic list

    I do not have the option to close this case/tread - I dont have any pull down option near the "Titlle" (as indicated in the FAQ). Any suggestions?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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