+ Reply to Thread
Results 1 to 7 of 7

Data Validation List, disallow if not in list

  1. #1
    Registered User
    Join Date
    07-16-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Data Validation List, disallow if not in list

    I am using Data Validation on some fields to create a drop down list from a named range! These fields however allow you to enter values that are not in the list.

    Is there a way to make the cell have to be an entry from the data validation list?
    Last edited by QCBeauty; 07-20-2009 at 01:31 AM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887

    Re: Data Validation List, disallow if not in list

    Hi QCBeauty, welcome to the forum.

    Select the cell and click Data -> Validation. On the Error Alert tab, check the box labeled 'Show error alert after invalid data is entered', and then choose 'Stop' from the drop-down list below that. This will prevent any non-valid entries from being entered into that cell.

    You could also set the drop-down to warning or information, which may allow the user to enter invalid data with prompting.

    If you want to update all of the other data validation cells with the same data validation source/settings, check the box labeled 'Apply these changes to all other cells with the same settings' on the Settings tab of Data Validation before clicking OK.

    Hope that helps!

  3. #3
    Registered User
    Join Date
    07-16-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Data Validation List, disallow if not in list

    Paul,

    Thanks for your help.

    I've done this and it doesn't appear to be working. It still allows a user to type in something manually that is not in the list.

    I'm running in 2003 compatibility mode, could that have something to do with it?

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Data Validation List, disallow if not in list

    are you sure you are using =namedrange in list option?
    see attached validation is in cell a1 named range is martin
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Data Validation List, disallow if not in list

    I've done this and it doesn't appear to be working. It still allows a user to type in something manually that is not in the list.
    When setting the Error Alert Style to "Stop:

    Even with the error alert set to "Stop" a user can begin making a manual entry, but when they try to exit the cell the warning message will appear.

    Is it possible you are in a cell in which the changes you made were not applied?

    You need to make sure that when you make changes in Data Validation that you choose "Apply these changes to all other cells with the same settings" at the bottom of the first tab in the dialog.

  6. #6
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,009

    Re: Data Validation List, disallow if not in list

    Make sure you uncheck the 'Ignore blank' option in the Data Validation settings.
    Everyone who confuses correlation and causation ends up dead.

  7. #7
    Registered User
    Join Date
    07-16-2009
    Location
    NY
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Data Validation List, disallow if not in list

    Yes, I believe it was the "Ignore Blank" option. It is working now.

    Thanks gentleman,

    g

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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