+ Reply to Thread
Results 1 to 6 of 6

remove blanks from data validation list

  1. #1
    Registered User
    Join Date
    10-31-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    remove blanks from data validation list

    Hey Everyone,

    I was wondering if you would be able to help me be able to remove blanks from a data validation lst.

    the list is one enough to be able to enter additional names based on how many names the user enters so the list length is alwas changing.

    is their anyway to remove blancks from the list?

    Cheers

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: remove blanks from data validation list

    You need to use a dynamic named range

    MyRange =Sheet2!$A$1:INDEX(Sheet2!$A:$A,MATCH(REPT("z",255),Sheet2!$A:$A))

    In this case, my list is in Sheet2 starting in A1. This will look down to the last name and stop.

    In the data validation >> List >> MyRange
    HTH
    Regards, Jeff

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

    Re: remove blanks from data validation list

    I believe a Dynamic Range Name is what you need. It automatically expands/contracts to accommodate the data.

    Insert.Name.Define
    Names in Workbook: LU_MyList
    Refers to: =OFFSET(Sheet1!$B$1,0,0,COUNTIF(Sheet1!$B:$B,"?*"),1)
    (Expands/Contracts to include only non-blank ("") cells.

    See this site for detailed instructions:
    http://www.contextures.com/xlNames01.html#Dynamic

    Does that help?
    Last edited by Ron Coderre; 04-28-2012 at 08:15 AM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  4. #4
    Registered User
    Join Date
    10-31-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    45

    Re: remove blanks from data validation list

    HEY THANKS FOR the info...it worked perfectly except for some reason i am still getting a blank cell as an option?

    any help would be greatly appreciated thanks

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,318

    Re: remove blanks from data validation list

    Does this example help?
    Attached Files Attached Files

  6. #6
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: remove blanks from data validation list

    is this what you mean?
    Attached Files Attached Files
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

+ 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