Office Settings & Configuration

Create a Dependent Drop-Down List in Excel Without Nested IFS

Muhammad TalhaMuhammad Talha Dec 2, 2026 868 views

Question details

Create a steel-size drop-down whose options depend on the selected steel type, without using nested IFS statements.

Create a Dependent Drop-Down List in Excel Without Nested IFS
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet needs a different list of sizes for each steel type.
Observed behavior
Selecting a steel type should make the size drop-down show only the sizes associated with that type.
Before you start

List each steel type and its available sizes in separate worksheet ranges. Make sure each type label can be converted to a valid range name by replacing spaces with underscores.

Solution 1Recommended

Use Named Ranges and INDIRECT for the Dependent List

Use this method to maintain each size list separately and select it with one data validation formula.

For example, a steel type labeled Hot Rolled must have a corresponding size range named Hot_Rolled. Each label must map to an existing valid range name; the formula below replaces spaces but does not remove other characters.

1
Create the source lists

On a worksheet, enter steel types such as Hot Rolled and Cold Rolled in D2:D3. Enter the corresponding size lists in separate ranges, such as F2:F4 and G2:G4.

2
Name each size range

Select F2:F4, type Hot_Rolled in the Name Box to the left of the formula bar, and press Enter. Select G2:G4 and name it Cold_Rolled. Include only the size cells, not their headers.

3
Add the steel-type drop-down

Select A2, open Data > Data Validation, and choose List under Allow. Enter =$D$2:$D$3 as the Source, then select OK.

4
Add the dependent size drop-down

Select B2, open Data > Data Validation, and choose List under Allow. Enter =INDIRECT(SUBSTITUTE($A$2," ","_")) as the Source, then select OK.

5
Test both selections

Choose a steel type in A2, then open the drop-down in B2 and check that it shows the matching sizes.

Use Named Ranges and INDIRECT for the Dependent List
Using additional rows: For a dependent list copied down column B, use $A2 instead of $A$2 in the formula so each row refers to its own steel-type cell. If you change a steel type after choosing a size, clear and reselect the size because the old value may remain.
WPS Spreadsheet

Build Dependent Steel-Size Lists in WPS Spreadsheet

Use named ranges and a data validation formula in WPS Spreadsheet to display sizes for the selected steel type.

  1. 1. Enter the lists: Open WPS Spreadsheet and enter the steel types in D2:D3 and their size lists in separate ranges, such as F2:F4 and G2:G4.
  2. 2. Name the size ranges: Select each size range and use the Name Box beside the formula bar to name it after its steel type, replacing spaces with underscores, such as Hot_Rolled.
  3. 3. Create the first drop-down: Select A2 and open Data > Data Validation, which may be labeled Validity. Choose List and set the source to =$D$2:$D$3.
  4. 4. Create and test the dependent list: Select B2, open Data > Data Validation, choose List, and enter =INDIRECT(SUBSTITUTE($A$2," ","_")) as the source. Choose a type in A2 and open B2 to check its sizes.
Maintain a separate size list for each steel typeUse one INDIRECT formula instead of nested IFS statementsWork with Microsoft Excel XLSX and XLS filesUse a familiar spreadsheet interface
microsoft office alternative - wps office

Frequently Asked Questions

Why is my dependent drop-down empty or showing an error?

Check the selection in A2 and the corresponding name in the Name Box or Formulas > Name Manager. For example, Hot Rolled must map to Hot_Rolled. The formula replaces spaces with underscores but does not handle other invalid characters.

How do I add another steel type and size list?

Add the type to the source list, enter its sizes in a separate range, and name that range to match the type with underscores instead of spaces. Expand the source range in Data > Data Validation if the new type is outside D2:D3.

How can I use the dependent drop-down on multiple rows?

Set the B2 validation source to =INDIRECT(SUBSTITUTE($A2," ","_")), then copy B2 down column B. The row reference will change so each size list uses the steel type in the same row.

Does changing the steel type automatically clear the selected size?

No. A previously selected size may remain in the dependent cell. Clear that cell and choose a size from its updated drop-down after changing the steel type.