?
Solved

Data Validation with If tests?  Data Validation?   or VBA?  Something easier?

Posted on 2015-02-23
1
Medium Priority
?
65 Views
Last Modified: 2015-03-02
I have a workbook (attached) that has two entries in column A (apples and pears).  Varieties  of apples and pears are in column B
If a user selects Apple in column A.  I would like the column B drop down list to show all the various types of apples  in the
If the user selects Pears in column A, I wouuld like the drop down list in column B to only show the various types of pears.
Can someone help me with this in either VBA or Data validation, or something else.
H--error.xlsx
0
Comment
Question by:brothertruffle880
[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
1 Comment
 
LVL 31

Accepted Solution

by:
gowflow earned 2000 total points
ID: 40626649
ok here it is

I created a name range Level1 that have Apples and Pears and changed the disposition a little bit and Level2 have the details of Level1.

The cells that have the validation are A1 for Level1 and B1 for Level2 and here are the formulas

A1 validation formula
=Level1

B1 validation formula
=OFFSET(INDEX(Level2,1,MATCH($A$1,Level1,0)),0,0,COUNTA(INDEX(Level2,,MATCH($A$1,Level1,0))))

so choose any item in A1 and see B1 values.

gowflow
H--error.xlsx
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
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 demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

764 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