Vlookup and remove duplicates

in general you can do as following:

Part #1: Grouping the data on Name, process the groupmembers and retrieve the name when the condition is met

Part #2: use a lookup / LINQ / Filter Strategy for the different names, retrieved from part 1

Let us know if you need further help on this. But give a try and start with Part #1 along with the given HowTo