Can someone suggest a formula in Excel for the below;
I have the following data in a sheet1 where users have multiple roles assigned to them, users have multiple roles and each is listed in a separate row
A----------B
User 1 - Role 1
User 1 - Role 2
User 1 - Role 5
User 2 - Role 2
User 2 - Role 5
User 3 - Role 1
User 3 - Role 3
In another sheet2 I have all unique user names where I want the data from Sheet 1 to be listed
A----------B-------C---------D
User 1 - Role 1 - Role 2 - Role 5
User 2 - Role 2 - Role 5
User 3 - Role 1 - Role 3