+ Reply to Thread
Results 1 to 8 of 8

Display Non Zero Values in a List Drop Down

  1. #1
    Registered User
    Join Date
    03-09-2012
    Location
    Tamilnadu
    MS-Off Ver
    Excel 2003
    Posts
    4

    Display Non Zero Values in a List Drop Down

    I have a Name Range (e.g. Company) which comprises of cells A1:A100, however values have been entered until A1:A40, the rest have been kept empty intentionally for future use. I am using this Name list (Company) in cell B1 for use, however the drop down is a big one and also displays the empty ones. Is there a way to display only the ones with value in B1 drop down.

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Display Non Zero Values in a List Drop Down

    if you are using a named range for your data validation set your named range to refer to the following:

    =INDIRECT("Sheet1!A3:A"&COUNTA(Sheet1!A:A))
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-09-2012
    Location
    Tamilnadu
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Display Non Zero Values in a List Drop Down

    Hi DGagnon,

    Thanks for the response.

    Am sorry i am unable to get it, am new to excel. Have attached the excel sheet for demonstration of the question, would be happy if you can assist. in the attachment i have named A1:A30 as "Company", however have inserted values until A1:A6.

    I am now utilizing this named range in cell D2 via Data Validation. When i click on the drop down, i get to see blanks, is there a way to show only the 6 values.

    Thanks,
    Sribatsha
    Attached Files Attached Files

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

    Re: Display Non Zero Values in a List Drop Down

    DGagnon suggested that you change your refers to range for the Company named range to:

    =INDIRECT("Sheet1!A3:A"&COUNTA(Sheet1!A:A))

    instead of just Sheet1$A$1:$A$30
    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.

  5. #5
    Registered User
    Join Date
    03-09-2012
    Location
    Tamilnadu
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Display Non Zero Values in a List Drop Down

    Hi NBVC,

    It works!!!
    Thanks a lot for the help, was confused on A3 mentioned in the indirect function. Changed it to A1 and it made me happy...

    Thanks DGagnon for the help.

  6. #6
    Registered User
    Join Date
    03-09-2012
    Location
    Tamilnadu
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Display Non Zero Values in a List Drop Down

    Hi NBVC,

    It works!!!
    Thanks a lot for the help, was confused on A3 mentioned in the indirect function. Changed it to A1 and it made me happy...

    Thanks DGagnon for the help.

  7. #7
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Display Non Zero Values in a List Drop Down

    sorry for the confusion, when i recreated the data i must have acidently started at A3 instead of A1. glad it all worked out for you.

  8. #8
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Display Non Zero Values in a List Drop Down

    If you are satisfied with the responses then please mark the thread as Solved (instructions in the forum rules and FAQs).
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

+ 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