fishoutofwater
New Member
- Joined
- Jul 20, 2011
- Messages
- 38
In column A I have a list of names. Each name appear between 5 and 30 times. In column B I have random stuff. Let's say A1 through A12 says, "FRED" and A13 through A20 says "Sally". If in column B next to all Fred names are items you'd find at a grocery store, and in column B next to all Sally names are cities in North America-- let's say the cities are in this order: Portland, New York, Atlanta, Miami, etc., I want to do something like this in C1:
=vlookup("SALLY",A1:B100,2,0)
but I want to specify: "the 3rd entry" in which case I'd get "Atlanta" or I might want to specify the 4th Sally entry, in which case I'd expect a return of "Miami"
I am guessing that VLOOKUP is not really what I want. But Mathc doesn't seem quite right either. Is there a way to do this vlookup idea, but request then nth value when the lookup value appears multiple times in the list?
Thanks for any help.
=vlookup("SALLY",A1:B100,2,0)
but I want to specify: "the 3rd entry" in which case I'd get "Atlanta" or I might want to specify the 4th Sally entry, in which case I'd expect a return of "Miami"
I am guessing that VLOOKUP is not really what I want. But Mathc doesn't seem quite right either. Is there a way to do this vlookup idea, but request then nth value when the lookup value appears multiple times in the list?
Thanks for any help.