+ Reply to Thread
Results 1 to 11 of 11

Data Validation List with only non-blank cells

  1. #1
    Registered User
    Join Date
    11-04-2008
    Location
    FL
    Posts
    46

    Data Validation List with only non-blank cells

    I have a list in one worksheet which comes from "=SALESMEN!$D:$D" but the list is extremely long with blank values. How can I make the list only show values from column D which are non-blank? Thanks in advance.

    Edit: Currently the list goes up to 30, however I want to use all of Column D from the SALESMEN worksheet, that way if I add to it, the names will automatically be added to the list in the other sheet. Thanks again
    Last edited by mv835; 08-21-2009 at 11:00 AM. Reason: Additional Information

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Data Validation List with only non-blank cells

    Use a dynamic named range
    http://www.contextures.com/xlNames01.html#Dynamic
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    11-04-2008
    Location
    FL
    Posts
    46

    Re: Data Validation List with only non-blank cells

    Quote Originally Posted by Andy Pope View Post
    I've tried that. I went down and selected D1 through D100, and named it SALESMEN1. Then I put this in the source for the list
    Please Login or Register  to view this content.
    But I'm still getting all of the blanks at the end.

    ---

    Also did this: Used a dynamic named range for SALESMEN2 which refers to =OFFSET(SALESMEN!$D$1,0,0,COUNTA(SALESMEN!$D:$D),1)
    Then made the source of the list SALESMEN2, but still getting the same result with all the blanks.
    Last edited by mv835; 08-21-2009 at 11:22 AM. Reason: Additional Info

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

    Re: Data Validation List with only non-blank cells

    Are you using the defined name SALESMAN1 in your formula to define the name SALESMAN1?
    Define Saleman1 as
    Please Login or Register  to view this content.
    replacing the 500 with whereever you expect to max out. Does that work for you?
    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

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Data Validation List with only non-blank cells

    Are the cells truly empty

    This works for me
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    11-04-2008
    Location
    FL
    Posts
    46

    Re: Data Validation List with only non-blank cells

    It's still not working. Attached is the file I'm using...

    On the LEADS sheet, the drop-down list is for the salesman column.
    Attached Files Attached Files
    Last edited by mv835; 08-21-2009 at 12:08 PM.

  7. #7
    Registered User
    Join Date
    11-04-2008
    Location
    FL
    Posts
    46

    Re: Data Validation List with only non-blank cells

    I just realized why it's not working. On the Salesman sheet, all down Column D are formulas of =A1&" "&B1 to combine the first and last name -- so it appears blank, but really isn't. Is it still possible to do what I'm looking for? Thanks

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

    Re: Data Validation List with only non-blank cells

    Try this
    Please Login or Register  to view this content.
    Does that work for you?

  9. #9
    Registered User
    Join Date
    11-04-2008
    Location
    FL
    Posts
    46

    Re: Data Validation List with only non-blank cells

    Quote Originally Posted by ChemistB View Post
    Try this
    Please Login or Register  to view this content.
    Does that work for you?
    Works perfect! Thanks!

  10. #10
    Registered User
    Join Date
    12-19-2009
    Location
    Tempe, Arizona
    MS-Off Ver
    Excel 2001
    Posts
    1

    Re: Data Validation List with only non-blank cells

    It looks like your issue was resolved, so I hope you don't mind if I hyjack your thread since my issue is similar to yours.

    I am using the equation mentioned, and I also have a long list of "blank" cells (they actually have equations in them that will fill in the cell when applicable). My new dropdown validation list recognizes the 2 cells that are not blank, however it shows 2 blank spots, instead of two actual items from my list. Did I make a mistake somewhere?
    Last edited by sabbott13; 12-20-2009 at 02:27 AM.

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

    Re: Data Validation List with only non-blank cells

    Hi sabbott13,

    welcome to the forum. However,

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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