example.xls
Hello!
I am trying to go one step further than the query and answer found in this thread:
http://www.excelforum.com/excel-gene...om-symbol.html
What I want to do is randomly pull from a field of data, MINUS any cells that do not meet the criteria in other columns.
So if column A is my target column for the random selection (containing 10 unique entries), and column B has 10 repeating colors, and column C has 10 repeating animals, what can I use to perhaps create this effect:
A random pull from column A, but only from rows in which column B says red and column C says cat? (The pull being 1, 4, 7, or 9 in the below example, of course.)
Data (this example is also attached in an excel doc):
One Red Cat
Two White Dog
Three Blue Horse
Four Red Cat
Five White Cat
Six Blue Cat
Seven Red Cat
Eight Red Dog
Nine Red Cat
Ten Red Horse
I have tried variations on IF and INDEX to no avail. Perhaps something with SUMPRODUCT?
-k
Many thanks to the wise contributors in advance- this may be my first post, but only because I've been able to find all my previous questions already answered in previous threads!![]()
Bookmarks