Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

how to get rid of blank area in drop down of a dependent list

Posted on 2016-09-22
11
60 Views
Last Modified: 2016-09-23
dear experts,

I column C of the attached file, I have a dropdown list. There is some extra space in the drop down which I want to get rid of. How do I do this?
ee-blank-area-dropdown.xlsx
0
Comment
Question by:Leonardo M
  • 7
  • 3
11 Comments
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810628
The blank area represents the blank cells at the end of your validation lists. To get rid of the blanks in the dropdown, you need to make the validation list area smaller or better still would be to make it dynamic, ie the range changes based on its contents.

Is that something you want to consider?
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810645
Would you consider changing the ranges for AA, BB etc to columns rather than rows?
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41810647
Select the range I12:O15, press Ctrl+G --> Special --> Choose Constant --> OK --> Formulas Tab --> Under Defined Names --> Choose Create from selection --> Choose Left Column --> Click OK to replace the existing named ranges.
1
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810656
@Neeraj - as a one off change that is a good method that I have not seen before. Being dynamic though would mean the definition would change as the contents change.
0
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41810672
@Rob
Thanks. As far as I know the dynamic named ranges won't work with Indirect function used in Data Validation.
Have you tried creating dynamic named ranges and referring them within Indirect function in the data validation? I remember I tried it once and it didn't work for me.
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810681
Yep, just found that for myself. I am off to try something else then!!!
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810714
Based on the current layout, change the formula in the data validation for C2 to:

=OFFSET(I1,MATCH($B$2,I:I,0)-1,1,1,COUNTA(INDIRECT(MATCH($B$2,I:I,0)&":"&MATCH($B$2,I:I,0)))-1)

So rather than creating several dynamic ranges to use within the INDIRECT function, create one dynamic range within the DV.

No doubt the current layout is not completely representative of the true working document so it will no doubt need amending.

Thanks
Rob
2
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41810720
Good one Rob! :)
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41810735
Thanks Neeraj. Only good in this particular scenario which I think is unrealistic. For starters this relies on the remainder of the rows holding the lookup data being blank.
0
 
LVL 5

Accepted Solution

by:
Yamaafg earned 500 total points
ID: 41810875
Follow below steps:
 
1.      Select I12 to O15
2.      Press Ctrl + G
3.      Select Special
4.      Select Blank
5.      Select OK
6.      Right click on one of the black cells
7.      Select delete
8.      Select Shift cells left and click ok
0
 
LVL 33

Expert Comment

by:Rob Henson
ID: 41812066
Not even assisted points for Neeraj and myself???
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question