Solved

Excel -  Data validation from a subset?

Posted on 2016-09-16
4
67 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 500 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

739 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