Function Problems

Create Excel Dependent Drop-Down Lists for a Machine Bill of Materials

Jason MillerJason Miller Nov 18, 2026 869 views

Question details

Create dependent machine and motor selections that populate a bill of materials.

Create Excel Dependent Drop-Down Lists for a Machine Bill of Materials
Product
Microsoft Excel
Device & OS
not provided
Scenario
A user wants to configure a machine using drop-down lists and identify the inventory items required for the selected configuration.
Observed behavior
The motor list should change with the machine selection, and the bill of materials should show the matching items and quantities.
Before you start

Prepare a list of machines, a separate motor list for each machine, and a requirements table with Machine, Motor, Item, and Qty columns. Use machine identifiers that are valid Excel range names, such as Model_A, so each identifier can match its motor-list range name.

Solution 1Recommended

Use named ranges and FILTER to build the configuration list

Use this approach when your Excel version supports FILTER and you want matching bill-of-materials rows to appear automatically.

1
Name the machine list

Enter machine identifiers on a source sheet. Select the cells containing the identifiers, click the Name Box to the left of the formula bar, type Machines, and press Enter.

2
Name each motor list

Enter the available motors for each machine in separate ranges. Select each range and use the Name Box to give it the exact name of its machine identifier, such as Model_A.

3
Add the machine drop-down

On your configuration sheet, select cell A2 and choose Data > Data Validation. Set Allow to List, enter =Machines in Source, and click OK.

4
Add the dependent motor drop-down

Select cell B2 and choose Data > Data Validation. Set Allow to List, enter =INDIRECT($A$2) in Source, and click OK. Select a machine in A2 to make its motor list available in B2.

5
Create the requirements table

Enter one row per required item with Machine, Motor, Item, and Qty columns. Select the data, choose Insert > Table, and name the table BOMTable on the Table Design tab. Keep Item and Qty next to each other.

6
Return matching materials

In an empty output cell, enter =FILTER(BOMTable[[Item]:[Qty]],(BOMTable[Machine]=A2)*(BOMTable[Motor]=B2),"No matching items"). Select a machine and motor to display the matching items and quantities.

Use named ranges and FILTER to build the configuration list
Check selections and quantities: If you change the machine, clear B2 and select a motor again; Excel does not automatically remove an old selection. The formula returns required quantities, not quantities adjusted for stock already on hand.
Build a bill of materials in WPS Spreadsheets

Create machine configuration lists in WPS Spreadsheets

Use named ranges and Data Validation for dependent selections, then calculate required quantities from a requirements sheet with SUMIFS.

  1. 1. Prepare the source lists: In WPS Spreadsheets, enter machine identifiers and a separate motor list for each machine. Select the machine cells and use the Name Box beside the formula bar to name the range Machines.
  2. 2. Name the motor ranges: Select each motor list and enter its matching machine identifier, such as Model_A, in the Name Box. Press Enter after naming each range.
  3. 3. Create the drop-down lists: On a configuration sheet, select A2 and choose Data > Data Validation. Set a list source of =Machines. Repeat in B2 with the list source =INDIRECT($A$2).
  4. 4. Enter material requirements: On a sheet named Requirements, put Machine, Motor, Item, and Qty in columns A through D and enter one row per requirement. On the configuration sheet, list each inventory item once, starting in D2.
  5. 5. Calculate the required quantities: In E2, enter =SUMIFS(Requirements!$D:$D,Requirements!$A:$A,$A$2,Requirements!$B:$B,$B$2,Requirements!$C:$C,D2), then fill the formula down. Select a machine and motor in A2 and B2; use Data > Filter to show quantities greater than zero.
Create dependent machine and motor drop-down listsCalculate material requirements with SUMIFSOpen and save Microsoft Excel XLSX workbooksWork in a familiar spreadsheet interface
QA img-9

Frequently Asked Questions

Why is my dependent motor list empty?

Check that the machine selected in A2 exactly matches the name of its motor range. Select the motor cells and inspect the Name Box, then check that B2 uses =INDIRECT($A$2) as its Data Validation list source.

Does changing the machine automatically clear the previous motor?

No. After changing A2, clear B2 and choose a motor from the updated drop-down list.

What if my Excel version does not support FILTER?

List inventory items once on the configuration sheet and use SUMIFS to total requirements for the selected machine, motor, and item. Filter the resulting quantity column to show values greater than zero.

Does the bill of materials account for inventory already in stock?

The formulas shown calculate required quantities only. To estimate purchase quantities, add stock-on-hand data and subtract it from each required quantity, using zero as the minimum.