Dependent drop-down lists should not need complicated INDIRECT formulas or clever uses of the CELL function. There is a simpler approach: prepare a few sorted dynamic ranges, then use TAKE, DROP, and XMATCH to return the relevant part of those ranges.
The result is a set of Excel data validation lists where each choice controls the options available in the next list. We will build three levels: Shoe, Toe, and Color.
What You'll Learn
- Sort the source consistently so matching records form continuous blocks across aligned dynamic ranges.
- Use XMATCH with TAKE and DROP to return a range for a dependent validation list.
- Combine previous selections to make a third drop-down depend on two earlier choices.
- Keep source references absolute and selection references relative when extending validation to more rows.
The scenario: show only valid combinations
Our source data contains different styles of shoe, the toe types available for each shoe, and the colors available for each shoe and toe combination.
Not every toe type is available for every shoe. Likewise, a color might be available for one shoe and toe combination but not another. Therefore, we want:
- Shoe: a drop-down list of shoe styles.
- Toe: a drop-down list based on the selected shoe.
- Color: a drop-down list based on both the selected shoe and toe.
We will keep the source data, supporting formulas, and selection cells on one worksheet so the relationships are easy to follow. In a working file, you may prefer to keep the source data and input area on separate sheets.
To follow the same layout, use an Excel table named data with the columns Shoe, Toe, and Color, in that order. Our supporting ranges will start in F6:H6, and the first row of selection cells will be K6:M6.
This method uses CHOOSECOLS, SORT, TAKE, DROP, and XMATCH, so these functions need to be available in your Excel installation.
1. Create separate sorted dynamic ranges
The first job is to create a separate dynamic range for each source column.
If the source table is already in the required order, table column references can provide those ranges. Our data is in a random order, so we need to sort it first.
The important point is to sort the complete data set consistently. We want the rows ordered by shoe, then by toe within each shoe, then by color within each shoe and toe combination. This keeps matching records together and preserves the relationship between columns.
Return the shoe column in F6
Enter this formula in F6:
=CHOOSECOLS(SORT(data,{1,2,3}),1)
The SORT function sorts the table using columns 1, 2, and 3. CHOOSECOLS then returns the first column from that sorted result.
Return the toe column in G6
Copy the formula to G6 and change the final argument to 2:
=CHOOSECOLS(SORT(data,{1,2,3}),2)
This returns the toe values in the same row order as the sorted shoes.
Return the color column in H6
In H6, use the same formula with 3 as the final argument:
=CHOOSECOLS(SORT(data,{1,2,3}),3)
We now have three aligned spill ranges:
F6#contains the sorted shoes.G6#contains the corresponding toes.H6#contains the corresponding colors.
The hash symbol means the entire spill range starting at that cell, rather than just the starting cell itself.
2. Create the first drop-down list
The shoe list is straightforward because it does not depend on any previous selection.
- Select K6.
- Go to Data > Data Validation.
- Set Allow to List.
- Enter
=$F$6#in the Source box. - Click OK.
The dollar signs keep the source reference fixed. The hash symbol ensures that the source uses the whole dynamic range.
Select Derby in K6 so we have a shoe to use while building the dependent toe list.
3. Understand why TAKE and DROP work here
A data validation list can use a range, or a formula that returns a range.
This is the useful part of TAKE and DROP: when we apply them to a range, they can return the corresponding range reference, not just its values. That means we can use them directly in the data validation Source box.
Our approach is to isolate one continuous block of rows:
- Find the last occurrence of the selected shoe.
- Use TAKE to keep everything through that row.
- Find the first occurrence of the selected shoe.
- Use DROP to remove the rows before it.
Because the data is sorted, all the records for the selected shoe sit together. We only need to identify where that block starts and ends.
4. Build the dependent toe drop-down list
It is easier to build and check the formula in a worksheet cell before putting it into data validation. We will temporarily use L6.
Take the rows through the last matching shoe
Start with:
=TAKE($G$6#,XMATCH(K6,$F$6#,0,-1))
Here is what each part does:
$G$6#is the toe range we want to return.K6contains the selected shoe.$F$6#is the shoe range we search.0tells XMATCH to find an exact match.-1tells XMATCH to search from last to first.
XMATCH finds the position of the final Derby record. TAKE returns the toe rows from the beginning of G6# through that position.
That gets us the correct ending point, but the result still includes rows belonging to shoes before Derby.
Drop the rows before the first matching shoe
Wrap the formula in DROP:
=DROP(TAKE($G$6#,XMATCH(K6,$F$6#,0,-1)),XMATCH(K6,$F$6#)-1)
The second XMATCH finds the first occurrence of the selected shoe. We subtract 1 because we want to remove the rows before the first match, not the first matching row itself.
For example, Derby starts in the third row of the sorted shoe range. We therefore remove the first two rows. What remains is the block of toes belonging to Derby.
Use the formula in data validation
- Copy the complete formula from the formula bar.
- Clear the temporary formula from L6 so the cell can become an input cell.
- With L6 selected, open Data > Data Validation.
- Set Allow to List.
- Paste the formula into the Source box and click OK.
Open the toe drop-down. Its options now relate to Derby. Change the shoe selection to Chelsea boot, and the toe options change to those associated with Chelsea boots.
That is our first dependent drop-down list complete.
5. Make the color list depend on both shoe and toe
The final list needs two conditions. Looking up the toe alone is not enough because the available colors also depend on the shoe.
We can reuse the same TAKE and DROP structure, with two changes:
- Return the color range,
$H$6#, instead of the toe range. - Match a combined shoe and toe value in both XMATCH functions.
Combine the two selections into a lookup key
The selected shoe is in K6, and the selected toe is in L6. Join them with a hyphen:
K6&"-"&L6
Build the lookup array in exactly the same way:
$F$6#&"-"&$G$6#
Now each lookup compares a shoe and toe combination rather than a shoe alone. Apply this change to both XMATCH functions, so the beginning and ending positions use the same criteria.
Build the complete color formula
Temporarily enter this in M6 to check the result:
=DROP(TAKE($H$6#,XMATCH(K6&"-"&L6,$F$6#&"-"&$G$6#,0,-1)),XMATCH(K6&"-"&L6,$F$6#&"-"&$G$6#)-1)
The logic has not changed. TAKE keeps the color rows through the final matching shoe and toe combination. DROP removes the rows before the first matching combination.
Once the result is correct:
- Copy the complete formula.
- Clear the temporary formula from M6.
- Open Data > Data Validation for M6.
- Choose List and paste the formula into Source.
- Click OK.
The color drop-down now depends on both previous selections.
6. Apply the drop-down lists to more rows
With K6:M6 set up, copy the cells down through the rest of the input range.
The supporting ranges use absolute references such as $F$6#, so they stay fixed. The selection references, K6 and L6, are relative, so they adjust to the new row.
This lets each input row use its own shoe and toe selections while sharing the same supporting data.
To test the setup, select Oxford in a shoe cell, choose one of its available toe types, and open the color list. In the example data, one Oxford and toe combination has only a single color. Choosing another toe type produces two possible colors.
A simple pattern for multi-level dependent lists
The key is not a complicated data validation rule. It is a consistently sorted source and a formula that returns the right section of a range.
SORT and CHOOSECOLS prepare the data. XMATCH finds the boundaries. TAKE and DROP isolate the relevant options. For the next dependency level, combine the previous selections and apply the same pattern.
You can get the example workbook by signing up for the free Insiders program. Look for file reference 0234 Dependent drop-down lists.zip.


