+ Reply to Thread
Results 1 to 6 of 6

Data Validation & Named Range

Hybrid View

  1. #1
    Registered User
    Join Date
    03-08-2008
    Posts
    48

    Data Validation & Named Range

    I have the following data validation set up on my department names list. This works to block any blank or duplicate entries.

    =AND(COUNTIF($A$2:$A$100,A3)=1,COUNTA($A$2:$A2)=ROW()-2)

    I also have a dynamic named range on the same list:

    =OFFSET('Validation Named Range'!$A$2,0,0,MATCH("*",'Validation Named Range'!$A:$A,-1),1)

    When I access my named range via a combo box it allows me to select a blank cell (Which I don't want). I want it to only allow for those names in my name range.

    Is this possible?

  2. #2
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    You'll find an example of validation lists on my site.

    Erik
    Just keep it simple !


    http://www.excelguide.eu
    In English as well as in Dutch

  3. #3
    Registered User
    Join Date
    03-08-2008
    Posts
    48
    Thanks WinteE

    I checked our your site and it had a lot of great information. However I wasn't able to find a solution to my problem.

    How can I stop the last blank entry in a list box while using a Dynamic Range?

  4. #4
    Forum Contributor WinteE's Avatar
    Join Date
    04-07-2007
    Location
    Netherlands
    Posts
    544
    Please post a sample of your problem (file) ?

  5. #5
    Forum Expert
    Join Date
    01-12-2007
    Location
    New Jersey
    Posts
    2,127
    Dylan:

    If your concern is the LAST entry in the data validation drop down being a blank, just modify your dynamic range formula as such:

    =OFFSET('Validation Named Range'!$A$2,0,0,MATCH("*",'Validation Named Range'!$A:$A,-1)-1,1)

    Report back if that works.

  6. #6
    Registered User
    Join Date
    03-08-2008
    Posts
    48

    Smile

    Works great BigBas. Thanks!

+ 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