Searching for user names in text delimited list

Iron Contributor

I've really been struggling with this.  Tried using XLOOKUP but I just can't get it as I'm not that advanced with Excel.

 

I exported a list of sites, permissions and user names from SharePoint online (over 1,000 rows).  User name field is formatted as "user1; user2; user3".  I have a separate list of users for which I am searching through the list.  Basically, I need to know anywhere a user has permissions in SharePoint.

 

 ABCD
 SiteUsersPermissionsLookup
1SiteA/path1user1; user5write=XLOOKUP...
2SiteA/path2user3edit=XLOOKUP...
3SiteCuser2; user7; user8full control=XLOOKUP...

 

UserList
User1
User2
User3

 

I am able to use XLOOKUP("*" & UserList & "*",B1,B1,2,1), which does a wildcard search for each user in the list of delimited users and seems to work okay.  It's returning an array though, which isn't working for me, and I can't get it to return the user names it's found.  I'd like it to return a listing of the users its found, separated by commas.

 

I've been trying all kinds of different things but I don't understand Excel well enough so I'm really just not getting anywhere.

 

 

0 Replies