Solved

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

Posted on 2015-02-23
1
61 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 29

Accepted Solution

by:
gowflow earned 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.
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…

726 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