Reputation: 915
I have the below 4 columns. The "Name1 Sorted" is a group of values that are sorted, and the "ID sorted" is the id for each value. I have the same "Name1" but it is unsorted. How can I use Vlookup or any other way to match the "ID unsorted" to its corresponding "Name1 unsorted" column ?
Upvotes: 0
Views: 3183
Reputation: 34265
In this particular case you can also use vlookup:
=VLOOKUP(C2,$A$2:$B$8,2,TRUE)
Upvotes: 1
Reputation: 36880
Try Index/Match
combination.
=INDEX($B$2:$B$8,MATCH(C2,$A$2:$A$8,0))
With Microsoft365 you can use XLOOKUP()
=XLOOKUP(C2,$A$2:$A$8,$B$2:$B$8,"No ID")
Upvotes: 2