Solved

Excel -  Data validation from a subset?

Posted on 2016-09-16
4
25 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
Comment Utility
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 500 total points
Comment Utility
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
Comment Utility
Worked beautifully. Thank you.
0
 
LVL 27

Expert Comment

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

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

A2 = A1 That kind of cell reference is relative.  If you copy it from A2 to B2, then B2 will get this: B2 = B1 That's all fine and good, but if you then insert a new row above row 2, you'll find: A3 = A1 B3 = B1 This is intentional. …
How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now