+ Reply to Thread
Results 1 to 10 of 10

Auto fill one cell from a Data Validation List

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    Woodburn, Oregon
    MS-Off Ver
    2010
    Posts
    3

    Auto fill one cell from a Data Validation List

    I am trying to drop assign an code based on a description value. The table is for street signs. When the user picks a description (Stop), the column next to it fills in with the code value (R1-1). I have A second spread sheet in my excel file with the description associating with the code number. I have tried using VLOOKUP and other options but cannot find a solution. I have uploaded my table.
    Attached Files Attached Files

  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: Auto fill one cell from a Data Validation List

    1) Which cell are you asking for help on?

    2) Which cell should that cell be "looking" at and which sheet name should it then refer to?
    _________________
    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!)

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Auto fill one cell from a Data Validation List

    Hi welcome to the forum

    try this for column C...
    =VLOOKUP(B2,MUTCDCode!$A$1:$C$1017,2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

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

    Re: Auto fill one cell from a Data Validation List

    Ford, that doesn't work for "Speed Limit". Totally different results than they have in there currently. Truth is that's why I asked for more direction on what is needed and where. Column C isn't a 1-1 relationship. There are many "Speed Limit" codes.

  5. #5
    Registered User
    Join Date
    10-09-2014
    Location
    Woodburn, Oregon
    MS-Off Ver
    2010
    Posts
    3

    Re: Auto fill one cell from a Data Validation List

    What if I did the reverse, the MUTCD Codes are unique.

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,929

    Re: Auto fill one cell from a Data Validation List

    It actuually does work, Jerry, its just that there are 8 different "speed hump codes - I didnt notice that...
    Speed Limit R2-1 Regulatory
    Speed Limit R2-1-15 Regulatory
    Speed Limit R2-1-20 Regulatory
    Speed Limit R2-1-25 Regulatory
    Speed Limit R2-1-30 Regulatory
    Speed Limit R2-1-35 Regulatory
    Speed Limit W13-115 Warning
    Speed Limit W13-125 Warning

    If you intend looking up the code and returning the name, try this...
    =INDEX(Description,MATCH(SignInventory!$C2,MUTCD_Code,0))

    However, with over 1000 codes, how whill you know which code to type in?

  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: Auto fill one cell from a Data Validation List

    Yes, if you put in the MUTC code, and put that column into "A" of the MUTC sheet, then a simple VLOOKUP could pull back the description.

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

    Re: Auto fill one cell from a Data Validation List

    Another idea is to create a drop down in column C that only lists the options for the choice you made in column B. So if you select "Speed Limit", then column C would show only 8 choices in the drop down.

  9. #9
    Registered User
    Join Date
    10-09-2014
    Location
    Woodburn, Oregon
    MS-Off Ver
    2010
    Posts
    3

    Re: Auto fill one cell from a Data Validation List

    Thanks for all of the suggestions, I will try out a few and see what will work best.

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

    Re: Auto fill one cell from a Data Validation List

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

+ 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. Auto-Generate List from reference cells based on data validation list selection
    By BoundCustomDesign in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 05-13-2014, 11:06 AM
  2. Data validation how to drag and auto fill
    By brad999 in forum Excel General
    Replies: 11
    Last Post: 05-12-2014, 08:34 AM
  3. [SOLVED] Fill cell with a value from List Validation applied
    By varunit in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-30-2013, 07:30 AM
  4. Auto-Fill selection when using Data Validation?
    By duugg in forum Excel General
    Replies: 2
    Last Post: 07-31-2007, 10:34 AM
  5. auto-fill a data validation drop down list
    By carsto in forum Excel General
    Replies: 1
    Last Post: 04-11-2007, 11:56 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