+ Reply to Thread
Results 1 to 5 of 5

Auto Complete Data Validation List

  1. #1
    Registered User
    Join Date
    09-18-2012
    Location
    Illinois
    MS-Off Ver
    Microsoft 360
    Posts
    58

    Auto Complete Data Validation List

    Hi Everyone,

    I searched the forum for possible answers to this question, but I can't seem to find anything on this exactly. I am trying to create a drop down data validation list that works also as an auto complete. Each month I merge several individuals reports containing names of regular customers and sales personnel. The individuals who create the data in these spreadsheets add names that do not belong or often misspell names which makes sorting difficult. Creating a data valadation list solves that issue, but I hear complaints of it taking too much time and effort to scroll down through a drop down list of numerous customers or sales people. The lists of customers or sales reps can be very long so I understand their concerns.

    Is there a way to use these drop down lists in conjunction with an auto complete? I'd like for them to start typing the first several letters of the customer or sales rep until the correct name shows up, then they can easily select it by hiting the enter key. I created the data validation list above the column that is used and then I hid the rows. That works fine until a row is skipped, then the auto complete does not work. I'm sure you know what I mean. I attached a very simple, yet accurate sample of what I am currently doing. You see that I hid rows 1-9 which contain the data validation lists for columns B and C.

    Any thoughts or any work arounds for this? Thanks!
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    07-27-2012
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    826

    Re: Auto Complete Data Validation List

    Hey joebell,

    I believe I have a workaround for you. As you already have your lists in the same COLUMNS that will be used for the "Sales Rep" & "Company" input, you don't actually need to use a validation rule on cells B10:C40. I realise you might want to, with good reason, but, if you bear with me.... How about "forcing" people to use the next empty cell, so that they don't skip a row? You can use custom data validation to prevent input in a cell if the cell above it (or any other one of your choosing) is empty.

    I was trying to figure out figure out how to apply 2 validation rules to the same cell, but I'm not sure if that can be done. But then I realised that you may not need the 2 rules as your lists are above the cells that data will be entered in, so people just have to start typing the first few characters of a name, then press enter once the name shows up.

    Have a look at the attached, and you'll see that the only cell you can make an entry in in Column B is B12, which is the first emtpy cell in that column. The custom validation in cell B12:

    Please Login or Register  to view this content.
    basically puts a condition on B12 that B11 must not be blank in order to have input in B12. This has been copied down to B40.

    Let me know if this helps.
    Attached Files Attached Files
    Brendan.


    __________________________________________________________________________________________________
    Things to consider:

    1) You can thank any poster by clicking the * at the left of a helpful post.
    2) You can help to keep the forum tidy by marking your thread as "Solved", if it has been answered to your satisfaction.
    3) Help us to help you, by uploading a sample workbook, showing the type of data you're dealing with, and clearly indicating what the results should be.

  3. #3
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,784

    Re: Auto Complete Data Validation List

    Or perhaps something like this could be of use?

    On the "Data" sheet you just adds the company names and the sales representatives. As these ranges are dynamic you can add or delete company / sales rep. The macro will sett the proper range and sort them as well.

    Clicking the macro buttons on sheet "Result" will bring up a userform where you start filling in name.

    Alf
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-12-2011
    Location
    The Netherlands
    MS-Off Ver
    365
    Posts
    860

    Re: Auto Complete Data Validation List

    Only for .xls extensie.
    It works in .xlsx extensie too, only after save, the formule don't work anymore (activate formula will do).
    Type at least one letter in the validation list, then klick the validationarrow.
    Attached Files Attached Files
    Harry.

  5. #5
    Registered User
    Join Date
    06-02-2014
    Posts
    1

    Re: Auto Complete Data Validation List

    First of all, thanks HSV for the excel sample. That was exactly what I was looking for.
    I would like to use your solution in a .xlsm file and was facing the issue that you explained in the .xlsx file.
    Could you explain a little further what "activate formula will do" means?

    Thank you!

  6. #6
    Registered User
    Join Date
    06-02-2014
    Posts
    1

    Re: Auto Complete Data Validation List

    Quote Originally Posted by HSV View Post
    Only for .xls extensie.
    It works in .xlsx extensie too, only after save, the formule don't work anymore (activate formula will do).
    Type at least one letter in the validation list, then klick the validationarrow.
    First of all, thanks HSV for the excel sample. That was exactly what I was looking for.
    I would like to use your solution in a .xlsm file and was facing the issue that you explained in the .xlsx file.
    Could you explain a little further what "activate formula will do" means?

    Thank you!

  7. #7
    Registered User
    Join Date
    07-23-2014
    Location
    Jacksonville, FL
    MS-Off Ver
    2007
    Posts
    1

    Re: Auto Complete Data Validation List

    I am trying to use the method shown in HSV's example file. I've updated the formulas to work on my sheet. If I just click the validation arrow, then my list drops for selection. However, I'm having difficulty when I actually go to type a letter & click the validation arrow. Regardless of what letter I type, I get a dialog stating:

    "The value you entered is not valid.

    A user has restricted values that can be entered into this cell."

+ 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