UDF and Data Validation

ClarkMc

New Member
Joined
Nov 21, 2009
Messages
1
I have a list of 160+ names and four adjacent columns with combinations of values to select to categorize each of the 160+ names. The four columns have cascading (or linked) values: col 2 dependent on col 1, col3 dep on cols 1 and 2, col 4 dep on cols 1,2, 3. A master lookup table provides the four columns with duplicates in the cols. This master table has many thousands of unique records and hundreds of possible combinations.

What I'm after is to provide a cell drop-down with unique values for the user to select. And a pivot table won't provide functionality across a table of inputs.
I've created a UDF which returns what I need as an array, however I cannot get data validation to recognize the function even passing it to a defined name.
As a very simple example, with the list below can a user defined function be use to provide a unique values in a cell drop-down using data validation or other method to give the users the values to select? If a user selects Fruit for Type, the color column drop-down would show Red, Yellow, Green. If they select Red for Color then the Shape column would show just round in the drop-down, with Texure just Smooth the only value in its cell drop-down based on the previously selected values.

A B C D E
1 Name Type Color Shape Texture
2 Apple
3 Beet
4 Squash
5 Banana


Master Table of Values
G H I J
1 Type Color Shape Texture
2 Fruit Red Round Hard
3 Veg Red Round Soft
4 Fruit Yellow Long Soft
5 Veg Yellow Oblong Soft
6 Fruit Green Round Hard
7 Fruit Green Round Soft
8 Veg Green Long Hard
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

Forum statistics

Threads
1,214,919
Messages
6,122,260
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top