fishoutofwater
New Member
- Joined
- Jul 20, 2011
- Messages
- 38
In column A I have a list of names, but each name is associate with 5 to 20 pieces of data, column b has the data. Like this:
A..........B
Fred.....I like ice cream
Fred.....I like baseball
Fred.....I like the color red
Sally.....I go hiking on Monday
Sally.....I go running on Tuesday
Joe.......Hello
Joe.......Greetings
Joe.......Howdy
Joe.......What's Up
Imagine in C1 I have: "Fred" in D1 I want any single one of the things Fred said, but a random selection. So each time I hit f9 I get a new random choice-- but only from the things Fred says!
Then, if I change C1 to "Sally" I want D1 to give me one of the random things from the Sally lines in column B (ie, B4 or B5) and then if I change C1 to "Joe" I want one of the Joe-B-column comments, but again-- a random one.
So what do I put in D1 to get this? I have been playing with weird mashups of Index, Vloolup, and Rand, but I am not even close to it working
A..........B
Fred.....I like ice cream
Fred.....I like baseball
Fred.....I like the color red
Sally.....I go hiking on Monday
Sally.....I go running on Tuesday
Joe.......Hello
Joe.......Greetings
Joe.......Howdy
Joe.......What's Up
Imagine in C1 I have: "Fred" in D1 I want any single one of the things Fred said, but a random selection. So each time I hit f9 I get a new random choice-- but only from the things Fred says!
Then, if I change C1 to "Sally" I want D1 to give me one of the random things from the Sally lines in column B (ie, B4 or B5) and then if I change C1 to "Joe" I want one of the Joe-B-column comments, but again-- a random one.
So what do I put in D1 to get this? I have been playing with weird mashups of Index, Vloolup, and Rand, but I am not even close to it working