In Excel for Microsoft 365 on Windows, a conditional list—also called a dependent dropdown—changes its choices based on a selection in another cell. The dependable setup is to create a named range for each group of choices, then use Data Validation with an INDIRECT formula that refers to the selected group.
What a conditional list does
A regular data-validation list always shows the same choices. A conditional list uses one selection to determine what appears in another dropdown. For example, choosing “Fruit” in cell A2 might make the dropdown in B2 show “Apple,” “Pear,” and “Orange,” while choosing “Drinks” shows “Tea,” “Coffee,” and “Water.”
This arrangement is useful in order forms, surveys, inventory sheets, and project trackers. It can make a form easier to fill out and reduce inconsistent entries, such as having people type several spellings of the same category. The dropdown does not, by itself, create a database relationship or guarantee that every existing entry stays valid; it simply controls the choices offered during data entry.
Prepare the source lists
Put each group of choices in its own column or clearly separated range. For a simple example, place category names in E2:E3, and put the two groups of items in separate columns:
- Put Fruit, Apple, Pear, and Orange in A1:A4.
- Put Drinks, Tea, Coffee, and Water in B1:B4.
- Put the category choices Fruit and Drinks in E2:E3.
The category labels must correspond to the names you give the item ranges. Excel defined names cannot contain spaces, so use names such as Fruit and Drinks, or use underscores for multiword names, such as Office_Supplies. If a category label has a space, the formula below converts spaces to underscores. Avoid punctuation or other characters that would make the resulting text differ from the defined name; for the simplest setup, choose category labels that can be converted cleanly.
Create a dropdown for the first choice
Click A2, where the user will choose a category. On the ribbon, select Data > Data Validation. In the Data Validation dialog, choose List under Allow, then enter the source range. With category choices in E2:E3, the source is =$E$2:$E$3. Keep the In-cell dropdown option selected so the arrow appears in the cell, then select OK.
To apply the same category dropdown to more rows, select the target cells first—for example, A2:A100—and create the rule for the whole selection. Check that the source references point to the intended category list. A direct range on the same worksheet is convenient; if the list is on another worksheet, a workbook-level defined name is often easier to maintain than a direct cross-sheet reference in the validation Source box.
Create named ranges for the dependent choices
Define a name for each group of items. Select A2:A4, choose Formulas > Define Name, enter Fruit as the name, and confirm the workbook scope and reference. Then select B2:B4 and define the name Drinks. The names should match the category labels after spaces are replaced with underscores.
You can also create a name by selecting the cells and typing the desired name in the Name Box, to the left of the formula bar, then pressing Enter. Whichever method you use, check the Name Manager under Formulas > Name Manager if a name is misspelled or points to the wrong cells. Do not include the category heading in the named range if you do not want that heading to appear as a dropdown choice.
Connect the second dropdown
Click B2, choose Data > Data Validation, set Allow to List, and enter this source. It assumes the category dropdown is in A2 and the defined names use underscores in place of spaces:
=INDIRECT(SUBSTITUTE($A2," ","_"))
SUBSTITUTE changes spaces in the selected category to underscores. INDIRECT interprets the resulting text as a defined name and uses that named range as the list source. In this example, selecting Fruit points to the Fruit range; selecting a category such as Office Supplies points to a range named Office_Supplies.
The dollar sign fixes the category column but leaves the row number relative. That matters when you apply the validation to B2:B100: each row should refer to its category in column A on the same row. Select B2:B100 before creating the rule, or copy B2 and use Paste Special > Validation to copy only its validation rule to the other cells. Test more than one row to confirm that each dropdown follows the category beside it.
Use dynamic arrays as an alternative
If your choices are stored in a single table rather than separate named ranges, Microsoft 365 and Excel 2021 or later can build a filtered list with FILTER. This can be useful when categories or items change frequently, although the helper formula needs its own space to spill its results.
For this example, assume categories are in A2:A100, corresponding items are in B2:B100, the selected category is in E2, and H2 is an otherwise empty helper cell. Enter this formula in H2:
=FILTER($B$2:$B$100,$A$2:$A$100=$E$2,"")
The formula returns the items whose category matches E2 and spills them down from H2. Set the dependent dropdown’s Data Validation list source to =H2#, where the # refers to the entire spilled result. If Excel rejects that reference in the Source box, create a workbook-level name in Formulas > Name Manager that refers to the spill range, then use that name as the validation source. The helper results and the selected category must be on the same row or otherwise linked to the right selector.
Do not place other content in the cells where the results need to spill. If there is no matching item, FILTER’s third argument returns a blank result in this example; that may show as an empty choice. A separate helper area for each row is needed for multiple independent forms, because one spill list cannot represent several different category selections at the same time.
Make the list easier to maintain
A small, fixed list can work well with named ranges. For a workbook that will grow, plan how new entries will be included. A named range that refers to a fixed address, such as A2:A4, will not automatically include a new item typed in A5. You can update the name in Name Manager, extend its reference, or organize the source data in Excel tables and use a formula-driven approach where appropriate.
Keep the source data tidy: remove unintended blank cells within a list, avoid duplicate choices unless they are meaningful, and use consistent category spelling. If a defined name is used in several places, changing the name or its range can affect all those dropdowns. It is also sensible to keep source lists on a dedicated worksheet and, if desired, hide that sheet after confirming the validation rules still work.
Under the Data Validation dialog’s Error Alert tab, you can choose whether Excel blocks entries that are not in the list. A Stop alert prevents an invalid value entered directly into the cell, while less restrictive alert styles can warn or inform. This setting does not automatically repair invalid values already present, and pasted data may need separate checking. Validation is a data-entry aid, not a substitute for reviewing imported or pasted records.
Common problems and practical fixes
- The dependent dropdown is empty: Check that the category text, after replacing spaces with underscores, exactly matches a defined name. Also confirm that the name points to cells containing choices and not just a heading.
- The formula is rejected: Check that the rule is set to List, the formula begins with an equals sign, and the reference uses the correct row. For the example beginning in B2, the category reference is $A2, not $A$2.
- Every row shows the same choices: A locked row reference such as $A$2 makes each rule look at A2. Use $A2 when copying the rule down so the row adjusts.
- A category has spaces: Use the SUBSTITUTE version of the formula and name the range with underscores, such as Office_Supplies. The transformed label and defined name must still match exactly.
- Changing the category leaves an old item in the second cell: Excel does not automatically clear a dependent cell when its parent selection changes. The old entry can remain visible even if it is no longer an offered choice. Clear it manually, add a review check, or use automation only if the workbook genuinely needs automatic clearing.
- New source items do not appear: The defined name may point to a fixed range that excludes the new cells. Expand the named range or use a source arrangement that grows with the data.
Excel for Mac and Excel for the web
The basic Data Validation and defined-name approach is available in modern Excel for Mac as well as Windows, though the ribbon layout and dialog appearance can vary. On Mac, use the Data tab to locate Data Validation; the exact placement can depend on the Excel build and ribbon customization. Excel for the web supports dropdown lists, but some advanced editing workflows and dialog options can differ from desktop Excel. If a workbook’s dependent rule is difficult to create or troubleshoot in the browser, open it in the desktop app and verify the named ranges and validation source there.
Keyboard shortcuts also differ by platform and version. The Windows ribbon sequence commonly used to open Data Validation is Alt, A, V, V (press the keys in sequence); ribbon key tips can vary, so follow the displayed key tips if that sequence is unavailable. Excel for Mac does not use the same Windows Alt ribbon sequence. Using the Data tab is the reliable cross-platform route.
Frequently Asked Questions
Can a conditional dropdown have more than two levels?
Yes. You can create another dependent list for each level, with each rule referring to the preceding selection. Each parent label must resolve to the correct named range or helper result, so a three-level setup needs careful naming and testing at every level.
Does a dropdown change automatically when I change its parent cell?
The choices offered by the child dropdown update when you open it, but the value already stored in that cell is not cleared automatically. Review or clear the child cell after changing the parent to avoid keeping a now-inappropriate selection.
Can category names contain spaces?
Yes, if you use a matching convention. In the example formula, SUBSTITUTE converts spaces to underscores, so “Office Supplies” matches a defined name called Office_Supplies. Other characters are not converted by that formula, so choose compatible labels or adapt the naming approach.
Why use named ranges instead of typing the choices into the Source box?
Named ranges keep each group of choices in worksheet cells, which is easier to inspect and update than a comma-separated list inside a validation rule. They also let INDIRECT select a different source range based on the parent cell.
Can I use this with a long or frequently changing list?
Yes, but fixed named ranges require maintenance when the source grows. Consider a table-based source or a FILTER helper formula in a current Excel version, then test how the validation source handles the changing results in your workbook.
Related
- Excel Shortcuts You Need to Know for Faster Workflows
- Copy Excel Formulas to Google Sheets Without Errors
- How to Find a Circular Reference in Excel Step by Step
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- Excel PC Keyboard Shortcuts: Essential Keys and TipsFor Excel for Microsoft 365 on a Windows PC, start with Ctrl+C and Ctrl+V to copy and paste,…
- Outlook Webmail Signature: How to Create OneTo create a signature in Outlook webmail, open Settings, find the signature editor, write and format your signature,…
- Unable to Create a Signature in Outlook? Try These FixesIf you cannot create a signature in Outlook, first check which version you are using: classic Outlook for…
- How to Add a New Item to an Excel Dropdown List Step by StepTo add a choice to an Excel dropdown, update the list that supplies its options, then confirm the…
- How to Change the View in Outlook to Preview EmailsTo preview emails in Outlook without opening each one, turn on the Reading Pane: in classic Outlook for…
- Can You Create Outlook Rules in OWA? Here’s HowYes. You can create and manage Outlook rules in Outlook on the web (OWA) to sort incoming email,…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.