Easy Multi-Level Drop-Down Lists in Excel

Oct 31, 2024 • 6 min read

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.

Excel worksheet with source data and three sorted columns labeled Shoe, Toe, and Color
All three supporting ranges use the same sort order, keeping each shoe, toe, and color combination aligned.

2. Create the first drop-down list

The shoe list is straightforward because it does not depend on any previous selection.

  1. Select K6.
  2. Go to Data > Data Validation.
  3. Set Allow to List.
  4. Enter =$F$6# in the Source box.
  5. 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:

  1. Find the last occurrence of the selected shoe.
  2. Use TAKE to keep everything through that row.
  3. Find the first occurrence of the selected shoe.
  4. 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.
  • K6 contains the selected shoe.
  • $F$6# is the shoe range we search.
  • 0 tells XMATCH to find an exact match.
  • -1 tells 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

  1. Copy the complete formula from the formula bar.
  2. Clear the temporary formula from L6 so the cell can become an input cell.
  3. With L6 selected, open Data > Data Validation.
  4. Set Allow to List.
  5. 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:

  1. Copy the complete formula.
  2. Clear the temporary formula from M6.
  3. Open Data > Data Validation for M6.
  4. Choose List and paste the formula into Source.
  5. 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.

Excel worksheet with a color drop-down open beside shoe and toe selections
The final list changes with the selected shoe and toe combination.

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.

Share

Excel Off The Grid

I help you reduce repetitive Excel work with practical guides to formulas, Power Query, reporting, and automation.

© 2026 Excel Off The Grid
Powered by Convella