You can use the VLOOKUP function.
MATCH and rearrange in excel
Question
I'm not sure how to explain this. Hope the below image will be helpful to understand what I need.
http://i.stack.imgur.com/kysOw.jpg
Basically I want to match "BATCH A" to "BATCH B" and then re-arrange "BATCH A" and "FRUIT" in the same order as "BATCH B"
Solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow