Excel intermediate dropdown data-validation dynamic-list

How to Create a Dynamic Dropdown List in Excel?

Dynamic Dropdown List is a Excel function that creates a dynamic range that adjusts as new items are added to the source list.. Formula Genius generates and validates this formula automatically from a plain-English prompt.

Struggling with static dropdown lists? Discover how to make your dropdowns dynamic so they update automatically with your data.

The Formula

Prompt

"Create a data validation dropdown list that automatically updates when new items are added to the source list"

Excel
=OFFSET($A$1, 0, 0, COUNTA($A:$A), 1)

This formula creates a dynamic range that adjusts as new items are added to the source list.

Step-by-Step Breakdown

  1. Use OFFSET to define the starting point of the range.
  2. Set the height of the range using COUNTA to count non-empty cells.
  3. Ensure the range expands as new items are added.
  4. Apply this range in Data Validation to create the dropdown.

Edge Cases & Warnings

  • The source list contains blank cells, affecting the count.
  • Items in the source list are deleted, causing the dropdown to shrink.
  • The dropdown is not refreshing if the source list is on a different sheet.
  • Data Validation settings may not update automatically in older Excel versions.

Examples

Prompt

"Source list in A1:A5 with values: Apple, Banana, Cherry"

Excel
Dropdown shows: Apple, Banana, Cherry
Prompt

"Source list in A1:A10 with values: Apple, Banana, Cherry, (A4 is blank), Date"

Excel
Dropdown shows: Apple, Banana, Cherry, Date

Frequently Asked Questions

How do I set up data validation for the dropdown?

Select the cell, go to Data > Data Validation, and use the dynamic range formula.

Can I use this with multiple columns?

Yes, but you will need to adjust the OFFSET formula accordingly.

What if my source list is on another sheet?

You can reference it directly in the OFFSET formula, but ensure the sheet name is included.

Can't find what you need?

Describe any formula in plain English and Formula Genius will generate, explain, and validate it — instantly.