+ Reply to Thread
Results 1 to 2 of 2

Blank cells - Data validation

  1. #1
    Registered User
    Join Date
    05-11-2010
    Location
    South africa, Johannesburg
    MS-Off Ver
    Excel 2010
    Posts
    2

    Blank cells - Data validation

    Hi There,

    I have a list of names in cells A1 to A10 (on sheet 1), I have put a data validation list in cell B1(on sheet2) and the selected area is A1 to A20, because names are going to be added to the list going forward.

    How do i get rid of the blank cells in the drop down box? I have selected the "ignore blank cells" check box, but the blank cells still appear.

    Please can someone explain to me how to do this? Thanks

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Blank cells - Data validation

    I presume you used a named range for Sheet1!A1:A20 and are using that name in your data validation on Sheet 2.

    You need to change the Refers To: to a dynamic range formula that expands and contracts for you. Change it to:

    =$A$1:INDEX($A:$A,COUNTA($A:$A),1)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

+ 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