+ Reply to Thread
Results 1 to 5 of 5

Data Validation List That Ignores The Blank Cells

  1. #1
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Question Data Validation List That Ignores The Blank Cells

    Hey There,

    I'm having a problem with a data validation list. The ammount of entries in this list will fluctuate week over week, so my range from the list needs to be O2 to O300. Those cells are populated by another formula.

    I go to Data - Validation, select List, input the cell range and make sure the "Ignore Blanks" check box is marked, but it is still adding all of the blanks into the drop down box it creates.

    Does anyone know a way to get it to filter out those blanks?

    Thanx a million in advance!!


    Nevi

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Data Validation List That Ignores The Blank Cells

    I seems like you could really use a Dynamic Named Range (DNR)...
    DNR's automatically expand and contract to accommodate available data

    Try this...assuming your list is on Sheet2:
    O1: MyDV_List
    Then list your DV values under O1.

    From the Excel Main Menu:
    Please Login or Register  to view this content.
    Now...when setting up your Data Validation
    Use these settings...
    Allow: List
    Source: (press [F3]..to see the list of named ranges...and select MyDV_List)

    That's it....As you add items to your list the DNR will include them.

    For more information about DNR's, see Debra Dalgleish's website:
    http://www.contextures.com/xlNames01.html#Dynamic


    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Unhappy

    Hey There,

    Thanx for the reply!! I still can't get it working though. I did a google search using what you gave me and found some more info, but I can't seem to get it pieced together...

    http://www.pcreview.co.uk/forums/thread-3475779.php

    I go to Insert - Name - Define, I am setting the name as List, and in refers to I am entering:

    =OFFSET($K$1,0,0,SUMPRODUCT(--($K$1:$K$1000<>""""),1))

    When I go to Data - Validation, and try to set the drop down list to =List it is giving me the error "The Source currently evaluates to an error. Do you with to continue?" and it doesn;t work.

    Thanx!!


    Nevi

  4. #4
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Unhappy

    Small update; I posted the formula wrong by mistake. The formula that I am defining the Name with is:

    =OFFSET(Detailed!$K$1,0,0,SUMPRODUCT(--(Detailed!$K$1:$K$1000<>"")),1)

    I should also maybe mention that the list is now in column K instead O, just to avoid any confusion.

    Thanx a million again for the help. I really appreciate it!!


    Nevi

  5. #5
    Forum Contributor
    Join Date
    04-06-2006
    Posts
    131

    Red face

    OMG... I am an idiot...

    It is alway the stupid little things that mess us up. I forgot that I didn't spell out "Detailed" as the name of the tab; it's abreviated it Dtld.

    =OFFSET(Dtld!$K$1,0,0,SUMPRODUCT(--(Dtld!$K$1:$K$1000<>"")),1)

    The above worked like a chanrm.

    Thanx!!!!


    Nevi

+ 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