Dynamic Drop-Down Lists Based on Another Cell's Value

emmanuelkatto

Spammer
Joined
Aug 13, 2024
Messages
1
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello Community Members,

My name is Emmanuel Katto, and I’m reaching out to seek your expertise regarding a challenge I’m facing with Excel drop-down lists.
I have a workbook where I am trying to create dynamic drop-down lists based on the selection of another cell. For example:
  1. Cell A1: Contains a category (e.g., "Fruits," "Vegetables").
  2. Cell B1: Should provide a drop-down list of items that correspond to the selected category in A1.
  • If "Fruits" is selected in A1, I want Cell B1 to list items like "Apple," "Banana," and "Orange."
  • If "Vegetables" is selected, I want it to show "Carrot," "Broccoli," and "Spinach."
I’ve done some research and attempted to use the INDIRECT function along with named ranges. Here’s what I did:
  1. Created a named range called "Fruits" that refers to the cells containing the fruit names.
  2. Created another named range called "Vegetables."
  3. In Cell B1, I set up Data Validation using a formula: =INDIRECT(A1)
Is the method I'm using correct to create dynamic drop-downs? If not, what adjustments should I make?

Please let me know.

Thanks in advance!
Emmanuel Katto
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Welcome to the forum. :)

Yes it is correct. Are you having problems with it?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,159
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top