+ Reply to Thread
Results 1 to 5 of 5

Restrict data entry in Drop Down List based on a Named Range

  1. #1
    Registered User
    Join Date
    01-13-2023
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    3

    Restrict data entry in Drop Down List based on a Named Range

    I've created several drop down lists based on tables (named ranges). However, there doesn't seem to be a way to restrict data entry to the items in the list. If I instead create a drop down list based on a range of cells, the data validation works as expected, and I get an error when I type in a value that's not on the list. But for drop down lists that are based on tables or named ranges, I can type in any value with no error. Thanks for your help.

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Restrict data entry in Drop Down List based on a Named Range

    Just a guess but I would say that your 'error alert' is unchecked in your data validation for the named range.

  3. #3
    Registered User
    Join Date
    01-13-2023
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    3

    Re: Restrict data entry in Drop Down List based on a Named Range

    I figured it out. Apparently, For tables/named ranges, if there is a blank row in the drop down list (mine has one as a separator), the restriction and error message features are disabled. But for a simple range of cells they're not. I changed my separator to be dashes "--" and that works. I can't find any documentation on the web about this. Seems like a bug to me.

  4. #4
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Restrict data entry in Drop Down List based on a Named Range

    Glad you got it figured out.

    I'm always a bit careful when saying there is a 'bug' in Excel. It nearly always comes back to bite you on the ****.

    If you'd like, put up your workbook and I'll have a look at it.

    PS: I just recreated your issue and if you uncheck ignore blank, you might get what you are after?

    But you are right, the behaviour is different with a named range. Not sure why.

    PPS Something I just found.

    "If the source list is a named range that contains blank cells, users may be able to type any entry, without receiving an error message. This short video shows one possible solution to the problem, and there are written steps below the video.

    Note: This problem with blank cells does not happen if the source list is a range address, e.g. $A$1:$A$10"

    The video and "steps below", just tell you to uncheck 'ignore blank' as I said above.
    Last edited by Croweater; 01-24-2023 at 10:18 PM.

  5. #5
    Registered User
    Join Date
    01-13-2023
    Location
    San Jose, CA
    MS-Off Ver
    2016
    Posts
    3

    Re: Restrict data entry in Drop Down List based on a Named Range

    Thank you!

+ 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. [SOLVED] Remove Blanks In Data Validation Drop Down List (Dynamic Named Range)
    By d365b in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 05-07-2021, 03:55 PM
  2. [SOLVED] Restrict Data Entry if previous cell doesn't fall between a particular range
    By dezspert22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-12-2016, 06:27 PM
  3. Replies: 3
    Last Post: 12-18-2015, 03:16 PM
  4. Restrict entry in various cells based on drop down choice in another cell
    By Stretch617 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2013, 04:09 PM
  5. Restrict data entry based on another cell
    By northbank in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-13-2012, 11:33 AM
  6. Replies: 4
    Last Post: 02-12-2012, 11:41 AM
  7. [SOLVED] HOW TO RESTRICT DATA ENTRY FROM A CHOICE OF SEVERAL LIST?
    By Roomee in forum Excel General
    Replies: 1
    Last Post: 06-18-2005, 08:05 AM

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