Solved

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

Posted on 2015-02-23
1
56 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
1 Comment
 
LVL 29

Accepted Solution

by:
gowflow earned 500 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

762 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

11 Experts available now in Live!

Get 1:1 Help Now