Set Up Dependent Dropdowns In MS Excel Using OFFSET And SUMPRODUCT
In this article we will demonstrate an easy way to set up a dropdown that is dependent on another dropdown. For example, we select a country in cell F1 and this changes the list of cities available for selection in cell F2, as shown in the picture.
Let us assume that we have already set up the dropdown for the country with the reference to range A1:C1, then we can set up the list of cities using the formula below, where:
=OFFSET(A2;0;MATCH(F1;A1:C1;0)-1;SUMPRODUCT((F1=A1:C1)*(A2:C3<>"")))
The picture bellow demonstrates the dependent dropdown of cities when Ukraine is selected in the cell for the country, where:
The demonstrated approach of setting up the dependent drop-down lists is the most plain and simple of all possible.