[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Excel -  Data validation from a subset?

Posted on 2016-09-16
4
Medium Priority
?
136 Views
Last Modified: 2016-09-16
Hi all,

I've got a simple sheet here:

screen
On a different sheet, I need this to happen:

In cell A1, If I choose either "Apple" or "Orange", I need a data validation type drop-down in cell B1 that only shows the type of that fruit.

So for example, if i choose "Apple" in cell A1, I can only choose in cell B1: "Granny Smith", "Red Delicious", or "Fuji".

Thanks in advance.
0
Comment
Question by:Go-Bruins
  • 3
4 Comments
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 41802292
You're looking for a conditional drop list that uses data validation.  To make it work, you'll need to create dynamic range names that will select the dependent data.

This EE question has both a link to an online article and an example solution that I provided that demonstrates it.
https://www.experts-exchange.com/questions/28498440/Picking-from-a-conditional-drop-down-list.html

-Glenn
0
 
LVL 27

Accepted Solution

by:
Glenn Ray earned 2000 total points
ID: 41802306
I've made a version of my example workbook from the previous EE question with your data as a guide.  

It does require a separate table for each input cell.  There is a dynamic range name called "TypeList" that will select the correct fruit types based on the value in cell B1 on the "Inputs" sheet.

Regards,
-Glenn
EE-Pick-from-dropdown2.xlsx
0
 

Author Closing Comment

by:Go-Bruins
ID: 41802448
Worked beautifully. Thank you.
0
 
LVL 27

Expert Comment

by:Glenn Ray
ID: 41802451
You're welcome.  Dynamic range names are very useful.
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question