+ Reply to Thread
Results 1 to 12 of 12

I Dont want Blank cell in Drop Down cell.

  1. #1
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Thumbs up I Dont want Blank cell in Drop Down cell.

    Hello all,

    Hope you all will be fine..I m back again cuz some thing stuck me and needs your help to solve it..

    As per attached example file..i have a dropdown cell in sheet 2 cell D2, which gets a name from a list as i fix in validation"Name".

    I have problem when i click drop down, i list appears but it consist of blank cells also and not uniform in order from a to z..

    What i want is if i click D2, a list should come duly uniromed and without blank cells or rows.. Can it possible? cuz my mind is not working here..

    Thanks in advance for any help.
    Attached Files Attached Files
    Last edited by tariqnaz2005; 03-14-2010 at 07:02 AM. Reason: I can not see any reply in this post..but i have 6 replies

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: I Dont want Blank cell in Drop Down cell.

    Hi tariqnaz,

    the data validation list will show the range exactly as it is. If your range contains blanks, then the data validation list will contain blanks.

    If you don't want to see blanks in your data validation list, then you'll have to create a named range without blanks.

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: I Dont want Blank cell in Drop Down cell.

    Hi
    Take a look at this workook. Is this what you want?
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: I Dont want Blank cell in Drop Down cell.

    any help pls?

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: I Dont want Blank cell in Drop Down cell.

    Please respond to the posters that have kindly responded to you already!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  6. #6
    Registered User
    Join Date
    03-16-2009
    Location
    London, UK
    MS-Off Ver
    Excel 16.78 on Mac - Office 365.
    Posts
    80

    Re: I Dont want Blank cell in Drop Down cell.

    Hi tariqnaz2005 - as teylin said, the range you define for the dropdown must not contain blanks. Had a look at your workbook but it seems to work ok... what exactly is not working?

  7. #7
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: I Dont want Blank cell in Drop Down cell.

    The solution Contaminated supplied seems to be working. Check out Sheet1 Columns K and L.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  8. #8
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: I Dont want Blank cell in Drop Down cell.

    Thanks Contaminated...

    Your idea is totally working ..its great..thanks..but can i have this drop down box in asending order (uniform)?

    I want another thing might be you can do it..what i want if instead of drop down in cell d2 of sheet2 of your attachment, i want a search type thing..so that if i type there ap part of name and it return me full name of all maching name in sheet1 column C..so that i can select name and put there..it will same my time..cuz in dorop down it is not coming in order and take time to search..cuz my list has more than 1000.

    can you do it..

    thanks..

  9. #9
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,375

    Re: I Dont want Blank cell in Drop Down cell.

    tariqnaz, I realize that English is probably not your first language, but could you please put some more care into constructing your posts? Please refrain from chat room jargon and use some punctuation to separate sentences. This will make it easier for people here to understand your posts.

    Please understand that for a lot of other members here English is also not their first language, so please try to make your posts as understandable as you can.

    Also, please include your country in your profile. This will make it easier for people to overcome the language barrier.

    thanks
    Last edited by teylyn; 03-10-2010 at 08:02 AM.

  10. #10
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: I Dont want Blank cell in Drop Down cell.

    hi, Contaminated ,

    Thanks for help and great idea..its work properly..wow..wounderfull..but still i want this drop down in order like

    A
    B
    C
    D

    asending ..

    Can it possible?

  11. #11
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: I Dont want Blank cell in Drop Down cell.

    Using contaminated's prior file change as follows:

    Sheet1

    K2: =IF($C2="","",1+COUNTIF($C$2:$C$29,"<"&$C2))
    copied down to K29

    L2: =INDEX($C$2:$C$29,MATCH(ROWS(L$2:L2),$K$2:$K$29,0))
    copied down to L29

    Define the RefersTo of your Named Range with:

    =Sheet1!$L$2:INDEX(Sheet1!$L:$L,MATCH("*",Sheet1!$L:$L,-1))

    (in all of the above modify delimiter as nec. - ie from comma to semi colon pending your locale)

  12. #12
    Forum Contributor
    Join Date
    07-21-2009
    Location
    Kuwait
    MS-Off Ver
    Excel 2019
    Posts
    292

    Re: I Dont want Blank cell in Drop Down cell.

    Wounderfull...Thanks...I never believe it that this could happend..

    Thanks..Donkeyote..you always performed nice...thanks all for help..thanks contaminated,,

    God Bless you..

+ 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